summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
AgeCommit message (Collapse)Author
2018-02-05Add struct status_line to hold status line members of struct client, notNicholas Marriott
used yet but will be soon. From Thomas Adam.
2018-01-01Add C-g at command prompt for emacs people, GitHub issue 1213.Nicholas Marriott
2017-12-27Draw command prompt correctly with status line off.Nicholas Marriott
2017-12-18Remove unused variable from Thomas Adam.Nicholas Marriott
2017-11-02Add a "fast" version of screen_write_copy for tree mode that doesn't doNicholas Marriott
all the checks and selection and marking stuff needed for copy mode.
2017-10-20Clear status line with spaces again so reverse works, spotted by sthen.Nicholas Marriott
2017-10-16Infrastructure for drawing status lines of more than one line in height,Nicholas Marriott
still only one is allowed but this lets tmux draw bigger ones.
2017-05-29Add a flag to stop the prompt input being expanded.Nicholas Marriott
2017-05-29Store a copy of the old status line, will be needed soon for new choose mode.Nicholas Marriott
2017-05-17Tidy command prompt callbacks and pass in the client.Nicholas Marriott
2017-05-03Add a format for the last search string in copy mode and fix the promptNicholas Marriott
so it can work when in -I, suggested by Suraj N Kurapati.
2017-05-01In order that people can use formats like #D in #() in the status lineNicholas Marriott
and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients. To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes. GitHub issue 889; test case reported by Paul Johnson.
2017-04-22Memory leak from David CARLIER.Nicholas Marriott
2017-02-09Break the message storage function into its own function, useful forNicholas Marriott
debugging.
2017-02-03Cache status line position to reduce option lookups during output.Nicholas Marriott
2017-02-03Add a window or pane id "tag" to each format tree and use it to separateNicholas Marriott
jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
2017-01-13Make options_get_string return const string.Nicholas Marriott
2017-01-06Incremental search in copy mode (on for emacs keys by default) - muchNicholas Marriott
the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before.
2017-01-05Highlight all occurrences of search string after searching in copy mode.Nicholas Marriott
2016-12-07Do not clear the prompt when a message is shown, just leave it around andNicholas Marriott
return to it when the message is finished.
2016-10-12Drop the edit mode key tables and just use fixed key bindings for theNicholas Marriott
command prompt.
2016-10-12The repeat prompt in both emacs and vi (and the old one in tmux) doesn'tNicholas Marriott
support line editing and instead executes a command as soon as a non-number key is pressed. Add a -N flag to command-prompt for the same in copy mode. Reported by Theo Buehler.
2016-10-11Fundamental change to how copy mode key bindings work:Nicholas Marriott
The vi-copy and emacs-copy mode key tables are gone, and instead copy mode commands are bound in one of two normal key tables ("copy-mode" or "copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So: bind -temacs-copy C-Up scroll-up bind -temacs-copy -R5 WheelUpPane scroll-up Becomes: bind -Tcopy-mode C-Up send -X scroll-up bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up This allows the full command parser and command set to be used - for example, we can use the normal command prompt for searching, jumping, and so on instead of a custom one: bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'" command-prompt also gets a -1 option to only require on key press, which is needed for jumping. The plan is to get rid of mode keys entirely, so more to come eventually.
2016-10-11Support UTF-8 entry into the command prompt.Nicholas Marriott
2016-10-10Loads more static, except for cmd-*.c and window-*.c.Nicholas Marriott
2016-09-12Allow repeat count to be specified in mode key tables with bind-key -R,Nicholas Marriott
and set the default repeat count to 5 for WheelUp and WheelDown in copy-mode.
2016-06-06Allow #[] in window-status-separator.Nicholas Marriott
2016-01-19I no longer use my SourceForge address so replace it.Nicholas Marriott
2016-01-01Don't rely on a calculation wrapping when applying message-limit, andNicholas Marriott
break out of the loop early. From Nicolas Viennot.
2015-12-11Style nits and line wrapping of function declarations.Nicholas Marriott
2015-12-11Add cmdq as an argument to format_create and add a format for theNicholas Marriott
command name (will also be used for more later).
2015-12-08Remove format_create_flags and just pass flags to format_create.Nicholas Marriott
2015-11-22If display-time is set to 0, show status messages until a key is pressed;Tim van der Molen
OK nicm@
2015-11-20Instead of separate tables for different types of options, give eachNicholas Marriott
option a scope type (server, session, window) in one table.
2015-11-18Use __unused rather than rolling our own.Nicholas Marriott
2015-11-13Long overdue change to the way we store cells in the grid: now, insteadNicholas Marriott
of storing a full grid_cell with UTF-8 data and everything, store a new type grid_cell_entry. This can either be the cell itself (for ASCII cells), or an offset into an extended array (per line) for UTF-8 data. This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the majority for most users) without the complexity of the shadow array we had before. Grid memory without any UTF-8 is about half. The disadvantage that cells can no longer be modified in place and need to be copied out of the grid and back but it turned out to be lot less complicated than I expected.
2015-11-12Nuke the utf8 and status-utf8 options and make tmux only a UTF-8Nicholas Marriott
terminal. We still support non-UTF-8 terminals outside tmux, but inside it is always UTF-8 (as when the utf8 and status-utf8 options were on).
2015-11-12Support UTF-8 key bindings by expanding the key type from int toNicholas Marriott
uint64_t and converting UTF-8 to Unicode on input and the reverse on output. (This allows key bindings, there are still omissions - the largest being that the various prompts do not accept UTF-8.)
2015-10-27Move struct options into options.c.Nicholas Marriott
2015-10-20Use client pointer not file descriptor in logging.Nicholas Marriott
2015-09-14Make refresh-client force update of jobs, from Sina Siadat.Nicholas Marriott
2015-08-29Move struct paste_buffer out of tmux.h.Nicholas Marriott
2015-08-28Run status update on a per-client timer at status-interval.Nicholas Marriott
2015-07-29status_out and associated data structures are no longer used.Nicholas Marriott
2015-07-28Tidy up the way terminals are described and move some structs out of tmux.h.Nicholas Marriott
2015-07-20Add an option (history-file) for a file to save/restore command promptNicholas Marriott
history, from Olof-Joachim Frahm.
2015-05-27Move the jobs output cache into the formats code so that #() work moreNicholas Marriott
generally (for example, again working in set-titles-string).
2015-05-06Remove ARRAY_* from history and expand completion to complete a) layoutNicholas Marriott
names and b) targets beginning with -t or -s.
2015-04-25Make message log a TAILQ.Nicholas Marriott
2015-04-24Set working directory for run-shell and if-shell.Nicholas Marriott