OpenBSD CVS

CVS log for src/usr.bin/tmux/options-table.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.174 / (download) - annotate - [select for diffs], Tue May 14 09:32:37 2024 UTC (5 days, 3 hours ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.173: +1 -9 lines
Diff to previous 1.173 (colored)

Revert part of the change for GitHub issue 3675 because it does not work
correctly, it was intended to skip lines that are already being searched
as part of a previous wrapped line but in fact is skipping all lines
except the last in wrapped lines.

Also revert the search-wrapped-lines option (I didn't realize it was
intended to work around this).

Revision 1.173 / (download) - annotate - [select for diffs], Tue May 14 07:52:19 2024 UTC (5 days, 4 hours ago) by nicm
Branch: MAIN
Changes since 1.172: +2 -1 lines
Diff to previous 1.172 (colored)

Add a command-error hook when a command fails, from Hugh Davenport in
GitHub issue 3973.

Revision 1.172 / (download) - annotate - [select for diffs], Tue May 14 07:40:39 2024 UTC (5 days, 5 hours ago) by nicm
Branch: MAIN
Changes since 1.171: +9 -1 lines
Diff to previous 1.171 (colored)

Add an option to disable unwrapping lines for searching, from
meanderingprogrammer at gmail dot com, GitHub issue 3975.

Revision 1.171 / (download) - annotate - [select for diffs], Wed Apr 10 07:36:25 2024 UTC (5 weeks, 4 days ago) by nicm
Branch: MAIN
Changes since 1.170: +9 -1 lines
Diff to previous 1.170 (colored)

Add an option allow-set-title to forbid applications from changing the
pane title, from someone in GitHub issue 3930.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Mar 21 11:53:11 2024 UTC (8 weeks, 3 days ago) by nicm
Branch: MAIN
Changes since 1.169: +2 -2 lines
Diff to previous 1.169 (colored)

Reduce escape-time default to 10 milliseconds, 500 is far too long for
modern terminals and networks. Case made by Kurtis Rader in GitHub issue
3844.

Revision 1.169 / (download) - annotate - [select for diffs], Tue Feb 13 08:10:23 2024 UTC (3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.168: +7 -3 lines
Diff to previous 1.168 (colored)

Add two new values for the destroy-unattached option to destroy sessions
only if they are not members of sessions groups, from Mark Huang, GitHub
issue 3806.

Revision 1.168 / (download) - annotate - [select for diffs], Fri Sep 1 13:48:54 2023 UTC (8 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored)

Add detach-on-destroy previous and next, mostly from Alexis Hildebrandt.

Revision 1.167 / (download) - annotate - [select for diffs], Tue Aug 15 07:01:47 2023 UTC (9 months ago) by nicm
Branch: MAIN
Changes since 1.166: +11 -2 lines
Diff to previous 1.166 (colored)

Add an option menu-selected-style to configure the currently selected
menu item, from Alexis Hildebrandt.

Revision 1.166 / (download) - annotate - [select for diffs], Tue Aug 8 08:08:47 2023 UTC (9 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.165: +28 -1 lines
Diff to previous 1.165 (colored)

Add options and flags for menu styles similar to those existing for
popups, from Alexis Hildebrandt. GitHub issue 3650.

Revision 1.165 / (download) - annotate - [select for diffs], Fri Sep 9 11:02:23 2022 UTC (20 months, 1 week ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.164: +13 -2 lines
Diff to previous 1.164 (colored)

Add message-line option to control where message and prompt go, from
Varun Kumar E in GitHub issue 3324.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Aug 2 11:09:26 2022 UTC (21 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.163: +9 -3 lines
Diff to previous 1.163 (colored)

Add a third state "all" to allow-passthrough to work even in invisible
panes, from Sergei Grechanik in GitHub issue 3274.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Jun 14 07:29:00 2022 UTC (23 months ago) by nicm
Branch: MAIN
Changes since 1.162: +3 -2 lines
Diff to previous 1.162 (colored)

kf* terminfo capabilities are poorly defined and rxvt uses them in a
different way from xterm, so add a feature flag for rxvt to make tmux
ignore the capabilities and instead rely on its builtin definitions.

Revision 1.162 / (download) - annotate - [select for diffs], Thu Mar 24 12:07:25 2022 UTC (2 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.161: +2 -1 lines
Diff to previous 1.161 (colored)

Add unit (milliseconds) to escape-time, show unset colours as "none"
rather than "invalid" and don't show the same text twice for user
options in customize mode.

Revision 1.161 / (download) - annotate - [select for diffs], Thu Mar 17 11:35:37 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.160: +9 -1 lines
Diff to previous 1.160 (colored)

Add an option (scroll-on-clear) to control if tmux scrolls into history
on clear, from Robert Lange in GitHub issue 3121.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Mar 16 17:00:17 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.159: +8 -1 lines
Diff to previous 1.159 (colored)

Add an option to set the character used for unused areas of the
terminal, GitHub issue 3110.

Revision 1.159 / (download) - annotate - [select for diffs], Tue Mar 8 18:31:46 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.158: +14 -1 lines
Diff to previous 1.158 (colored)

Add remain-on-exit-format to set text shown when pane is dead.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Feb 17 09:58:47 2022 UTC (2 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.157: +2 -1 lines
Diff to previous 1.157 (colored)

Add a window-resized hook which is fired when the window is actually
resized which may be later than the client resize, GitHub issue 2995.

Revision 1.157 / (download) - annotate - [select for diffs], Tue Feb 15 13:11:29 2022 UTC (2 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.156: +15 -7 lines
Diff to previous 1.156 (colored)

Add an option (default off) to control the passthrough escape sequence.
Like set-clipboard and allow-rename it is safer to forbid this by
default.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Feb 1 14:46:41 2022 UTC (2 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.155: +13 -1 lines
Diff to previous 1.155 (colored)

Add option to show arrows for active pane indicator, GitHub issue 3022
from Marcel Partap.

Revision 1.155 / (download) - annotate - [select for diffs], Mon Dec 13 09:42:20 2021 UTC (2 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.154: +2 -2 lines
Diff to previous 1.154 (colored)

Make pane-border-format a pane option, GitHub issue 2999.

Revision 1.154 / (download) - annotate - [select for diffs], Wed Nov 3 13:37:17 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.153: +13 -1 lines
Diff to previous 1.153 (colored)

Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Nov 1 09:34:49 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.152: +9 -1 lines
Diff to previous 1.152 (colored)

Add a cursor-colour option, from Alexis Hildebrandt in GitHub issue
2959.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Oct 14 13:19:01 2021 UTC (2 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.151: +15 -3 lines
Diff to previous 1.151 (colored)

Add popup-border-lines option to set popup line style, from Alexis
Hildebrandt, GitHub issue 2930.

Revision 1.151 / (download) - annotate - [select for diffs], Wed Oct 13 09:28:36 2021 UTC (2 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.150: +19 -1 lines
Diff to previous 1.150 (colored)

Add popup-style and popup-border-style options, from Alexis Hildebrandt
in GitHub issue 2927.

Revision 1.150 / (download) - annotate - [select for diffs], Thu Aug 12 20:44:49 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.149: +19 -19 lines
Diff to previous 1.149 (colored)

Now that styles can contain formats, they need to be expanded when
inserted into the status line.

Revision 1.149 / (download) - annotate - [select for diffs], Wed Aug 11 20:49:55 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.148: +10 -1 lines
Diff to previous 1.148 (colored)

Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups.
Also add a pane-colours array option to specify the defaults. GitHub
issue 2815.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Aug 6 09:19:02 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.147: +3 -1 lines
Diff to previous 1.147 (colored)

Add client focus hooks.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Aug 4 08:07:19 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.146: +2 -1 lines
Diff to previous 1.146 (colored)

Add a client-active hook, from ncfavier in GitHub issue 2803.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Jul 28 07:06:54 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored)

Make window-linked and window-unlinked window options, GitHub issue
2790.

Revision 1.145 / (download) - annotate - [select for diffs], Wed Jul 14 08:56:00 2021 UTC (2 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Move default value for TERM into tmux.h.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Jun 16 11:57:04 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.143: +5 -4 lines
Diff to previous 1.143 (colored)

Minor fixes to option descriptions.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Jun 10 07:56:47 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.142: +6 -2 lines
Diff to previous 1.142 (colored)

More accurate vi(1) word navigation in copy mode and on the status line.
This changes the meaning of the word-separators option - setting it to
the empty string is equivalent to the previous behavior. From Will Noble
in GitHub issue 2693.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Jun 10 07:50:03 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.141: +10 -1 lines
Diff to previous 1.141 (colored)

Add different command historys for different types of prompts
("command", "search" etc). From Anindya Mukherjee.

Revision 1.141 / (download) - annotate - [select for diffs], Thu Jun 10 07:24:10 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.140: +6 -2 lines
Diff to previous 1.140 (colored)

Add an "always" value to the extended-keys option to always forward
these keys to applications inside tmux.

Revision 1.140 / (download) - annotate - [select for diffs], Thu Mar 11 06:41:04 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored)

Add an "absolute-centre" alignment to use the centre of the total space
instead of only the available space. From Magnus Gross in GitHub issue 2578.

Revision 1.139 / (download) - annotate - [select for diffs], Mon Feb 1 08:01:14 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.138: +6 -2 lines
Diff to previous 1.138 (colored)

Add a no-detached choice to detach-on-destroy which detaches only if
there are no other detached sessions to switch to, from Sencer Selcuk in
GitHub issue 2553.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Jan 20 07:16:54 2021 UTC (3 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

Change so that window_flags escapes # automatically which means configs
will not have to change. A new format window_raw_flags contains the old
unescaped version.

Revision 1.137 / (download) - annotate - [select for diffs], Mon Jan 4 08:43:16 2021 UTC (3 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.136: +7 -3 lines
Diff to previous 1.136 (colored)

Add a variant of remain-on-exit that only keeps the pane if the program
failed, GitHub issue 2513.

Revision 1.136 / (download) - annotate - [select for diffs], Tue Dec 15 08:31:50 2020 UTC (3 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

Make synchronize-panes a pane option and add -U flag to set-option to
unset an option on all panes. GitHub issue 2491 from Rostislav Nesin.

Revision 1.135 / (download) - annotate - [select for diffs], Tue Dec 1 08:12:58 2020 UTC (3 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Make replacement of ##s consistent when drawing formats, whether
followed by [ or not. Add a flag (e) to the q: format modifier to double
up #s and use it for the window_flags format variable so it doesn't end
up escaping any following text. GitHub issue 2485.

Revision 1.134 / (download) - annotate - [select for diffs], Tue Aug 25 11:35:32 2020 UTC (3 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.133: +9 -1 lines
Diff to previous 1.133 (colored)

Allow colour to be spelt as color, from Boris Verkhovsky. GitHub issue
2317.

Revision 1.133 / (download) - annotate - [select for diffs], Fri Jul 24 07:05:37 2020 UTC (3 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.132: +2 -1 lines
Diff to previous 1.132 (colored)

Add a hook when the pane title changed.

Revision 1.132 / (download) - annotate - [select for diffs], Fri May 22 15:08:38 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

xterm* can have focus too.

Revision 1.131 / (download) - annotate - [select for diffs], Sat May 16 16:44:54 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.130: +9 -1 lines
Diff to previous 1.130 (colored)

Add a terminal feature for enable/disable extended keys (supported by
xterm and mintty) and add an option to make tmux send it. Only forward
extended keys if the application has requested them, even though we use
the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.

Revision 1.130 / (download) - annotate - [select for diffs], Sat May 16 16:30:59 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.129: +4 -3 lines
Diff to previous 1.129 (colored)

xterm-keys has been on by default for five years and all other modern
terminals use these key sequences by default. Merge the code into the
main tty and input tree processing (converting the latter to use a tree
rather than a table at the same time) and make the option a no-op.

Revision 1.129 / (download) - annotate - [select for diffs], Sat May 16 16:26:34 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.128: +12 -1 lines
Diff to previous 1.128 (colored)

Add an option to set the pane border lines style from a choice of single
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or
number (the pane numbers). Lines that won't work on a non-UTF-8 terminal
are translated back into ACS when they are output.

Revision 1.128 / (download) - annotate - [select for diffs], Sat May 16 16:10:28 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.127: +10 -1 lines
Diff to previous 1.127 (colored)

Add a mark in copy mode. Set with set-mark command (bound to 'X') by
default and the mark and cursor position are swapped with 'jump-to-mark'
(bound to M-x). The line containing the mark is shown in
copy-mode-mark-style with the horizontal position in reverse.

From Anindya Mukherjee in GitHub issue 2209.

Revision 1.127 / (download) - annotate - [select for diffs], Sat May 16 16:02:24 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.126: +260 -100 lines
Diff to previous 1.126 (colored)

Add a customize mode where keys and options may be browsed and changed,
includes adding a brief description of each option. Bound to "C" by
default.

Revision 1.126 / (download) - annotate - [select for diffs], Sat May 16 15:47:22 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored)

Change message log to be per server rather than per client and include
every command that is run.

Revision 1.125 / (download) - annotate - [select for diffs], Sat May 16 15:24:28 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.124: +7 -1 lines
Diff to previous 1.124 (colored)

Add 'e' key in buffer mode to open the buffer in an editor.

Revision 1.124 / (download) - annotate - [select for diffs], Sat May 16 15:11:52 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.123: +17 -1 lines
Diff to previous 1.123 (colored)

Copy mode search improvements:

- Add styles for the search marking styles (copy-mode-match-style and
  copy-mode-current-match-style).

- Show the current match (the one with the cursor on it) in a different style.

- Copying without a selection will copy the current match if there is one.

Revision 1.123 / (download) - annotate - [select for diffs], Sat May 16 15:01:31 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.122: +63 -33 lines
Diff to previous 1.122 (colored)

Drop having a separate type for style options and make them all strings,
which allows formats to be expanded. Any styles without a '#{' are still
validated when they are set but any with a '#{' are not. Formats are not
expanded usefully in many cases yet, that will be changed later.

To make this work, a few other changes:

- set-option -a with a style option automatically appends a ",".

- OSC 10 and 11 don't set the window-style option anymore, instead the
  fg and bg are stored in the pane struct and act as the defaults that
  can be overridden by window-style.

- status-fg and -bg now override status-style instead of trying to keep
  them in sync.

Revision 1.122 / (download) - annotate - [select for diffs], Sat May 16 14:46:14 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.121: +2 -2 lines
Diff to previous 1.121 (colored)

Instead of having a default set of terminals in terminal-overrides that
get XT added and using that as a marker for xterm(1)-like, assume that
if the terminfo(5) entry already has XT or the clear capability starts
with CSI then the terminal is VT100-like and it should be safe to send
DA requests. The DA responses trigger additional features being added.

Revision 1.121 / (download) - annotate - [select for diffs], Sat May 16 14:39:40 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

Add feature and capabilities for focus reporting. Also document AX and
XT even though they aren't tmux's, and add some bits for rxvt.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Apr 22 06:57:13 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.119: +9 -17 lines
Diff to previous 1.119 (colored)

Change so main-pane-width and height can be given as a percentage.

Revision 1.119 / (download) - annotate - [select for diffs], Tue Apr 21 05:26:13 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.118: +2 -2 lines
Diff to previous 1.118 (colored)

xterm* needs XT also.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Apr 20 13:25:36 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.117: +11 -4 lines
Diff to previous 1.117 (colored)

Tidy up the terminal detection and feature code and add named sets of
terminal features, each of which are defined in one place and map to a
builtin set of terminfo(5) capabilities. Features can be specified based
on TERM with a new terminal-features option or with the -T flag when
running tmux. tmux will also detect a few common terminals from the DA
and DSR responses.

This is intended to make it easier to configure tmux's use of
terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5)
databases or for features which do not yet have a terminfo(5) entry.
Instead of having to grok terminfo(5) capability names and what they
should be set to in the terminal-overrides option, the user can
hopefully just give tmux a feature name and let it do the right thing.

The terminal-overrides option remains both for backwards compatibility
and to allow tweaks of individual capabilities.

tmux already did much of this already, this makes it tidier and simpler
to configure.

Revision 1.117 / (download) - annotate - [select for diffs], Fri Apr 17 08:03:22 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.116: +7 -1 lines
Diff to previous 1.116 (colored)

Add a copy-command option and change copy-pipe and friends to pipe to it
if used without arguments, allows all copy key bindings to be changed to
pipe with one option.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Apr 13 07:25:33 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.115: +31 -13 lines
Diff to previous 1.115 (colored)

Change so that the appropriate hooks for windows and panes belong to
pane/window options rather than all being session options. This is
useful for example to create a pane that is automatically closed on some
condition. From Anindya Mukherjee.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Nov 28 10:55:45 2019 UTC (4 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.114: +2 -1 lines
Diff to previous 1.114 (colored)

Missing after-kill-pane option.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Nov 28 08:38:04 2019 UTC (4 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.113: +9 -3 lines
Diff to previous 1.113 (colored)

status-left and status-right need push-default also, reported by Eric
Pruitt in GitHub issue 1989.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Nov 14 16:23:23 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Change window-size default from smallest to latest.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Nov 14 07:55:01 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.111: +7 -1 lines
Diff to previous 1.111 (colored)

Add an option to set the key sent by backspace for those whose system
uses ^H rather than ^?. GitHub issue 1969.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Sep 19 09:02:30 2019 UTC (4 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

Add a "latest" window-size option which tries to size windows based on
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Sep 15 21:42:57 2019 UTC (4 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.109: +5 -1 lines
Diff to previous 1.109 (colored)

Add push-default and pop-default in styles to change the default colours
and attributes and use them to restore the previous behaviour of
window-status-style being the default for window-status-format in the
status line. From John Drouhard in GitHub issue 1912.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jun 26 13:03:47 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

Add #define for the pane status line option position numbers.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Jun 20 13:40:22 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

allow-rename and alternate-screen can be pane options.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jun 20 11:59:59 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Add a per-pane option set. Pane options inherit from window options (so
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.

Revision 1.106 / (download) - annotate - [select for diffs], Sun May 26 17:34:45 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

Add formats for word and line under the mouse and use them to add some
items to the pane menu.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Apr 26 11:38:51 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.104: +75 -1 lines
Diff to previous 1.104 (colored)

Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).

Revision 1.104 / (download) - annotate - [select for diffs], Tue Apr 23 20:36:55 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.103: +11 -6 lines
Diff to previous 1.103 (colored)

Indicate an array option with a flag rather than a special type so that
in future will not have to be strings.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Apr 7 20:18:20 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.102: +5 -2 lines
Diff to previous 1.102 (colored)

Current window style also needs to be tested for default.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Apr 2 18:41:24 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.101: +5 -3 lines
Diff to previous 1.101 (colored)

Silence flag should use the same option as activity, reported by Thomas
Sattler.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Mar 19 21:09:51 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.100: +31 -13 lines
Diff to previous 1.100 (colored)

Include window-status-style and window-status-current style in the format.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Mar 18 21:46:02 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.99: +1 -248 lines
Diff to previous 1.99 (colored)

The individual -fg, -bg and -attr options have been deprecated (in
favour of -style), undocumented and hidden from show-options since
2014. Remove them, except for status-fg and status-bg.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Mar 18 20:53:33 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.98: +52 -2 lines
Diff to previous 1.98 (colored)

Extend the #[] style syntax and use that together with previous format
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.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 25 15:13:38 2018 UTC (5 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

Add a "terminal" colour which can be used instead of "default" in style
options for the terminal default colour, bypassing any inheritance from
other options. Prompted by a discussion with abieber@.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 18 08:38:01 2018 UTC (5 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.96: +21 -18 lines
Diff to previous 1.96 (colored)

Support for windows larger than visible on the attached client. This has
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.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Apr 23 14:03:06 2018 UTC (6 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Add KRB5CCNAME to update-environment.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Feb 22 10:54:51 2018 UTC (6 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.94: +7 -1 lines
Diff to previous 1.94 (colored)

Add exit-empty option to exit server if no sessions (defaults to on).

Revision 1.94 / (download) - annotate - [select for diffs], Wed Oct 25 14:14:52 2017 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Default allow-rename to off because it is ridiculous that applications
are even able to do this and confusing when they do.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 17 08:37:38 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.92: +7 -1 lines
Diff to previous 1.92 (colored)

Add monitor-bell window option to match the activity and silence
options, from Brad Town.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Aug 16 11:46:08 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

Rename BELL_* values to ALERT_* now they are used by more than bells,
based on a diff from Brad Town.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jul 26 16:14:08 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.90: +27 -13 lines
Diff to previous 1.90 (colored)

Make bell, activity and silence alerting more consistent:

- remove the bell-on-alert option;

- add activity-action and silence-action options with the same possible
  values as the existing bell-action;

- add "both" value for the visual-bell, visual-activity and
  visual-silence options to trigger both a bell and a message.

This means all three work the same way. Based on changes from Yvain Thonnart.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jun 23 15:36:52 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.89: +8 -1 lines
Diff to previous 1.89 (colored)

Add user-keys option to allow user-defined keys to be set, from Dan
Aloni.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Jun 3 17:43:01 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.88: +6 -2 lines
Diff to previous 1.88 (colored)

Make set-clipboard a three-state option so tmux itself can ignore the
sequencess.

Revision 1.88 / (download) - annotate - [select for diffs], Tue May 30 21:44:59 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.87: +5 -3 lines
Diff to previous 1.87 (colored)

Rewrite of choose mode, both to simplify and tidy the code and to add
some modern features.

Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.

Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:

- each mode has a preview pane: for buffers this is the buffer content
  (very useful), for others it is a preview of the pane;

- items may be sorted in different ways ('O' key);

- multiple items may be tagged and an operation applied to all of them
  (for example, to delete multiple buffers at once);

- in tree mode a command may be run on the selected item (session,
  window, pane) or on tagged items (key ':');

- displayed items may be filtered in tree mode by using a format (this
  is used to implement find-window) (key 'f');

- the custom format (-F) for the display is no longer available;

- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
  with keys used for other uses to 0-9, M-a to M-z.

Now that the code is simpler, other improvements will come later.

Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).

Parts written by Thomas Adam.

Revision 1.87 / (download) - annotate - [select for diffs], Mon May 29 20:41:29 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.86: +5 -5 lines
Diff to previous 1.86 (colored)

Store a copy of the old status line, will be needed soon for new choose mode.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jan 24 20:15:32 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (colored)

Make update-environment an array as well.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Jan 24 20:05:15 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)

Convert terminal-overrides to an array option.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 24 19:59:19 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.83: +5 -2 lines
Diff to previous 1.83 (colored)

server-info can become an alias rather than a command.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jan 24 19:53:37 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.82: +8 -1 lines
Diff to previous 1.82 (colored)

Add support for custom command aliases, this is an array option which
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Jan 16 14:52:25 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.81: +0 -7 lines
Diff to previous 1.81 (colored)

Revert WIP parts of previous I didn't mean to commit yet.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Jan 16 14:49:14 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.80: +8 -1 lines
Diff to previous 1.80 (colored)

getopt() has a struct option so just return to using options_entry.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jan 15 20:48:41 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.79: +2 -99 lines
Diff to previous 1.79 (colored)

Major tidy up and rework of options tree and set-option/show-options
commands this pushes more of the code into options.c and ties it more
closely to the options table rather than having an unnecessary
split. Also add support for array options (will be used later). Only
(intentional) user visible change is that show-options output is now
passed through vis(3) with VIS_DQ so quotes are escaped.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jan 15 20:16:22 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.78: +1 -7 lines
Diff to previous 1.78 (colored)

Remove unused quiet option.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jan 12 15:36:35 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.77: +4 -3 lines
Diff to previous 1.77 (colored)

Simplify appending to string options.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Jan 11 14:56:44 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Some tidying and tweaks to options code.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 30 13:49:34 2016 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

Change the xterm-keys option to default to on, so that tmux will
generate xterm(1) escape sequences for function keys with modifiers.

With the option off most of these keys are ignored by default, except
for ctrl + arrows which use a variant that nothing else seems to use and
I don't remember why we chose. The xterm escape sequences are now the
most common.

Prompted by a question from mpi@.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Oct 13 21:37:03 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.74: +1 -7 lines
Diff to previous 1.74 (colored)

Remove the set-remain-on-exit option, it was always a hack and can now
be done with hooks instead.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Oct 3 22:52:11 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.73: +8 -8 lines
Diff to previous 1.73 (colored)

Remove some dead code in cmd-move-window.c and make a load of local
functions static.

Revision 1.73 / (download) - annotate - [select for diffs], Wed May 4 21:29:47 2016 UTC (8 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)

Fix up a couple of long lines.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Apr 29 15:00:48 2016 UTC (8 years ago) by nicm
Branch: MAIN
Changes since 1.71: +17 -1 lines
Diff to previous 1.71 (colored)

Add option to include status text in the pane borders. If
pane-border-status is set to "top" or "bottom" (rather than "off"),
every pane has a permanent top or bottom border containing the text from
pane-border-format.

Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and
simplified by me.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Dec 12 18:32:24 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.69: +7 -1 lines
Diff to previous 1.69 (colored)

Add key-table option to set the default key table for a session, allows
different key bindings for different sessions and a few other things.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Nov 24 09:34:55 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored)

Don't allow options in table without scope set.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 22 18:28:01 2015 UTC (8 years, 5 months ago) by tim
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

If display-time is set to 0, show status messages until a key is pressed;
OK nicm@

Revision 1.67 / (download) - annotate - [select for diffs], Fri Nov 20 12:01:19 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.66: +142 -39 lines
Diff to previous 1.66 (colored)

Instead of separate tables for different types of options, give each
option a scope type (server, session, window) in one table.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Nov 12 11:09:11 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.65: +1 -11 lines
Diff to previous 1.65 (colored)

Nuke the utf8 and status-utf8 options and make tmux only a UTF-8
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).

Revision 1.65 / (download) - annotate - [select for diffs], Thu Nov 12 08:19:18 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Default history-file should be "" not NULL, from Greg Onufe.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 11 23:23:33 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.63: +1 -6 lines
Diff to previous 1.63 (colored)

Drop mouse-utf8 option and always turn on UTF-8 mouse if the client says
it supports UTF-8.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 25 23:30:24 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

Adding colors=256 to *256color* was always pretty stupid and now it
won't work (without adding setaf@:setab@ too).

Revision 1.62 / (download) - annotate - [select for diffs], Fri Aug 28 12:31:55 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.61: +1 -6 lines
Diff to previous 1.61 (colored)

Remove the lock-server option which is a bit redundant, it isn't that
different without it.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 20 15:50:04 2015 UTC (8 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.60: +6 -1 lines
Diff to previous 1.60 (colored)

Add an option (history-file) for a file to save/restore command prompt
history, from Olof-Joachim Frahm.

Revision 1.60 / (download) - annotate - [select for diffs], Tue May 12 15:29:29 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Add a session_alerts format which is a list of all the alerts in the
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.

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 12 15:27:46 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Add bell-action "other" to pass through bells in all windows except the
current, suggested by Jan ONDREJ.

Revision 1.58 / (download) - annotate - [select for diffs], Mon May 11 10:58:22 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.57: +1 -15 lines
Diff to previous 1.57 (colored)

Left the c0-* options behind in the table.

Revision 1.57 / (download) - annotate - [select for diffs], Wed May 6 08:35:39 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Add a format window_linked which is 1 if a window has been linked
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.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 29 15:59:08 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.55: +6 -6 lines
Diff to previous 1.55 (colored)

If default-terminal is set to "screen" or "screen-*", emulate screen's
historical (incorrect) behaviour for SGR 3 and send smso
(standout). Previously, we would send sitm (italics) if the terminal
outside had it and smso otherwise. This was acceptably until recently
because xterm's terminfo entry lacked sitm, so most users got smso.

People who want italics should set default-terminal to the forthcoming
"tmux" entry (and be prepared to deal with it being missing on older
hosts).

As a side-effect this changes default-terminal to be a server rather
than a session option.

suggested by and ok naddy

Revision 1.55 / (download) - annotate - [select for diffs], Sun Apr 19 21:34:21 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.54: +2 -21 lines
Diff to previous 1.54 (colored)

Rewrite of tmux mouse support which was a mess. Instead of having
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.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Apr 19 21:05:27 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.53: +11 -1 lines
Diff to previous 1.53 (colored)

Support setting the default window and pane background colours (window
and active pane via window-style and window-active-style options, an
individual pane by a new select-pane -P flag). From J Raynor.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Feb 6 15:09:34 2015 UTC (9 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.52: +35 -35 lines
Diff to previous 1.52 (colored)

Move pane border options to window options rather than session, from Marc Finet.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Jan 21 12:20:56 2015 UTC (9 years, 3 months ago) by sthen
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

In options-table.c r1.51 an extra space was added to the default status-right,
overrunning status-right-length with long window titles. Allow for the extra
space so the last digit of the year isn't lost.  ok nicm@

Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 5 23:15:11 2014 UTC (9 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Do not put a space between status-left/status-right and the window list,
instead move the space into the defaults for the options (so status-left
now defaults to "[#S] ". From Balazs Kezes.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Apr 17 12:57:28 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)

Wrap some long lines.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Apr 17 11:38:35 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Remove some unnecessary includes and fix a typo.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Apr 17 07:55:43 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Remove the "info" message mechanism, this was only used for about five
mostly useless and annoying messages. Change those commands to silence
on success like all the others. Still accept the -q command line flag
and "quiet" server option for now.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Apr 17 07:36:45 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.46: +1 -34 lines
Diff to previous 1.46 (colored)

Remove the monitor-content option and associated bits and bobs. It's
never worked very well. If there is a big demand for it to return, will
consider better ways to do it.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 31 21:41:35 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.45: +8 -8 lines
Diff to previous 1.45 (colored)

Make message-limit a server option.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Feb 23 00:53:06 2014 UTC (10 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.44: +9 -9 lines
Diff to previous 1.44 (colored)

Change terminal-overrides to a server option (now that we have them), it
doesn't make much sense as a session option.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 28 23:11:44 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Fix missing argument, stupid last minute changes...

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 28 23:07:09 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.42: +177 -56 lines
Diff to previous 1.42 (colored)

Allow replacing each of the many sets of separate foo-{fg,bg,attr}
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.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 10 12:26:36 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.41: +1 -6 lines
Diff to previous 1.41 (colored)

Alter how tmux handles the working directory to internally use file
descriptors rather than strings.

- Each session still has a current working directory.

- New sessions still get their working directory from the client that
  created them or its attached session if any.

- New windows are created by default in the session working directory.

- The -c flag to new, neww, splitw allows the working directory to be
  overridden.

- The -c flag to attach let's the session working directory be changed.

- The default-path option has been removed.

To get the equivalent to default-path '.', do:

        bind c neww -c $PWD

To get the equivalent of default-path '~', do:

        bind c neww -c ~

This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Oct 10 11:56:50 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.40: +6 -1 lines
Diff to previous 1.40 (colored)

Add automatic-rename-format option allowing automatic rename to use
something other than pane_current_command.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Oct 10 11:50:20 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Add length limit operator for formats.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 5 13:56:48 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Change the default for the default-path option to ~. This is a quick
change to turn off the KERN_PROC_CWD code which is unpredictable. Later
it will go away and there may be other changes to how this works.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jun 23 13:10:46 2013 UTC (10 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.37: +6 -1 lines
Diff to previous 1.37 (colored)

Focus events can cause trouble if left on and they can't be turned off
during idle periods (like the other states are) because we'd miss
events. So add a server option to control them. Defaults to off.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jun 2 07:52:15 2013 UTC (10 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

The actual terminfo entries we ended up with for cursor changes are Cs,
Ce, Ss and Se (not Cc, Ce, Cs, Csr). So use and document these instead
of the ones we were using earlier.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 27 11:17:12 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Remove tmux's (already minimal) 88 colour support. Such terminals are
few and unnecessary.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Mar 25 15:59:57 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.34: +1 -6 lines
Diff to previous 1.34 (colored)

Revert the command-prefix change which breaks sequences of commands.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Mar 24 09:21:27 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.33: +6 -2 lines
Diff to previous 1.33 (colored)

Add option command-prefix which is automatically prepended to any
command (apart from a naked default-shell). The default is "exec ".

Revision 1.33 / (download) - annotate - [select for diffs], Thu Mar 21 16:15:52 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.32: +9 -5 lines
Diff to previous 1.32 (colored)

Add -v to set and setw to show only option value.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 17 00:11:22 2013 UTC (11 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.31: +1 -8 lines
Diff to previous 1.31 (colored)

Remove the layout undo/redo code which never really worked.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 15 22:55:29 2013 UTC (11 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.30: +8 -1 lines
Diff to previous 1.30 (colored)

If timing between keys is less than (by default) 1 millisecond, assume
the text is being pasted. assume-paste-time option changes the value (0
disables). Based on a diff from Marcin Kulik.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 27 13:52:23 2012 UTC (11 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.29: +16 -1 lines
Diff to previous 1.29 (colored)

Add window-status-last-* options, from Boris Faure.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Apr 29 17:20:01 2012 UTC (12 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.28: +6 -1 lines
Diff to previous 1.28 (colored)

Add a flag to move-window to renumber the windows in a session (closing
any gaps) and add an option to do this automatically each time a window
is killed. From Thomas Adam.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 23 22:23:14 2012 UTC (12 years ago) by nicm
Branch: MAIN
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored)

Add window-status-separator option, from Thomas Adam.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 1 13:18:38 2012 UTC (12 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.26: +8 -1 lines
Diff to previous 1.26 (colored)

Add a layout history which can be stepped through with select-layout -u
and -U commands (bound to 'u' and 'U' by default).

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 20 11:23:12 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

50 is a too low trigger default on larger terminals, bump to 250.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 20 11:01:00 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.24: +16 -1 lines
Diff to previous 1.24 (colored)

Add a simple form of output rate limiting by counting the number of
certain C0 sequences (linefeeds, backspaces, carriage returns) and if it
exceeds a threshold (current default 50/millisecond), start to redraw
the pane every 100 milliseconds instead of making each change as it
comes. Two configuration options - c0-change-trigger and
c0-change-interval.

This makes tmux much more responsive under very fast output (for example
yes(1) or accidentally cat'ing a large file) but may not be perfect on
all terminals and connections - feedback very welcome, particularly
where this change has a negative rather than positive effect (making it
off by default is a possibility).

After much experimentation based originally on a request Robin Lee
Powell (which ended with a completely different solution), this idea
from discussion with Ailin Nemui.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 17 21:40:53 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.23: +6 -1 lines
Diff to previous 1.23 (colored)

Add a wrap-search option to turn off wrapping of searches in copy
mode. From Jacobo de Vera.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 29 21:10:51 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.22: +1 -8 lines
Diff to previous 1.22 (colored)

Remove accidentally committed option.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 25 12:57:42 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.21: +41 -1 lines
Diff to previous 1.21 (colored)

Allow a single option to be specified to show-options to show just that
option.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 15 18:44:49 2012 UTC (12 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.20: +10 -10 lines
Diff to previous 1.20 (colored)

Sort some entries, from Ben Boeckel.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 29 09:37:02 2012 UTC (12 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.19: +10 -1 lines
Diff to previous 1.19 (colored)

Add an option to move the status line to the top of the screen,
requested by many.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 21 08:40:09 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.18: +12 -15 lines
Diff to previous 1.18 (colored)

Drop the ability to have a list of keys in the prefix in favour of two
separate options, prefix and prefix2. This simplifies the code and gets
rid the data options type which was only used for this one option.

Also add a -2 flag to send-prefix to send the secondary prefix key,
fixing a cause of minor irritation.

People who want three prefix keys are out of luck :-).

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 20 19:51:28 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.17: +34 -4 lines
Diff to previous 1.17 (colored)

Add some trivial additional status line attributes from jwcxz at users
dot sourceforge dot net.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 20 19:15:40 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

Add an option to disable the window rename escape sequence, from Romain
Francoise.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 15 23:24:04 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

Move word-separators to be a session rather than window option, from Ben
Boeckel.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Nov 5 09:06:31 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.14: +16 -1 lines
Diff to previous 1.14 (colored)

Option to change status line (message) background when using vi keys and
in command mode. From Ben Boeckel.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 27 22:54:06 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Add screen*:XT to terminal-overrides for tmux-in-tmux, from Romain
Francoise.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 24 10:29:57 2011 UTC (12 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.12: +8 -1 lines
Diff to previous 1.12 (colored)

Add pane-base-index option, from Ben Barbour.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 30 18:01:26 2011 UTC (12 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.11: +6 -2 lines
Diff to previous 1.11 (colored)

Extend the mode-mouse option to add a third choice which means the mouse
does not enter copy mode. Patch from SF bug 3374493.

In future the mode-mouse option is likely to die and be broken into
several smaller options.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 3 19:07:54 2011 UTC (12 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.10: +6 -1 lines
Diff to previous 1.10 (colored)

Add an option to trigger the terminal bell when there is an alert, from
Marco Beck.

Revision 1.10 / (download) - annotate - [select for diffs], Fri May 20 19:17:39 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Support DECSCUSR sequence to set the cursor style with two new
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 20 19:03:58 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Support xterm(1) cursor colour change sequences through terminfo(5) Cc
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 18 20:24:29 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.7: +8 -2 lines
Diff to previous 1.7 (colored)

Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to
allow it).

Written by and much discussed Ailin Nemui, guidance on
xterm/termcap/terminfo from Thomas Dickey.

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 8 20:34:12 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.6: +6 -1 lines
Diff to previous 1.6 (colored)

Add a new option, mouse-resize-pane. When on, panes may be resized by
dragging their borders. From hsim at gmx.li.

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 8 19:53:06 2011 UTC (13 years ago) by nicm
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Use the tsl and fsl terminfo(5) capabilities to update terminal title
and automatically fill them in on terminals with the XT capability
(which means their title setting is xterm-compatible). From hsim at
gmx.li.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 18 19:49:05 2011 UTC (13 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

Add an option (mouse-select-window) which allows the mouse to be used by
clicking on the status line, written by hsim at gmx dot li.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 9 20:00:29 2011 UTC (13 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Since buffers are now global, bump the default buffer-limit a bit higher
to 20 rather than 9.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 13 13:38:57 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

The maximum history-limit was accidentally reduced, fix it back to INT_MAX.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 3 23:35:21 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262
and supports larger terminals than the older way.

If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
UTF-8 terminals. The option defaults to on if LANG etc are set in the
same manner as the utf8 option.

With help and based on code from hsim at gmx.li.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 1 16:51:21 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN

Move the user-visible parts of all options (names, types, limit, default
values) together into one set of tables in options-table.c. Also clean
up and simplify cmd-set-options.c and move a common print function into
option-table.c.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.