aboutsummaryrefslogtreecommitdiff
path: root/session.c
Commit message (Collapse)AuthorAge
...
| * Similarly, for sessions use a callback to free rather than checkingnicm2015-06-05
| | | | | | | | every loop.
* | Merge branch 'obsd-master'Thomas Adam2015-05-06
|\|
| * Add a format window_linked which is 1 if a window has been linkednicm2015-05-06
| | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2015-04-25
|\|
| * Move the functions to convert ids from strings into session.c and window.c.nicm2015-04-25
| |
* | Merge branch 'obsd-master'Thomas Adam2015-04-25
|\|
| * Make session_has return a flag, returning the first winlink found is anicm2015-04-22
| | | | | | | | recipe for errors.
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-10-29
|\| | | | | | | | | | | | | Conflicts: Makefile cmd-link-window.c cmd-unlink-window.c
| * Fix some spacing nits.nicm2014-10-22
| |
| * Merge unlink-window into kill-window.nicm2014-10-22
| |
* | Merge branch 'obsd-master'Thomas Adam2014-05-13
|\| | | | | | | | | | | Conflicts: format.c window.c
| * If multiple arguments are given to new-session, new-window,nicm2014-05-13
| | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2014-04-23
|\| | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Set PATH explicitly, either from client or sessionnicm2014-04-17
| | | | | | | | | | environment. Previously it came from the session environment. From J Raynor.
* | Merge branch 'obsd-master'Thomas Adam2014-01-31
|\| | | | | | | | | | | | | Conflicts: Makefile cmd-server-info.c cmd-start-server.c
| * Do not permit periods in session names (colons are already banned). Fromnicm2014-01-22
| | | | | | | | J Raynor.
| * Alter how tmux handles the working directory to internally use filenicm2013-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Renumber windows: Lookup lastw via window not indexnicm2013-10-10
| | | | | | | | | | | | | | | | | | | | | | 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.
| * Grouped sessions were being leaked on destroy, correctly free them.nicm2013-10-10
| |
| * Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott2013-03-25
| | | | | | | | to use it, extended from a diff from George Nachman.
| * Add session_set_current helper function, extracted from a diff fromNicholas Marriott2013-03-22
| | | | | | | | Aaron Jensen.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Clear flags across all sessions, from Thomas Adam.Nicholas Marriott2012-07-08
| |
| * Add a flag to move-window to renumber the windows in a session (closingNicholas Marriott2012-04-29
| | | | | | | | | | any gaps) and add an option to do this automatically each time a window is killed. From Thomas Adam.
| * Add notify hooks for various events, the functions are currently emptyNicholas Marriott2012-03-17
| | | | | | | | stubs but will be filled in for control mode later. From George Nachman.
| * Correctly skip existing numbers when generating the name for a newNicholas Marriott2011-08-16
| | | | | | | | session.
| * Change so that an empty session name always means the current sessionsNicholas Marriott2011-04-06
| | | | | | | | | | even if given with, for example, -t '', and explicitly forbid empty session names and those containing a : when they are created.
| * Check if the index is in use and fail before creating the child process,Nicholas Marriott2011-01-25
| | | | | | | | rather than leaving a stray child on failure.
| * Er, fix next and previous session functions to actually work, part 2.Nicholas Marriott2011-01-13
| |
| * Fix next and previous session functions to actually work.Nicholas Marriott2011-01-13
| |
| * Don't reset the activity timer for unattached sessions every second,Nicholas Marriott2011-01-01
| | | | | | | | | | | | | | 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@.
| * Change from a per-session stack of buffers to one global stack which isNicholas Marriott2010-12-30
| | | | | | | | | | | | | | 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.
| * Store sessions in an RB tree by name rather than a list, this is tidierNicholas Marriott2010-12-21
| | | | | | | | | | | | | | | | | | 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.
| * Fix another stray addition that was too early. Oops.Nicholas Marriott2010-12-20
| |
| * Undo a change to next/previous session that got mixed in prematurely.Nicholas Marriott2010-12-20
| |
| * Dead sessions are never on the active sessions list, so the SESSION_DEADNicholas Marriott2010-12-20
| | | | | | | | flag is effectively unused. Remove it.
| * Unify the way sessions are used by callbacks - store the address and useNicholas Marriott2010-12-20
| | | | | | | | | | the reference count, then check it is still on the global sessions list in the callback.
| * Add -n and -p flags to switch-client to move to the next and previousNicholas Marriott2010-09-08
| | | | | | | | | | | | | | session (yes, it doesn't match window/pane, but so what, nor does switch-client). Based on a diff long ago from "edsouza".
| * Store the current working directory in the session, change the default-pathNicholas Marriott2010-06-27
| | | | | | | | | | option to default to empty and make that mean that the stored session CWD is used.
| * Having a list of winlinks->alerts for each session is stupid, just storeNicholas Marriott2010-06-21
| | | | | | | | the alert flags directly in the winlink itself.
| * Rename activity->alert in a couple of functions for consistency.Nicholas Marriott2010-06-21
| |
| * Fix a couple of problems with grouped sessions reported by danh: redrawNicholas Marriott2009-12-22
| | | | | | | | properly and choose the correct last window after a window is killed.
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | | | | | the rest to reduce lint output.
| * Use winlink_remove() to remove old winlinks when synchronizing grouped sessionsNicholas Marriott2009-11-13
| | | | | | | | | | rather than doing it manually and not adjusted the reference count. Fixes crash seen by Dan Harnett.
| * Change session and client activity and creation time members to have moreNicholas Marriott2009-11-03
| | | | | | | | | | | | | | | | meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
| * Add "grouped sessions" which have independent name, options, current window andNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
| * Support for individual session idle time locking. May be enabled by turning offNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
| * Regularise some fatal messages.Nicholas Marriott2009-09-20
| |