summaryrefslogtreecommitdiffstats
path: root/format.c
AgeCommit message (Collapse)Author
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.