summaryrefslogtreecommitdiffstats
path: root/format.c
AgeCommit message (Collapse)Author
2015-05-30Merge branch 'obsd-master'Thomas Adam
2015-05-29Don't use special strings if #() commands fail, just remove the formatnicm
(as if the command produced nothing). Makes constructions that can fail like '#(test whatever && echo foo)' work as they did before.
2015-05-29Expand formats again inside #(), and free the temporaries.nicm
2015-05-27Merge branch 'obsd-master'Thomas Adam
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-20Merge branch 'obsd-master'Thomas Adam
2015-05-20Return empty string if format is empty rather than attempting tonicm
allocate zero bytes.
2015-05-13Merge branch 'obsd-master'Thomas Adam
2015-05-12Add a session_alerts format which is a list of all the alerts in thenicm
current session in symbolic form (something like "0!,4~,5!"). Use this in the default set-titles-string. Prompted by a request from Jan ONDREJ.
2015-05-09Merge branch 'obsd-master'Thomas Adam
Conflicts: tmux.h
2015-05-08Move input parser structs into input.c (removing fairly uselessnicm
saved_cursor_[xy] formats as a side-effect).
2015-05-06Merge branch 'obsd-master'Thomas Adam
2015-05-06Add a format window_linked which is 1 if a window has been linkednicm
multiple times, also remove the default space in window_flags and use a conditional to add it in window-status-format (this means additional flags can be added in the option without extra spaces). From Thomas Adam with tweaks by me.
2015-04-22Merge branch 'obsd-master'Thomas Adam
2015-04-21Always format real layout even when zoomed.nicm
2015-04-21Put mouse_any_flag back, don't know where it went to (still in man page).nicm
2015-04-20Support for multiple key tables to commands to be bound to sequences ofnicm
keys. The default key bindings become the "prefix" table and -n the "root" table. Keys may be bound in new tables with bind -T and switch-client -T used to specify the table in which the next key should be looked up. Based on a diff from Keith Amling.
2015-04-19Merge branch 'obsd-master'Thomas Adam
2015-03-31Add a helper function to convert time, and add session_activity formatsnicm
(the latter from Takatoshi Matsumoto).
2015-03-31Fix some format specifier nits, from Ben Boeckel.nicm
2015-02-06Merge branch 'obsd-master'Thomas Adam
Conflicts: cmd-pipe-pane.c
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-01-16Merge branch 'obsd-master'Thomas Adam
2015-01-11correctly use HOST_NAME_MAX.deraadt
Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
2014-12-19Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c
2014-12-09Add pane_dead_status for exit status of dead panes.nicm
2014-12-03Merge branch 'obsd-master'Thomas Adam
2014-12-02Permit option values to be used in formats.nicm
2014-12-01Check ZOOMED flag on window.nicm
2014-11-09Merge branch 'obsd-master'Thomas Adam
2014-11-08Empty strings should be false too for #{?}, from Marc Finet.nicm
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-10-29Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-link-window.c cmd-unlink-window.c
2014-10-25Add pane_input_off format, from Anish R Athalye.nicm
2014-10-21Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.nicm
2014-09-25Merge branch 'obsd-master'Thomas Adam
2014-09-08Add window_last_flag and window_zoomed_flag. From John Morrissey.nicm
2014-08-09Merge branch 'obsd-master'Thomas Adam
Conflicts: client.c
2014-08-09Remove support for the continuous reporting "any" mouse mode which nevernicm
really worked properly and is rarely used.
2014-06-20Merge branch 'obsd-master'Thomas Adam
2014-05-27Add some formats for pane bounds.nicm
2014-05-13Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c window.c
2014-05-13If multiple arguments are given to new-session, new-window,nicm
split-window, respawn-window or respawn-pane, pass them directly to execvp() to help avoid quoting problems. One argument still goes to "sh -c" like before. Requested by many over the years. Patch from J Raynor.
2014-05-13Add support for named buffers. If you don't name a buffer, things worknicm
much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
2014-04-23Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tmux.1 window.c
2014-04-17Add some UTF-8 utility functions and use them to prevent the width limitnicm
on formats from splitting UTF-8 characters improperly.
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-05Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tty-keys.c