aboutsummaryrefslogtreecommitdiff
path: root/format.c
Commit message (Collapse)AuthorAge
* Add a session_alerts format which is a list of all the alerts in thenicm2015-05-12
| | | | | current session in symbolic form (something like "0!,4~,5!"). Use this in the default set-titles-string. Prompted by a request from Jan ONDREJ.
* Move input parser structs into input.c (removing fairly uselessnicm2015-05-08
| | | | saved_cursor_[xy] formats as a side-effect).
* 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.
* Always format real layout even when zoomed.nicm2015-04-21
|
* Put mouse_any_flag back, don't know where it went to (still in man page).nicm2015-04-21
|
* Support for multiple key tables to commands to be bound to sequences ofnicm2015-04-20
| | | | | | | keys. The default key bindings become the "prefix" table and -n the "root" table. Keys may be bound in new tables with bind -T and switch-client -T used to specify the table in which the next key should be looked up. Based on a diff from Keith Amling.
* Add a helper function to convert time, and add session_activity formatsnicm2015-03-31
| | | | (the latter from Takatoshi Matsumoto).
* Fix some format specifier nits, from Ben Boeckel.nicm2015-03-31
|
* Add format_expand_time and use it instead of status_replace wherenicm2015-02-06
| | | | command execution is not needed.
* Wrap all the individual format_* calls in a single format_defaultsnicm2015-02-05
| | | | functions.
* correctly use HOST_NAME_MAX.deraadt2015-01-11
| | | | | | | | | | | | | | | | | Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
* Add pane_dead_status for exit status of dead panes.nicm2014-12-09
|
* Permit option values to be used in formats.nicm2014-12-02
|
* Check ZOOMED flag on window.nicm2014-12-01
|
* Empty strings should be false too for #{?}, from Marc Finet.nicm2014-11-08
|
* Add pane_input_off format, from Anish R Athalye.nicm2014-10-25
|
* Add xreallocarray and remove nmemb argument from xrealloc.nicm2014-10-08
|
* Add window_last_flag and window_zoomed_flag. From John Morrissey.nicm2014-09-08
|
* Remove support for the continuous reporting "any" mouse mode which nevernicm2014-08-09
| | | | really worked properly and is rarely used.
* Add some formats for pane bounds.nicm2014-05-27
|
* 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.
* Add support for named buffers. If you don't name a buffer, things worknicm2014-05-13
| | | | | | | | much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
* Add some UTF-8 utility functions and use them to prevent the width limitnicm2014-04-17
| | | | on formats from splitting UTF-8 characters improperly.
* Remove the monitor-content option and associated bits and bobs. It'snicm2014-04-17
| | | | | never worked very well. If there is a big demand for it to return, will consider better ways to do it.
* Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also makenicm2014-04-02
| | | | buffer_sample bigger to let it trim at window right edge.
* Make session_attached a count and add session_many_attached flag.nicm2014-03-31
|
* Replace ## by # in format.nicm2013-11-24
|
* And get it right this time... don't leak if it is an empty string either.nicm2013-10-11
|
* Fix leak in format_get_command.nicm2013-10-10
|
* Remove the KERN_PROC_CWD the proc_current_path format (which is the onlynicm2013-10-10
| | | | thing that uses it now).
* 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.
* First period not last for host_short, from Michael Scholz.nicm2013-10-10
|
* Allow nested format expansion.nicm2013-10-10
|
* Add length limit operator for formats.nicm2013-10-10
|
* Add formats for window flags.nicm2013-10-10
|
* Add pane_synchronized format, from Romain Francoise.Nicholas Marriott2013-07-05
|
* Add host_short format, from Tiago Cunha.Nicholas Marriott2013-05-31
|
* (long long) and %lld for time_t outputTheo Deraadt2013-04-17
| | | | ok nicm
* Include prefix on ids, from George Nachman.Nicholas Marriott2013-03-25
|
* 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.
* Do not leak command in formats, from Romain Francoise.Nicholas Marriott2013-03-25
|
* Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-03-24
| | | | | | | | | | | | | | | | | | | | | | 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.
* Add pane_tabs format to format_window_pane based on code from GeorgeNicholas Marriott2013-03-24
| | | | Nachman.
* Add a load of miscellaneous pane formats, from George Nachman.Nicholas Marriott2013-03-22
|
* Add client_session and client_last_session formats.Nicholas Marriott2013-03-22
|
* Add a format client_prefix which is 1 if prefix key has beenNicholas Marriott2013-03-21
| | | | | pressed, used for example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
* Don't set some string formats if the string is NULL.Nicholas Marriott2013-02-05
|
* Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott2013-01-18
| | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
* Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott2012-09-24
| | | | working directory (like current process). From Marcel Partap.
* xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
|