aboutsummaryrefslogtreecommitdiff
path: root/menu.c
Commit message (Collapse)AuthorAge
* Start menu with top item selected if no mouse, GitHub issue 2169.nicm2020-04-16
|
* Use mode-style for selected items, like choose modes. GitHub issue 2166.nicm2020-04-15
|
* Add helpers for the simple case of parse string and add to command queue.nicm2020-04-13
|
* When adding a list of commands to the queue, instead of automaticallynicm2020-04-13
| | | | | | | creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
* Move cmdq_state into cmd-queue.c.nicm2020-04-13
|
* Rename cmdq_shared to cmdq_state which will better reflect what it isnicm2020-04-13
| | | | (going to be) used for.
* Store a key event not a mouse event in the shared data.nicm2020-04-13
|
* Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-13
| | | | use more clearly defined and preparation for some future work).
* Add support for overlay popup boxes to show text or output temporarilynicm2020-03-24
| | | | | above the normal layout. These work similarly to menus and are created with the display-popup command.
* Fix positioning of menu in choose modes and a couple of keys in tree mode.nicm2020-03-20
|
* Little bit of tidying.nicm2020-03-19
|
* Change menu key bindings to Up and Down and also close it on any mousenicm2019-09-16
| | | | press if opened by key.
* Add j and k for navigation in menus, GitHub issue 1828.nicm2019-07-09
|
* Add a cmdq_continue function rather than twiddling the flag directly.nicm2019-06-18
|
* Allow menu items to be disabled by putting a - at the start of theirnicm2019-05-28
| | | | | name, rather than just including #[dim] which still allowed them to be chosen.
* Change display-menu from taking a single string to a set of arguments,nicm2019-05-28
| | | | which is much easier to work with. Based on a diff from Avi Halachmi.
* Do not accept choice unless mouse has actually moved before.nicm2019-05-26
|
* Add formats for word and line under the mouse and use them to add somenicm2019-05-26
| | | | items to the pane menu.
* Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm2019-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | parser using yacc(1). This is a major change but is clearer and simpler and allows some edge cases to be made more consistent, as well as tidying up how aliases are handled. It will also allow some further improvements later. Entirely the same parser is now used for parsing the configuration file and for string commands. This means that constructs previously only available in .tmux.conf, such as %if, can now be used in string commands (for example, those given to if-shell - not commands invoked from the shell, they are still parsed by the shell itself). The only syntax change I am aware of is that #{} outside quotes or a comment is now considered a format and not a comment, so #{ is now a syntax error (notably, if it is at the start of a line). This also adds two new sections to the man page documenting the syntax and outlining how parsing and command execution works. Thanks to everyone who sent me test configs (they still all parse without errors - but this doesn't mean they still work as intended!). Thanks to Avi Halachmi for testing and man page improvements, also to jmc@ for reviewing the man page changes.
* Replace the various identical error callbacks with a single one in cmd-queue.c.nicm2019-05-20
|
* Add simple menus to tree, client, buffer modes.nicm2019-05-12
|
* Remove menu_create_from_items, I thought I would use it for some laternicm2019-05-12
| | | | work but I don't need it.
* Add support for simple menus usable with mouse or keyboard. New commandnicm2019-05-10
display-menu shows a menu (bound to the mouse on status line by default) and a couple of extra formats for the default menus.