summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
AgeCommit message (Collapse)Author
2019-03-18The individual -fg, -bg and -attr options have been deprecated (inNicholas Marriott
favour of -style), undocumented and hidden from show-options since 2014. Remove them, except for status-fg and status-bg.
2019-03-18Extend the #[] style syntax and use that together with previous formatNicholas Marriott
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.
2019-03-18Add format variables for the default formats for the various modesNicholas Marriott
(tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
2019-03-18Make array options a sparse tree instead of an array of char * andNicholas Marriott
remove the size limit.
2019-03-16Use a pointer for the active screen in the status line instead ofNicholas Marriott
copying them around all the time.
2019-03-16Tidy and rename some bits of status line code.Nicholas Marriott
2019-03-15Add a way to set individual defaults for an array option.Nicholas Marriott
2019-03-15Move status line free into its own function.Nicholas Marriott
2019-03-15Remove unused member of struct client.Nicholas Marriott
2019-03-15Add a -v flag to display-message to show verbose messages as the formatNicholas Marriott
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.
2019-03-14Store the time in the format tree rather than passing it around.Nicholas Marriott
2019-03-14Add a wrapper (struct style) around styles rather than using theNicholas Marriott
grid_cell directly. There will be some non-cell members soon.
2019-03-14Do not use const on struct window_pane, it causes more trouble than itNicholas Marriott
is worth.
2019-03-12Set a flag on cells are genuinely empty (cleared and never written to)Nicholas Marriott
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.
2019-03-12DECRC and DECSC apparently need to preserve origin mode as well, basedNicholas Marriott
on a fix from Marc Reisner.
2019-03-12Fix HPA in origin mode.Nicholas Marriott
2019-03-12Fix resizing of control clients, should be ignored until SIZECHANGED flag set.Nicholas Marriott
2019-03-12Allow multiple modes to be open in a pane. A stack of open modes is keptNicholas Marriott
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.
2019-03-12Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.Nicholas Marriott
2019-03-08Make the mode used to view command output (a variant of copy mode) useNicholas Marriott
its own mode definition struct with a different init function rather than calling special setup functions.
2019-03-07Add a separate mode struct for the active window mode if any.Nicholas Marriott
2019-03-07Make adding mode formats a function pointer as well.Nicholas Marriott
2019-02-16Use starting client cwd in config file, GitHub issue 1606.Nicholas Marriott
2018-12-18Pass window into mode functions.Nicholas Marriott
2018-11-22Do not use PWD unless it actually matches the real working directory.Nicholas Marriott
2018-10-25Add a "terminal" colour which can be used instead of "default" in styleNicholas Marriott
options for the terminal default colour, bypassing any inheritance from other options. Prompted by a discussion with abieber@.
2018-10-18Support for windows larger than visible on the attached client. This hasNicholas Marriott
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.
2018-10-18Support for extended underline styles on terminals which offer them,Nicholas Marriott
enabled by adding the Smulx capability with terminal-overrides (add something like ',vte*:Smulx=\E[4\:%p1%dm'). GitHub issue 1492.
2018-10-03Do not move the cursor when the mouse wheel is used, GitHub issue 1493.Nicholas Marriott
2018-09-25Allow panes to be 1 line or column by redrawing instead of using theNicholas Marriott
scroll region, from Soeren Tempel in GitHub issue 1487.
2018-08-29Keep any text killed in the command prompt with C-w and yank it withNicholas Marriott
C-y, only use the top buffer if no text has previously been killed. This and previous change promped by discussion with kn@.
2018-08-23Move job struct into job.c.Nicholas Marriott
2018-08-22Add StatusLeft and StatusRight mouse key modifiers for the left andNicholas Marriott
right parts of the status line.
2018-08-20Move offset of window list into status struct.Nicholas Marriott
2018-08-19Add a flag to force redrawing of the status line even if the contentNicholas Marriott
hasn't changed, needed for resizing.
2018-08-19Add a client redraw-window flag instead of the redraw-all flag and forNicholas Marriott
all just use the three flags together (window, borders, status).
2018-08-18SESSION_UNATTACHED flag is no longer necessary now we have an attachedNicholas Marriott
count instead.
2018-08-18Some tidying and helper functions.Nicholas Marriott
2018-08-09Bump the UTF-8 character array up to 18 to allow for more combiningNicholas Marriott
characters (some languages use up to five). This size doesn't make as much difference now that UTF-8 goes into an extended cell. GitHub issue 1430.
2018-08-02Log command arguments.Nicholas Marriott
2018-08-02session_groups can be static also.Nicholas Marriott
2018-08-02Make key trees and some other bits static.Nicholas Marriott
2018-08-02Minor tidying.Nicholas Marriott
2018-08-02Make display-panes block the client until a pane is chosen or it times out.Nicholas Marriott
2018-07-31Move struct screen_sel into screen.c and tidy up members that are onlyNicholas Marriott
used by copy mode.
2018-07-30Remove a leftover unused struct.Nicholas Marriott
2018-07-16Add an "Any" key to run a command if a key is pressed that is not boundNicholas Marriott
in the current key table. GitHub issue 1404.
2018-07-04Add set-hook -R to run a hook immediately (useful to set multiple hooksNicholas Marriott
to the same thing).
2018-07-04Add accessors for grid linedata member, for some future work. From DanNicholas Marriott
Aloni.
2018-06-08Instead of working out which pane to resize with the mouse by walkingNicholas Marriott
the panes list, look through the layout cells for the nearest border and resize that cell. From Dan Aloni in GitHub issue 1374.