summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-281-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
* Remember the last active pane in the top-bottom or left-right cell sonicm2014-01-281-1/+3
| | | | | that it can be restored when moving back to that cell with selectp -L/-R/etc. From Suraj N Kurapati.
* Allow attach-session -t to accept a window and pane to select them onnicm2014-01-091-1/+3
| | | | attach. Based on a diff from J Raynor.
* Key to swap to other end of selection (bound to o with vi keys), from Jnicm2013-10-231-1/+2
| | | | Raynor.
* Do not run any command line command from the client which starts thenicm2013-10-201-1/+2
| | | | | | server until after the configuration file completes. This prevents it racing against run-shell or if-shell in .tmux.conf that run in the background.
* Remove the KERN_PROC_CWD the proc_current_path format (which is the onlynicm2013-10-101-2/+1
| | | | thing that uses it now).
* We accidentally haven't been using $TMUX to work out the session for anicm2013-10-101-8/+1
| | | | | | while and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
* Alter how tmux handles the working directory to internally use filenicm2013-10-101-37/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.nicm2013-10-101-13/+10
|
* Instead of fixed size buffers for some messages, send only the stringnicm2013-10-101-13/+1
| | | | length.
* retcode -> retval for exit message.nicm2013-10-101-2/+3
|
* Merge IDENTIFY_* flags with CLIENT_* flags.nicm2013-10-101-7/+6
|
* Bump protocol version and add new message types.nicm2013-10-101-14/+23
|
* Remove CMD_SENDENVIRON.nicm2013-10-101-3/+2
|
* Support -c for new-session, based on code from J Raynor.nicm2013-10-101-2/+3
|
* No space in lsw -a targets.nicm2013-10-101-2/+2
|
* Remove the barely-used and unnecessary command check() function.nicm2013-10-101-2/+1
|
* Clear window->flags when clearing winlinksnicm2013-10-101-1/+2
| | | | | | | | When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for that window, clear the window->flags as well, otherwise sessions may well still see flags for winlinks long since cleared. This therefore introduces WINDOW_ALERTFLAGS to help with this.
* Add automatic-rename-format option allowing automatic rename to usenicm2013-10-101-9/+14
| | | | something other than pane_current_command.
* Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd cannicm2013-10-101-2/+2
| | | | | be NULL. Avoids crash when a command in a command client can't be parsed.
* Implement s, S, C mode switch commands in vi(1) mode, from Ben Boeckel.nicm2013-07-051-1/+4
|
* Focus events can cause trouble if left on and they can't be turned offnicm2013-06-231-1/+2
| | | | | during idle periods (like the other states are) because we'd miss events. So add a server option to control them. Defaults to off.
* Always push a focus event when the application turns it on, prompted bynicm2013-06-231-1/+2
| | | | discussion with Hayaki Saito a while ago.
* Mark control commands specially so the client can identify them, basednicm2013-06-231-1/+4
| | | | on a diff from George Nachman a while back.
* The actual terminfo entries we ended up with for cursor changes are Cs,nicm2013-06-021-4/+4
| | | | | Ce, Ss and Se (not Cc, Ce, Cs, Csr). So use and document these instead of the ones we were using earlier.
* Instead of eating 1024 bytes or so for the arguments of each command,nicm2013-05-311-7/+14
| | | | save memory by using an RB tree. From Tiago Cunha.
* Rename global configuration define.nicm2013-04-241-4/+3
|
* When using choose-tree -u, start with the current windownicm2013-04-221-1/+3
| | | | highlighted. From Thomas Adam.
* Remove tmux's (already minimal) 88 colour support. Such terminals arenicm2013-03-271-5/+3
| | | | few and unnecessary.
* Add -P and -F to new-session.nicm2013-03-251-1/+2
|
* Extend jobs to support writing and use that for copy-pipe instead ofnicm2013-03-251-6/+3
| | | | popen, from Chris Johnsen.
* Only send end guard if begin was sent, from George Nachman.nicm2013-03-251-2/+2
|
* Add time and a command count to control mode guards, based on code fromnicm2013-03-251-1/+5
| | | | George Nachman.
* Rename session idx to session id throughout and add $ prefix to targetsnicm2013-03-251-6/+6
| | | | to use it, extended from a diff from George Nachman.
* Add a wait-for command which blocks a client on a named channel until itnicm2013-03-251-1/+4
| | | | is woken up again (with wait-for -S). From Thiago Padilha.
* Preserve trailing spaces with capture-pane -J, from George Nachman.nicm2013-03-251-2/+2
|
* Add -A flag to new-session to make it behave like attach-session if thenicm2013-03-241-1/+4
| | | | session exists. If -A is used, -D behaves like -d to attach-session.
* Add resize-pane -Z to temporary zoom the active pane to occupy the fullnicm2013-03-241-2/+9
| | | | | | | | | | | | | | window or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
* Add a command queue to standardize and simplify commands that call othernicm2013-03-241-64/+74
| | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
* Handle focus events from the terminal, from Aaron Jensen.nicm2013-03-241-1/+5
|
* Fix error reporting for client commands by adding a flag tonicm2013-03-241-2/+2
| | | | | cmd_find_client to tell it whether or not to show errors, sometimes it's needed and sometimes not.
* Do pane resize ioctls once at the end of the server loop rather thannicm2013-03-241-1/+2
| | | | immediately.
* Add support for focus notifications when tmux pane changes, based onnicm2013-03-241-1/+3
| | | | work by Aaron Jensen.
* Add session_set_current helper function, extracted from a diff fromnicm2013-03-221-1/+2
| | | | Aaron Jensen.
* Add -C and -J to capture pane to escape control sequences and to joinnicm2013-03-221-2/+3
| | | | wrapped line, based on a diff from George Nachman.
* Need to set clients in context before changing their reference count.nicm2013-03-221-2/+2
|
* Add copy-pipe mode command to copy selection and also pipe to a command.nicm2013-03-221-6/+8
|
* Add -e flag to capture-pane to include embedded ANSI SGR escapenicm2013-03-221-2/+3
| | | | sequences, from George Nachman.
* Add functions to allocate and free command contexts rather than doing itnicm2013-03-221-5/+8
| | | | all on the stack.
* Fix double space in sessions template.nicm2013-03-221-2/+2
|