aboutsummaryrefslogtreecommitdiff
path: root/cmd-choose-tree.c
Commit message (Collapse)AuthorAge
* Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-codeNicholas Marriott2013-08-21
|\
| * choose-tree: Reset top when toggling itemsThomas2013-08-20
| | | | | | | | | | | | | | | | | | | | | | | | When choose-tree is told to expand/collapse items (especially when first rendering collapsed to just show sessions), ensure that in addition to setting the selected item, that the item itself appears on the bottom of the screen, rather than off screen. This was causing rendering glitches when a very small tmux window tried to render a list of items in choose-tree much larger than itself, and the selected item appeared off screen, and didn't show the selection until the selection had wrapped around to the top of the screen.
* | Remove the barely-used and unnecessary command check() function.Nicholas Marriott2013-08-21
|/
* Merge branch 'obsd-master'Thomas Adam2013-04-23
|\ | | | | | | Sync from OpenBSD.
| * When using choose-tree -u, start with the current windowNicholas Marriott2013-04-22
| | | | | | | | highlighted. From Thomas Adam.
| * Get session of -t window rather than client's window.Nicholas Marriott2013-04-22
| |
| * 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.
| * Make choose-tree actually work again.Nicholas Marriott2013-03-21
| |
| * Run session command before window in choose-tree.Nicholas Marriott2013-03-21
| |
| * Allow choose commands to be used outside tmux, so long as at least oneNicholas Marriott2013-03-21
| | | | | | | | client is attached.
* | Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Make choose-tree actually work again.Nicholas Marriott2013-02-15
| |
* | Run session command before window in choose-tree.Nicholas Marriott2013-02-13
| |
* | Fix constness of cmd_template_replace.Nicholas Marriott2013-02-13
| |
* | Fix choose-tree usage.Nicholas Marriott2013-02-13
| |
* | Allow choose commands to be used outside tmux, so long as at least one clientNicholas Marriott2013-02-10
| | | | | | | | is attached.
* | Remove free callback for window_choose_data objects.Nicholas Marriott2013-02-10
| |
* | Miscellaneous tidying of choose API, including:Nicholas Marriott2013-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - rename client and session to start_client and start_session in window_choose_data struct. also add TREE_OTHER define and reorder the struct - rename window_choose_ctx to window_choose_data_run - don't pass a cmd_ctx into window_choose_create (will let it use a different client later). instead take type, session, client - add window_choose_data_free and use it to dispose of wcd rather than each cmd-*.c doing it individually - change so ref counting is done by wcd_add and wcd_free rather than callers. this means 1 ref for each item but what of it :-) - also add a ref to tree_session - not sure if this is needed? - all the callbacks except choose-client and find-window are the same so remove them and add window_choose_default_callback - reorder/rename some other bits and pieces for tidyness
* | Merge branch 'obsd-master'Thomas Adam2013-01-17
|\|
| * Fix some blank line nits.Nicholas Marriott2013-01-17
| |
* | Merge branch 'obsd-master'Thomas Adam2012-12-31
|\| | | | | | | Sync from OpenBSD.
| * Add a -u flag to choose-tree to start uncollapsed, from Raghavendra DNicholas Marriott2012-12-24
| | | | | | | | Prabhu.
| * Use ACS characters for choose-tree arrows based on diff from RomainNicholas Marriott2012-09-24
| | | | | | | | Francoise.
| * Use the right index when adding item in choose-tree, from Thomas Adam.Nicholas Marriott2012-09-03
| |
| * Remove an unused variable.Nicholas Marriott2012-09-03
| |
| * Change format of choose-tree arrows slightly, from Romain Francoise.Nicholas Marriott2012-09-03
| |
| * Use a separate define for each default format template and strip clutterNicholas Marriott2012-08-14
| | | | | | | | from the choose-tree defaults.
| * Fix a return type.Nicholas Marriott2012-08-11
| |
| * Nuke unused variable from Thomas Adam.Nicholas Marriott2012-07-12
| |
| * Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott2012-07-11
| | | | | | | | | | | | 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.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Fix choose-tree usage string.Nicholas Marriott2012-07-09
| |
| * Add choose-tree command to show windows and sessions in the sameNicholas Marriott2012-07-08
| | | | | list. Change choose-window and -session to use the same code. From Thomas Adam.
* Fix up missing bits.Nicholas Marriott2012-09-25
|
* Use the right index when adding item in choose-tree, from Thomas Adam.Nicholas Marriott2012-09-04
|
* Remove an unused variable.Nicholas Marriott2012-09-04
|
* Change format of choose-tree arrows slightly, from Romain Francoise.Nicholas Marriott2012-09-04
|
* Sync OpenBSD patchset 1162:Tiago Cunha2012-08-31
| | | | | | Use a separate define for each default format template and strip clutter from the choose-tree defaults.
* Sync OpenBSD patchset 1157:Tiago Cunha2012-08-12
| | | | | Fix a return type.
* Sync OpenBSD patchset 1152:Tiago Cunha2012-07-12
| | | | | Nuke unused variable from Thomas Adam.
* Sync OpenBSD patchset 1151:Tiago Cunha2012-07-11
| | | | | | | | Make command exec functions return an enum rather than -1/0/1 values and 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.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Sync OpenBSD patchset 1148:Tiago Cunha2012-07-11
| | | | | Fix choose-tree usage string.
* Sync OpenBSD patchset 1146:Tiago Cunha2012-07-11
Add choose-tree command to show windows and sessions in the same list. Change choose-window and -session to use the same code. From Thomas Adam.