summaryrefslogtreecommitdiffstats
path: root/format.c
AgeCommit message (Collapse)Author
2014-08-09Remove support for the continuous reporting "any" mouse mode which nevernicm
really worked properly and is rarely used.
2014-05-27Add some formats for pane bounds.nicm
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-05-13Add support for named buffers. If you don't name a buffer, things worknicm
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.
2014-04-17Add some UTF-8 utility functions and use them to prevent the width limitnicm
on formats from splitting UTF-8 characters improperly.
2014-04-17Remove the monitor-content option and associated bits and bobs. It'snicm
never worked very well. If there is a big demand for it to return, will consider better ways to do it.
2014-04-02Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also makenicm
buffer_sample bigger to let it trim at window right edge.
2014-03-31Make session_attached a count and add session_many_attached flag.nicm
2013-11-24Replace ## by # in format.nicm
2013-10-11And get it right this time... don't leak if it is an empty string either.nicm
2013-10-10Fix leak in format_get_command.nicm
2013-10-10Remove the KERN_PROC_CWD the proc_current_path format (which is the onlynicm
thing that uses it now).
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-10First period not last for host_short, from Michael Scholz.nicm
2013-10-10Allow nested format expansion.nicm
2013-10-10Add length limit operator for formats.nicm
2013-10-10Add formats for window flags.nicm
2013-07-05Add pane_synchronized format, from Romain Francoise.Nicholas Marriott
2013-05-31Add host_short format, from Tiago Cunha.Nicholas Marriott
2013-04-17(long long) and %lld for time_t outputTheo Deraadt
ok nicm
2013-03-25Include prefix on ids, from George Nachman.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-25Do not leak command in formats, from Romain Francoise.Nicholas Marriott
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
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.
2013-03-24Add pane_tabs format to format_window_pane based on code from GeorgeNicholas Marriott
Nachman.
2013-03-22Add a load of miscellaneous pane formats, from George Nachman.Nicholas Marriott
2013-03-22Add client_session and client_last_session formats.Nicholas Marriott
2013-03-21Add a format client_prefix which is 1 if prefix key has beenNicholas Marriott
pressed, used for example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
2013-02-05Don't set some string formats if the string is NULL.Nicholas Marriott
2013-01-18Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott
UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
2012-09-24Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott
working directory (like current process). From Marcel Partap.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-05-22Switch all of the various choose- and list- commands over to the formatNicholas Marriott
infrastructure, from Thomas Adam.
2012-04-01Add pane_current_path format, suggested by Mikolaj Kucharski.Nicholas Marriott
2012-02-02Get client_width and client_height the right way round, from StephenNicholas Marriott
Thirlwall.
2012-01-30Give each window a unique id, like panes but prefixed with @. Based onNicholas Marriott
work from George Nachman.
2011-11-15Add a pane_index format string and use it, from Ben Boeckel.Nicholas Marriott
2011-10-23Add client formats, from Ben Boeckel.Nicholas Marriott
2011-10-02Add a few more formats for panes (tty, pid, start cmd/cwd).Nicholas Marriott
2011-08-26Add initial framework for more powerful formatting of command output andNicholas Marriott
use it for list-{panes,windows,sessions}. This allows more descriptive replacements (such as #{session_name}) and conditionals. Later this will be used for status_replace and list-keys and other places.