aboutsummaryrefslogtreecommitdiff
path: root/session.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 1104:Tiago Cunha2012-05-03
| | | | | | | 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.
* Sync OpenBSD patchset 1069:Tiago Cunha2012-03-18
| | | | | | Add notify hooks for various events, the functions are currently empty stubs but will be filled in for control mode later. From George Nachman.
* Sync OpenBSD patchset 943:Tiago Cunha2011-08-21
| | | | | | Correctly skip existing numbers when generating the name for a new session.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* |PatchSet 884Nicholas Marriott2011-04-06
| | | | | | | | | | | | |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.
* Sync OpenBSD patchset 852:Tiago Cunha2011-02-15
| | | | | | Check if the index is in use and fail before creating the child process, rather than leaving a stray child on failure.
* Sync OpenBSD patchset 841:Tiago Cunha2011-01-21
| | | | | Er, fix next and previous session functions to actually work, part 2.
* Sync OpenBSD patchset 840:Tiago Cunha2011-01-21
| | | | | Fix next and previous session functions to actually work.
* Sync OpenBSD patchset 819:Tiago Cunha2011-01-03
| | | | | | | | | 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@.
* Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha2010-12-30
| | | | | As a consequence buffer-limit is now a server option.
* Sync OpenBSD patchset 806:Tiago Cunha2010-12-22
| | | | | | | | | | | 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.
* Sync OpenBSD patchset 805:Tiago Cunha2010-12-22
| | | | | Fix another stray addition that was too early. Oops.
* Sync OpenBSD patchset 804:Tiago Cunha2010-12-22
| | | | | Undo a change to next/previous session that got mixed in prematurely.
* Sync OpenBSD patchset 803:Tiago Cunha2010-12-22
| | | | | | Dead sessions are never on the active sessions list, so the SESSION_DEAD flag is effectively unused. Remove it.
* Sync OpenBSD patchset 801:Tiago Cunha2010-12-22
| | | | | | | Unify the way sessions are used by callbacks - store the address and use the reference count, then check it is still on the global sessions list in the callback.
* Sync OpenBSD patchset 759:Tiago Cunha2010-09-10
| | | | | | | | | Add -n and -p flags to switch-client to move to the next and previous session (yes, it doesn't match window/pane, but so what, nor does switch-client). Based on a diff long ago from "edsouza".
* Sync OpenBSD patchset 730:Tiago Cunha2010-07-02
| | | | | | | Store the current working directory in the session, change the default-path option to default to empty and make that mean that the stored session CWD is used.
* Sync OpenBSD patchset 724:Tiago Cunha2010-06-22
| | | | | | Having a list of winlinks->alerts for each session is stupid, just store the alert flags directly in the winlink itself.
* Sync OpenBSD patchset 723:Tiago Cunha2010-06-22
| | | | | Rename activity->alert in a couple of functions for consistency.
* Sync OpenBSD patchset 591:Tiago Cunha2009-12-26
| | | | | | Fix a couple of problems with grouped sessions reported by danh: redraw properly and choose the correct last window after a window is killed.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 567:Tiago Cunha2009-11-28
| | | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Sync OpenBSD patchset 534:Tiago Cunha2009-11-13
| | | | | | | Use winlink_remove() to remove old winlinks when synchronizing grouped sessions rather than doing it manually and not adjusted the reference count. Fixes crash seen by Dan Harnett.
* Sync OpenBSD patchset 483:Tiago Cunha2009-11-04
| | | | | | | | | | Change session and client activity and creation time members to have more 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.
* Sync OpenBSD patchset 371:Tiago Cunha2009-10-11
| | | | | | | | | | Add "grouped sessions" which have independent name, options, current window and 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.
* Sync OpenBSD patchset 370:Tiago Cunha2009-10-11
| | | | | | | | | | | | | | | Support for individual session idle time locking. May be enabled by turning off 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.
* Sync OpenBSD patchset 332:Tiago Cunha2009-09-20
| | | | | Regularise some fatal messages.
* Sync from OpenBSD:Nicholas Marriott2009-09-16
| | | | | | | | | | | == Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. == This should fix problems caused by glibc's broken ttydefaults.h file.
* Sync OpenBSD patchset 320:Tiago Cunha2009-09-07
| | | | | | Reference count clients and sessions rather than relying on a saved index for cmd-choose-*.
* Adjust OpenBSD patchset 305 to the portable version.Tiago Cunha2009-09-02
|
* Sync OpenBSD patchset 305:Tiago Cunha2009-09-02
| | | | | | | | | | | | | | When using tmux as a login shell, there is currently no way to specify a shell to be used as a login shell inside tmux, so add a default-shell session option. This sets the shell invoked as a login shell when the default-command option is empty. The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell or /bin/sh is valid first. Based on a diff from martynas@, changed by me to be a session option rather than a window option.
* Sync OpenBSD patchset 257:Tiago Cunha2009-08-16
| | | | | | Add a base-index session option to specify the first index checked when looking for an index for a new window.
* Sync OpenBSD patchset 254:Tiago Cunha2009-08-16
| | | | | | | When creating a new session from the command-line where there is an external terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
* Sync OpenBSD patchset 231:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | | | | Infrastructure and commands to manage the environment for processes started within tmux. There is a global environment, copied from the external environment when the server is started and each session has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
* Fix $Id$.Nicholas Marriott2009-07-08
|
* Rename the global options variables to be shorter and to make session optionsNicholas Marriott2009-07-08
| | | | | | clear. No functional change, getting this out of the way to make later options changes easier.
* - New window option monitor-content to search for a string in a window, andTiago Cunha2009-05-19
| | | | | | | | | highlight the status line if it matches. - To make this possible, the function cmd_find_window_search from cmd-find-window.c had to be moved to window.c and renamed window_pane_search. - While there use three new functions in server.c to check for bell, activity, and content, to avoid too much nesting.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* * New session flag "set-remain-on-exit" to set remain-on-exit flag for new ↵Nicholas Marriott2009-03-21
| | | | windows created in that session (like "remain-by-default" used to do). Not perfectly happy about this, but until I can think of a good way to introduce it generically (maybe a set of options in the session) this will do. Fixes SF request 2527847.
* Unused variable.Nicholas Marriott2009-03-07
|
* Put socket path in $TMUX.Nicholas Marriott2009-03-04
|
* Better error messages for fork.Nicholas Marriott2009-01-23
|
* -a flags to next/previous window.Nicholas Marriott2009-01-18
|
* Make the window pane code handle panes of different sizes, and add a -l and ↵Nicholas Marriott2009-01-12
| | | | -p arguments to split-window to specify the new window size in lines or as a percentage.
* Pick up cwd from environment,.Nicholas Marriott2009-01-10
|
* Change server-info format.Nicholas Marriott2009-01-10
|
* Make window options work the same was as session options, add ↵Nicholas Marriott2008-12-08
| | | | mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
* Disable UTF-8 by default and add options to enable it.Nicholas Marriott2008-11-16
|
* Keep stack of previous windows.Nicholas Marriott2008-11-16
| | | | | Check for op (orig_pair) for default colours.
* TAILQ -> SLIST.Nicholas Marriott2008-11-05
|