summaryrefslogtreecommitdiffstats
path: root/session.c
AgeCommit message (Collapse)Author
2015-05-06Merge branch 'obsd-master'Thomas Adam
2015-05-06Add a format window_linked which is 1 if a window has been linkednicm
multiple times, also remove the default space in window_flags and use a conditional to add it in window-status-format (this means additional flags can be added in the option without extra spaces). From Thomas Adam with tweaks by me.
2015-04-25Merge branch 'obsd-master'Thomas Adam
2015-04-25Move the functions to convert ids from strings into session.c and window.c.nicm
2015-04-25Merge branch 'obsd-master'Thomas Adam
2015-04-22Make session_has return a flag, returning the first winlink found is anicm
recipe for errors.
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-10-29Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-link-window.c cmd-unlink-window.c
2014-10-22Fix some spacing nits.nicm
2014-10-22Merge unlink-window into kill-window.nicm
2014-05-13Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c window.c
2014-05-13If multiple arguments are given to new-session, new-window,nicm
split-window, respawn-window or respawn-pane, pass them directly to execvp() to help avoid quoting problems. One argument still goes to "sh -c" like before. Requested by many over the years. Patch from J Raynor.
2014-04-23Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tmux.1 window.c
2014-04-17Set PATH explicitly, either from client or sessionnicm
environment. Previously it came from the session environment. From J Raynor.
2014-01-31Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-server-info.c cmd-start-server.c
2014-01-22Do not permit periods in session names (colons are already banned). Fromnicm
J Raynor.
2013-10-10Alter how tmux handles the working directory to internally use filenicm
descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
2013-10-10Renumber windows: Lookup lastw via window not indexnicm
When calling 'movew -r' on a session to reorder the winlinks, ensure when adding back in the information for the lastw stack that we look up the winlink based on the window and not its index. Using the index doesn't make sense here because when comparing it to the old set, it will never match since the winlink has been renumbered. Bug reported by Ben Boeckel. Patch by Thomas Adam.
2013-10-10Grouped sessions were being leaked on destroy, correctly free them.nicm
2013-10-06Alter how tmux handles the working directory to internally use file descriptorsNicholas Marriott
rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '', do: bind c neww -c '#{pane_current_path}' The equivalent of default-path '~' is left as an exercise for the reader. This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
2013-08-20Renumber windows: Lookup lastw via window not indexThomas Adam
When calling 'movew -r' on a session to reorder the winlinks, ensure when adding back in the information for the lastw stack that we look up the winlink based on the window and not its index. Using the index doesn't make sense here because when comparing it to the old set, it will never match since the winlink has been renumbered. Bug reported by Ben Boeckel.
2013-08-01Grouped sessions were being leaked on destroy, correctly free them.Nicholas Marriott
2013-03-25Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott
to use it, extended from a diff from George Nachman.
2013-03-22Add session_set_current helper function, extracted from a diff fromNicholas Marriott
Aaron Jensen.
2013-03-07Rename session idx to session id throughout and add $ prefix to targets to useNicholas Marriott
it, extended from a diff from George Nachman.
2013-02-21Add session_set_current helper function, extracted from a diff from AaronNicholas Marriott
Jensen.
2012-07-11Sync OpenBSD patchset 1150:Tiago Cunha
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-11Sync OpenBSD patchset 1144:Tiago Cunha
Clear flags across all sessions, from Thomas Adam.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-07-08Clear flags across all sessions, from Thomas Adam.Nicholas Marriott
2012-05-03Sync OpenBSD patchset 1104:Tiago Cunha
Add a flag to move-window to renumber the windows in a session (closing any gaps) and add an option to do this automatically each time a window is killed. From Thomas Adam.
2012-04-29Add a flag to move-window to renumber the windows in a session (closingNicholas Marriott
any gaps) and add an option to do this automatically each time a window is killed. From Thomas Adam.
2012-03-18Sync OpenBSD patchset 1069:Tiago Cunha
Add notify hooks for various events, the functions are currently empty stubs but will be filled in for control mode later. From George Nachman.
2012-03-17Add notify hooks for various events, the functions are currently emptyNicholas Marriott
stubs but will be filled in for control mode later. From George Nachman.
2011-08-21Sync OpenBSD patchset 943:Tiago Cunha
Correctly skip existing numbers when generating the name for a new session.
2011-08-16Correctly skip existing numbers when generating the name for a newNicholas Marriott
session.
2011-07-09Expand the Id keyword. Tiago Cunha
2011-04-06|PatchSet 884Nicholas Marriott
|Date: 2011/04/06 22:51:31 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Change so that an empty session name always means the current sessions |even if given with, for example, -t '', and explicitly forbid empty |session names and those containing a : when they are created.
2011-04-06Change so that an empty session name always means the current sessionsNicholas Marriott
even if given with, for example, -t '', and explicitly forbid empty session names and those containing a : when they are created.
2011-02-15Sync OpenBSD patchset 852:Tiago Cunha
Check if the index is in use and fail before creating the child process, rather than leaving a stray child on failure.
2011-01-25Check if the index is in use and fail before creating the child process,Nicholas Marriott
rather than leaving a stray child on failure.
2011-01-21Sync OpenBSD patchset 841:Tiago Cunha
Er, fix next and previous session functions to actually work, part 2.
2011-01-21Sync OpenBSD patchset 840:Tiago Cunha
Fix next and previous session functions to actually work.
2011-01-13Er, fix next and previous session functions to actually work, part 2.Nicholas Marriott
2011-01-13Fix next and previous session functions to actually work.Nicholas Marriott
2011-01-03Sync OpenBSD patchset 819:Tiago Cunha
Don't reset the activity timer for unattached sessions every second, this screws up the choice of most-recently-used. Instead, break the time update into a little function and do it when the session is attached. Pointed out by joshe@.
2011-01-01Don't reset the activity timer for unattached sessions every second,Nicholas Marriott
this screws up the choice of most-recently-used. Instead, break the time update into a little function and do it when the session is attached. Pointed out by joshe@.
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
2010-12-30Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha
As a consequence buffer-limit is now a server option.
2010-12-22Sync OpenBSD patchset 806:Tiago Cunha
Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions). Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.