summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add regular expression support for the format search, match andnicm2019-06-131-2/+6
| | | | substitute modifiers.
* Do not load the config file if the server is exiting because it failednicm2019-06-071-2/+2
| | | | | | to start, otherwise commands like lsk which start the server again can end up looping infinitely. Also make the first client exit correctly. Problem reported by Wael M Nasreddine.
* Add a -v flag to source-file to show the commands and line numbers.nicm2019-06-051-1/+2
|
* Add new-session -X and attach-session -x to send SIGHUP to parent whennicm2019-06-031-2/+2
| | | | | detaching (like detach-client -P). From Colin Watson in GitHub issue 1773.
* Change display-menu from taking a single string to a set of arguments,nicm2019-05-281-8/+14
| | | | which is much easier to work with. Based on a diff from Avi Halachmi.
* Add formats for word and line under the mouse and use them to add somenicm2019-05-261-2/+4
| | | | items to the pane menu.
* Merge cmd_list_parse into cmd-parse.y so it can use the new aliasnicm2019-05-251-2/+3
| | | | processing code.
* Make cmd_log_argv take a printf-like format for the prefix.nicm2019-05-251-2/+2
|
* Break the argument escaping code into a separate function and use it tonicm2019-05-231-2/+3
| | | | escape key bindings in list-keys. Also escape ~ and ; and $ properly.
* Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm2019-05-231-13/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix ordering of source-file with multiple files and add flags to load_cfg.nicm2019-05-201-2/+4
|
* Replace the various identical error callbacks with a single one in cmd-queue.c.nicm2019-05-201-1/+2
|
* Move the single command flag (CMD_CONTROL) into the shared flags.nicm2019-05-181-4/+2
|
* Add support for overline (SGR 53), from Ricardo Banffy.nicm2019-05-131-1/+3
|
* Add simple menus to tree, client, buffer modes.nicm2019-05-121-3/+5
|
* Remove menu_create_from_items, I thought I would use it for some laternicm2019-05-121-4/+2
| | | | work but I don't need it.
* Add support for simple menus usable with mouse or keyboard. New commandnicm2019-05-101-7/+17
| | | | | display-menu shows a menu (bound to the mouse on status line by default) and a couple of extra formats for the default menus.
* Add a function to draw a simple menu onto a screen.nicm2019-05-101-2/+18
|
* Save mouse buttons as well as position.nicm2019-05-091-1/+2
|
* send-keys also needs to insert key commands in the right order.nicm2019-05-091-3/+4
|
* Add a flag to redraw only the overlay, and remove the overlay on resize.nicm2019-05-081-2/+4
|
* Move around the display-panes identify code to make it a bit morenicm2019-05-071-9/+28
| | | | | generic and hide the display-panes specific bits into cmd-display-panes.c.
* Treat keys in identify mode (display-panes) specially and handle themnicm2019-05-071-2/+2
| | | | | | immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@.
* Do not use evbuffer_add_buffer because it is destructive and doesn'tnicm2019-05-071-3/+4
| | | | work in newer libevent.
* Allow panes to be empty (no command), output can be piped to them withnicm2019-05-031-1/+6
| | | | split-window or display-message -I.
* Correct ordering when adding after an existing item.nicm2019-05-031-2/+2
|
* Instead of processing keys all together, put them up on the clientnicm2019-05-031-4/+11
| | | | | command queue so they are ordered correctly with the commands that they execute.
* Support multiple occurances of the same argument. Use this for a newnicm2019-04-281-1/+5
| | | | | | flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697.
* Merge hooks into options and make each one an array option. This allowsnicm2019-04-261-30/+11
| | | | | | | multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
* Make options_tostring allocate its result instead of using a stacknicm2019-04-251-2/+2
| | | | buffer (needed for something in the future).
* Indicate an array option with a flag rather than a special type so thatnicm2019-04-231-5/+16
| | | | in future will not have to be strings.
* Break new window and pane creation common code from various commands andnicm2019-04-171-17/+43
| | | | window.c into a separate file spawn.c.
* Add an argument to copy commands to set the prefix for the buffer name,nicm2019-04-021-2/+2
| | | | allows buffers for different sessions to be named separately.
* Store and restore cursor across reflow by working out a position basednicm2019-04-021-3/+3
| | | | | on unwrapped lines, rather than a grid offset. Fixes problems reported by Thomas Sattler and Paul de Weerd.
* Add StatusDefault binding for the mouse on any otherwise unassignednicm2019-03-251-1/+3
| | | | parts of the status line, from Avi Halachmi.
* Improve cursor positioning after reflow by storing the position as annicm2019-03-201-4/+6
| | | | offset into the entire history before reflow and restoring it aftewards.
* The individual -fg, -bg and -attr options have been deprecated (innicm2019-03-181-7/+1
| | | | | favour of -style), undocumented and hidden from show-options since 2014. Remove them, except for status-fg and status-bg.
* Extend the #[] style syntax and use that together with previous formatnicm2019-03-181-20/+67
| | | | | | | | | | | | | | | | | | | | changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
* Add format variables for the default formats for the various modesnicm2019-03-181-1/+5
| | | | | (tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
* Make array options a sparse tree instead of an array of char * andnicm2019-03-181-2/+7
| | | | remove the size limit.
* Use a pointer for the active screen in the status line instead ofnicm2019-03-161-2/+3
| | | | copying them around all the time.
* Tidy and rename some bits of status line code.nicm2019-03-161-4/+5
|
* Add a way to set individual defaults for an array option.nicm2019-03-151-1/+2
|
* Move status line free into its own function.nicm2019-03-151-1/+2
|
* Remove unused member of struct client.nicm2019-03-151-3/+1
|
* Add a -v flag to display-message to show verbose messages as the formatnicm2019-03-151-1/+2
| | | | | | is parsed, this gives the user a way to debug problems with formats rather than just being confronted with (for example) a blank status line.
* Store the time in the format tree rather than passing it around.nicm2019-03-141-2/+2
|
* Add a wrapper (struct style) around styles rather than using thenicm2019-03-141-11/+17
| | | | grid_cell directly. There will be some non-cell members soon.
* Do not use const on struct window_pane, it causes more trouble than itnicm2019-03-141-4/+4
| | | | is worth.
* Set a flag on cells are genuinely empty (cleared and never written to)nicm2019-03-121-1/+2
| | | | | | and use tty_clear_line (which will choose the best escape sequence) to clear any batches of cells with that flag when redrawing a line from the stored screen.