summaryrefslogtreecommitdiffstats
path: root/cmd-choose-tree.c
AgeCommit message (Collapse)Author
2015-04-27Rewrite of the target resolution internals to be simpler and morenicm
consistent but with much less duplication, but keeping the same internal API. Also adds more readable aliases for some of the special tokens used in targets (eg "{start}" instead of "^"). Some behaviours may have changed, for example prefix matches now happen before fnmatch.
2014-10-20Move template defines back into .c files.nicm
2014-10-20Instead of setting up the default keys by building the key structnicm
directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q. As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
2013-10-10Remove the barely-used and unnecessary command check() function.nicm
2013-04-22When using choose-tree -u, start with the current windowNicholas Marriott
highlighted. From Thomas Adam.
2013-04-22Get session of -t window rather than client's window.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-21Make choose-tree actually work again.Nicholas Marriott
2013-03-21Run session command before window in choose-tree.Nicholas Marriott
2013-03-21Allow choose commands to be used outside tmux, so long as at least oneNicholas Marriott
client is attached.
2013-01-17Fix some blank line nits.Nicholas Marriott
2012-12-24Add a -u flag to choose-tree to start uncollapsed, from Raghavendra DNicholas Marriott
Prabhu.
2012-09-24Use ACS characters for choose-tree arrows based on diff from RomainNicholas Marriott
Francoise.
2012-09-03Use the right index when adding item in choose-tree, from Thomas Adam.Nicholas Marriott
2012-09-03Remove an unused variable.Nicholas Marriott
2012-09-03Change format of choose-tree arrows slightly, from Romain Francoise.Nicholas Marriott
2012-08-14Use a separate define for each default format template and strip clutterNicholas Marriott
from the choose-tree defaults.
2012-08-11Fix a return type.Nicholas Marriott
2012-07-12Nuke unused variable from Thomas Adam.Nicholas Marriott
2012-07-11Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott
add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-07-09Fix choose-tree usage string.Nicholas Marriott
2012-07-08Add choose-tree command to show windows and sessions in the sameNicholas Marriott
list. Change choose-window and -session to use the same code. From Thomas Adam.