summaryrefslogtreecommitdiffstats
path: root/status.c
AgeCommit message (Collapse)Author
2015-12-11Style nits and line wrapping of function declarations.nicm
2015-12-11Add cmdq as an argument to format_create and add a format for thenicm
command name (will also be used for more later).
2015-12-08Remove format_create_flags and just pass flags to format_create.nicm
2015-11-22If display-time is set to 0, show status messages until a key is pressed;tim
OK nicm@
2015-11-20Instead of separate tables for different types of options, give eachnicm
option a scope type (server, session, window) in one table.
2015-11-18Use __unused rather than rolling our own.nicm
2015-11-13Long overdue change to the way we store cells in the grid: now, insteadnicm
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-8nicm
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 tonicm
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.nicm
2015-10-20Use client pointer not file descriptor in logging.nicm
2015-09-14Make refresh-client force update of jobs, from Sina Siadat.nicm
2015-08-29Move struct paste_buffer out of tmux.h.nicm
2015-08-28Run status update on a per-client timer at status-interval.nicm
2015-07-29status_out and associated data structures are no longer used.nicm
2015-07-28Tidy up the way terminals are described and move some structs out of tmux.h.nicm
2015-07-20Add an option (history-file) for a file to save/restore command promptnicm
history, from Olof-Joachim Frahm.
2015-05-27Move the jobs output cache into the formats code so that #() work morenicm
generally (for example, again working in set-titles-string).
2015-05-06Remove ARRAY_* from history and expand completion to complete a) layoutnicm
names and b) targets beginning with -t or -s.
2015-04-25Make message log a TAILQ.nicm
2015-04-24Set working directory for run-shell and if-shell.nicm
2015-04-19Rewrite of tmux mouse support which was a mess. Instead of havingnicm
options for "mouse-this" and "mouse-that", mouse events may be bound as keys and there is one option "mouse" that turns on mouse support entirely (set -g mouse on). See the new MOUSE SUPPORT section of the man page for description of the key names and new flags (-t= to specify the pane or window under mouse as a target, and send-keys -M to pass through a mouse event). The default builtin bindings for the mouse are: bind -n MouseDown1Pane select-pane -t=; send-keys -M bind -n MouseDown1Status select-window -t= bind -n MouseDrag1Pane copy-mode -M bind -n MouseDrag1Border resize-pane -M To get the effect of turning mode-mouse off, do: unbind -n MouseDrag1Pane unbind -temacs-copy MouseDrag1Pane The old mouse options are now gone, set-option -q may be used to suppress warnings if mixing configuration files.
2015-02-06Use the same time for both calls to format_expand_time.nicm
2015-02-06status_replace can now become local to status.c and it no longer needsnicm
the jobsflag argument. While here there is no need to repeat work that format_defaults already does.
2015-02-06Add format_expand_time and use it instead of status_replace wherenicm
command execution is not needed.
2015-02-05Wrap all the individual format_* calls in a single format_defaultsnicm
functions.
2015-02-01Remove two unused arguments from status_replace.nicm
2015-01-20typo in comment ;) ok nicmsthen
2014-11-05Do not put a space between status-left/status-right and the window list,nicm
instead move the space into the defaults for the options (so status-left now defaults to "[#S] ". From Balazs Kezes.
2014-10-20Better format for printf format attributes.nicm
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.nicm
2014-10-02Take account of window-status-separator when checking window position,nicm
based on diff from Balazs Kezes.
2014-04-24There is no longer a need for a paste_stack struct or for global_buffersnicm
to be global. Move to paste.c.
2014-04-17Remove the monitor-content option and associated bits and bobs. It'snicm
never worked very well. If there is a big demand for it to return, will consider better ways to do it.
2014-04-02Do not replace ## with # in status_replace1 because it'll be done laternicm
by the format code.
2014-03-31Make message-limit a server option.nicm
2014-02-14Style nit - no space between function name and bracket.nicm
2014-02-14Check for NULL session and whatnot in status_replace, from Thomas Adam.nicm
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
2013-07-05Whitespace nits, from Ben Boeckel.Nicholas Marriott
2013-05-31Demote the old single-character replacement variables (#S and friends)Nicholas Marriott
to aliases of formats. From Tiago Cunha.
2013-03-25Extend jobs to support writing and use that for copy-pipe instead ofNicholas Marriott
popen, from Chris Johnsen.
2013-03-22evbuffer_readline returns allocated storage, don't leak it.Nicholas Marriott
2013-03-22No more lint means no more ARGSUSED.Nicholas Marriott
2013-03-21Aargh. Spaces -> tabs.Nicholas Marriott
2012-11-27Add window-status-last-* options, from Boris Faure.Nicholas Marriott
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-07-09Move a NULL check inside a function, from Tiago Cunha.Nicholas Marriott
2012-04-29Use int not u_char for colours from options since they may have bit 8Nicholas Marriott
set to mark them as 256-colour. Reported by Chris Johnson.
2012-04-23Add window-status-separator option, from Thomas Adam.Nicholas Marriott