summaryrefslogtreecommitdiffstats
path: root/options-table.c
AgeCommit message (Collapse)Author
2017-10-25Default allow-rename to off because it is ridiculous that applicationsnicm
are even able to do this and confusing when they do.
2017-08-17Add monitor-bell window option to match the activity and silencenicm
options, from Brad Town.
2017-08-16Rename BELL_* values to ALERT_* now they are used by more than bells,nicm
based on a diff from Brad Town.
2017-07-26Make bell, activity and silence alerting more consistent:nicm
- 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.
2017-06-23Add user-keys option to allow user-defined keys to be set, from Dannicm
Aloni.
2017-06-03Make set-clipboard a three-state option so tmux itself can ignore thenicm
sequencess.
2017-05-30Rewrite of choose mode, both to simplify and tidy the code and to addnicm
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.
2017-05-29Store a copy of the old status line, will be needed soon for new choose mode.nicm
2017-01-24Make update-environment an array as well.nicm
2017-01-24Convert terminal-overrides to an array option.nicm
2017-01-24server-info can become an alias rather than a command.nicm
2017-01-16Revert WIP parts of previous I didn't mean to commit yet.nicm
2017-01-16getopt() has a struct option so just return to using options_entry.nicm
2017-01-15Major tidy up and rework of options tree and set-option/show-optionsnicm
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.
2017-01-15Remove unused quiet option.nicm
2017-01-12Simplify appending to string options.nicm
2017-01-11Some tidying and tweaks to options code.nicm
2016-12-30Change the xterm-keys option to default to on, so that tmux willnicm
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@.
2016-10-13Remove the set-remain-on-exit option, it was always a hack and can nownicm
be done with hooks instead.
2016-10-03Remove some dead code in cmd-move-window.c and make a load of localnicm
functions static.
2016-05-04Fix up a couple of long lines.nicm
2016-04-29Add option to include status text in the pane borders. Ifnicm
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.
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-12Add key-table option to set the default key table for a session, allowsnicm
different key bindings for different sessions and a few other things.
2015-11-24Don't allow options in table without scope set.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-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-12Default history-file should be "" not NULL, from Greg Onufe.nicm
2015-11-11Drop mouse-utf8 option and always turn on UTF-8 mouse if the client saysnicm
it supports UTF-8.
2015-09-25Adding colors=256 to *256color* was always pretty stupid and now itnicm
won't work (without adding setaf@:setab@ too).
2015-08-28Remove the lock-server option which is a bit redundant, it isn't thatnicm
different without it.
2015-07-20Add an option (history-file) for a file to save/restore command promptnicm
history, from Olof-Joachim Frahm.
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-12Add bell-action "other" to pass through bells in all windows except thenicm
current, suggested by Jan ONDREJ.
2015-05-11Left the c0-* options behind in the table.nicm
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-29If default-terminal is set to "screen" or "screen-*", emulate screen'snicm
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
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-04-19Support setting the default window and pane background colours (windownicm
and active pane via window-style and window-active-style options, an individual pane by a new select-pane -P flag). From J Raynor.
2015-02-06Move pane border options to window options rather than session, from Marc Finet.nicm
2015-01-21In options-table.c r1.51 an extra space was added to the default status-right,sthen
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@
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-04-17Wrap some long lines.nicm
2014-04-17Remove some unnecessary includes and fix a typo.nicm
2014-04-17Remove the "info" message mechanism, this was only used for about fivenicm
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.
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-03-31Make message-limit a server option.nicm
2014-02-23Change terminal-overrides to a server option (now that we have them), itnicm
doesn't make much sense as a session option.
2014-01-28Fix missing argument, stupid last minute changes...nicm