aboutsummaryrefslogtreecommitdiff
path: root/format.c
Commit message (Collapse)AuthorAge
* Add a per-pane option set. Pane options inherit from window options (sonicm2019-06-20
| | | | | | | | | | | | there should be no change to existing behaviour) and are set and shown with set-option -p and show-options -p. Change remain-on-exit and window-style/window-active-style to be pane options (some others will be changed later). This makes select-pane -P and -g unnecessary so no longer document them (they still work) and no longer document set-window-option and show-window-options in favour of set-option -w and show-options -w.
* Expand command formats in %if and move the config file loading later (tonicm2019-06-20
| | | | | when the first client has identified) so all the client formats are available, fixes problems reported by Thomas Sattler.
* Use the right format modifier when comparing, and remove a couple ofnicm2019-06-15
| | | | unused variables.
* Do not crash if the environment variable is present but empty.nicm2019-06-13
|
* Add regular expression support for the format search, match andnicm2019-06-13
| | | | substitute modifiers.
* Fix warnings, from Ben Boeckel.nicm2019-05-31
|
* 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.
* Go less crazy with horizontal separators on default menus.nicm2019-05-27
|
* Add keys for new menu items.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.
* Add a way to append or prepend to a format if the length has been limited.nicm2019-05-26
|
* Add <, >, <=, >= for formats, GitHub issue 1747.nicm2019-05-25
|
* 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.