aboutsummaryrefslogtreecommitdiff
path: root/format.c
Commit message (Collapse)AuthorAge
* Always include Lock in the menu.nicm2019-05-13
|
* Fix a typo in previous (, -> :).nicm2019-05-10
|
* 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.
* Add formats to show if pane is the marked pane and if any marked pane is set.nicm2019-05-09
|
* Allow panes to be empty (no command), output can be piped to them withnicm2019-05-03
| | | | split-window or display-message -I.
* Make options_tostring allocate its result instead of using a stacknicm2019-04-25
| | | | buffer (needed for something in the future).
* Free old strings after they have been expanded in format_choose.nicm2019-03-29
|
* Expand session and window formats for buffer filters.nicm2019-03-28
|
* Add a cursor_character format.nicm2019-03-19
|
* Extend the #[] style syntax and use that together with previous formatnicm2019-03-18
| | | | | | | | | | | | | | | | | | | | 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-18
| | | | | (tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
* With force, kill previous job before starting new. Fixes problemnicm2019-03-18
| | | | reported by Scott Mcdermott in GitHub issue 1627.
* Copy recursion counter into new formats when looping.nicm2019-03-15
|
* Only print format logging when the flag is set, even if also sending to ↵nicm2019-03-15
| | | | log_debug.
* The pane and window loops need to pass the window and pane tags whennicm2019-03-15
| | | | they build their format.
* Add a -v flag to display-message to show verbose messages as the formatnicm2019-03-15
| | | | | | 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.
* Add a limit on how far format_expand can recurse.nicm2019-03-14
|
* Store the time in the format tree rather than passing it around.nicm2019-03-14
|
* Add format flags for start and end window.nicm2019-03-14
|
* Add T format modifier like E but also do strftime(3).nicm2019-03-14
|
* Accept 0 time as a shorthand for now to format_expand_time.nicm2019-03-14
|
* Tweak format_replace logging.nicm2019-03-13
|
* Add formats to list sessions, windows or panes.nicm2019-03-13
|
* Apply length limits and substitution even to literal formats.nicm2019-03-13
|
* Add E: format to expand a format twice (useful to expand the value of annicm2019-03-13
| | | | option).
* Make format parsing build the modifiers into a list, standardize hownicm2019-03-13
| | | | | arguments are given and allow multiple modifiers on a format (separated by ;).
* Allow multiple modes to be open in a pane. A stack of open modes is keptnicm2019-03-12
| | | | | | and the previous restored when the top is exited. If a mode that is already on the stack is entered, the existing instance is moved to the top as the active mode rather than being opened new.
* Add a separate mode struct for the active window mode if any.nicm2019-03-07
|
* Make adding mode formats a function pointer as well.nicm2019-03-07
|
* evbuffer_new and bufferevent_new can both fail (when malloc fails) andnicm2018-11-19
| | | | return NULL. GitHub issue 1547.
* Support for windows larger than visible on the attached client. This hasnicm2018-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been a limitation for a long time. There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed. The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before. If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right. Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual). The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest. For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing.. If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session. The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders. The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
* Use same working directory rules for jobs as new windows rather thannicm2018-09-27
| | | | always starting in home, GitHub issue 1488.
* Memory leaks, from Gang Fan in GitHub issue 1453.nicm2018-08-27
|
* Add q: format prefix to escape sh(1) special characters. Suggested bynicm2018-08-26
| | | | someone ages ago and then more recently in GitHub issue 1449.
* Move job struct into job.c.nicm2018-08-23
|
* Some tidying and helper functions.nicm2018-08-18
|
* Add accessors for grid linedata member, for some future work. From Dannicm2018-07-04
| | | | Aloni.
* Allow any punctuation (except :) as separator in s/x/y/, not onlynicm2018-06-27
| | | | /. From JINNOUCHI Yasushi in GitHub issue 1386.
* If foo doesn't exist and can't be expanded in #{?foo,a,b} then assume itnicm2018-05-29
| | | | is false.
* Allow escaping , and } with # in #{}; GitHub issue 1332.nicm2018-05-22
|
* Change how display-message uses the client. Originally it was onlynicm2018-04-18
| | | | | | | | | | | | | intended as the target client where the message should be displayed but at some point (perhaps when -p was added), it was used for format expansion too. This means it can get a bit weird where you have client formats expanding for a client with a different current session than the target session. However, it is nice that display-message can be used to show information about a specific client. So change so that the -c client will be used if the session matches the target session (-t or default), otherwise the best client will be chosen.
* Add a missing client-detached hook when the server shuts down, and donicm2018-03-08
| | | | | not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
* Do not leak memory when working out job name in formats.nicm2018-02-20
|
* Discard all but the last line when reading from a #() command - thenicm2018-01-18
| | | | | callback is just going to be fired again straight away to go through all the lines, it is better just to use the last one straight away.
* Format for group list of "other sessions" is a bit weird, just list allnicm2017-11-02
| | | | the sessions in the group.
* Tweak previous slightly so that current session is chosen if it is innicm2017-11-02
| | | | the group rather than first.
* Only show the first member of session groups in tree mode (-G flagnicm2017-11-02
| | | | disables).
* Show exit status and time in the remain-on-exit pane text, mostly fromnicm2017-10-12
| | | | Timo Boettcher in GitHub issue 1103.
* Add -F to choose-tree, choose-client, choose-buffer to specify thenicm2017-08-09
| | | | | format of each line, as well as adding a couple of formats needed for the default display.
* Add selection_present format so commands in copy mode can use it, GitHubnicm2017-08-02
| | | | issue 1028.