summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
AgeCommit message (Collapse)Author
2010-12-11Track the last session for a client and add a flag to switch-client andNicholas Marriott
a key binding (L) to move a client back to its last session.
2010-10-24Sync OpenBSD patchset 780:Tiago Cunha
Add a last-pane command (bound to ; by default). Requested ages ago by somebody whose name I have forgotten.
2010-09-10Sync OpenBSD patchset 759:Tiago Cunha
Add -n and -p flags to switch-client to move to the next and previous session (yes, it doesn't match window/pane, but so what, nor does switch-client). Based on a diff long ago from "edsouza".
2010-07-02Sync OpenBSD patchset 727:Tiago Cunha
Setting the cmdlist pointer in the bind-key to NULL to prevent it being freed after the command is executing is bogus because it may still be needed if the same command is going to be executed again (for example if you "bind-key a bind-key b ..."). Making a copy is hard, so instead add a reference count to the cmd_list. While here, also print bind-key -n and the rest of the flags properly. Fixes problem reported by mcbride@.
2010-06-22Sync OpenBSD patchset 726:Tiago Cunha
Add a choose-buffer command for easier use of the paste buffer stack.
2010-05-14Sync OpenBSD patchset 697:Tiago Cunha
Identical behaviour to select-prompt can now be obtained with command-prompt, so remove select-prompt and change ' to be bound to command-prompt -p index "select-window -t :%%".
2010-05-14Sync OpenBSD patchset 688:Tiago Cunha
Add a tiled layout, originally from Liam Bedford a while ago, fixed up by me.
2010-04-05Merge output (more) and copy modes into one single mode (called copy).Micah Cowan
2010-03-15Support up, down, left, right movement through panes with -UDLR flags toNicholas Marriott
select-pane. Also remove up- and down-pane: equivalent behaviour is now available using -t :.+ and -t :.-.
2010-02-08Sync OpenBSD patchset 639:Tiago Cunha
Support attaching a client read-only with a new -r flag to the attach-session command.
2009-12-10Sync OpenBSD patchset 585:Tiago Cunha
Add "server options" which are server-wide and not bound to a session or window. Set and displayed with "set -s" and "show -s". Currently the only option is "quiet" (like command-line -q, allowing it to be set from .tmux.conf), but others will come along.
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
2009-11-19Sync OpenBSD patchset 546:Tiago Cunha
Add a per-client log of status line messages displayed while that client exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
2009-11-13Sync OpenBSD patchset 533:Tiago Cunha
Zap unused functions, prompted by deraadt.
2009-10-06Sync OpenBSD patchset 362:Tiago Cunha
Remove scroll mode which is now redundant, copy mode should be used instead. The = key binding now does nothing.
2009-08-31Sync OpenBSD patchset 302:Tiago Cunha
Add a new display-panes command, with two options (display-panes-colour and display-panes-time), which displays a visual indication of the number of each pane.
2009-08-25Sync OpenBSD patchset 294:Tiago Cunha
Add a choose-client command and extend choose-{session,window} to accept a template. After a choice is made, %% (or %1) in the template is replaced by the name of the session, window or client suitable for -t and the result executed as a command. So, for example, "choose-window "killw -t '%%'"" will kill the selected window. The defaults if no template is given are (as now) select-window for choose-window, switch-client for choose-session, and detach-client for choose-client (now bound to D).
2009-08-24Sync OpenBSD patchset 289:Tiago Cunha
The cursession member in struct cmd_ctx is always either curclient->session or NULL when curclient is also NULL, so just eliminate it.
2009-07-25Sync OpenBSD patchset 175:Tiago Cunha
Permit commands to be bound to key presses without the prefix key first. The new -n flag to bind-key and unbind-key sets or removes these bindings, and list-key shows them in []s.
2009-07-22Sync OpenBSD patchset 151:Tiago Cunha
Tidy up keys: use an enum for the key codes, and remove the macros which just wrap flag sets/clears/tests.
2009-07-20Sync OpenBSD patchset 142:Tiago Cunha
Each window now has a tree of layout cells associated with it. In this tree, each node is either a horizontal or vertical cell containing a list of other cells running from left-to-right or top-to-bottom, or a leaf cell which is associated with a pane. The major functional changes are: - panes may now be split arbitrarily both horizontally (splitw -h, C-b %) and vertically (splitw -v, C-b "); - panes may be resized both horizontally and vertically (resizep -L/-R/-U/-D, bound to C-b left/right/up/down and C-b M-left/right/up/down); - layouts are now applied and then may be modified by resizing or splitting panes, rather than being fixed and reapplied when the window is resized or panes are added; - manual-vertical layout is no longer necessary, and active-only layout is gone (but may return in future); - the main-pane layouts now reduce the size of the main pane to fit all panes if possible. Thanks to all who tested.
2009-07-18Remove a duplicate key binding, and turn off autorepeat for up/down as it isNicholas Marriott
kind of annoying by default.
2009-07-17- New command display-message (alias display) to display a message in theTiago Cunha
status line (bound to "i" by default). - Add support for including the window index, pane index, and window name in status-left, or status-right. - Bump protocol version.
2009-07-15Make status_message_set a variadic printf-like function. No functional change -Nicholas Marriott
helpful for a couple of things coming soon.
2009-07-14Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
2009-05-16select-layout command and some key bindings.Nicholas Marriott
2009-05-13Bye-bye META.Nicholas Marriott
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-04-30static const.Nicholas Marriott
2009-04-30Merge resize-pane-{up,down} into resize-pane.Nicholas Marriott
2009-04-27- confirm-before command.Tiago Cunha
- Bound "&" and "x" by default to confirm-before "kill-window" and confirm-before "kill-pane", respectively.
2009-04-03rotate-window command.Nicholas Marriott
2009-04-02swap-pane command.Nicholas Marriott
2009-04-01Basic horizontal splitting and layout management. Still some redraw and otherNicholas Marriott
issues - particularly, don't mix with manual pane resizing and be careful when viewing from multiple clients; generally cycling the layout a few times will fix most problems. Getting this in for testing while I think about how to deal with manual mode. Split window as normal and cycle the layouts with C-b space. Some of the layouts will work better when swap-pane comes along.
2009-03-28Key repeating is now a property of the key binding not of the command. RepeatNicholas Marriott
is turned on when the key is bound with the -r flag to bind-key. next/previous- window no longer repeat by default as it turned out to annoy me.
2009-03-07break-pane command to split a pane off into a new window; bound to ! by default.Nicholas Marriott
2009-02-13Reset mode before adding text.Nicholas Marriott
2009-02-13Move status prompt/message init and teardown into status.c.Nicholas Marriott
2009-01-30move-window bound to ., from joshe.Nicholas Marriott
2009-01-27-u to start with screen scrolled up.Nicholas Marriott
2009-01-18-a flags to next/previous window.Nicholas Marriott
2009-01-18find-window command.Nicholas Marriott
2009-01-18Support command sequences separated by " ; ". Also clean up command printing.Nicholas Marriott
2009-01-18suspend-client command and suspend client when ^Z key binding is used.Nicholas Marriott
2009-01-17Actually remove the key binding from the tree when freeing it.Nicholas Marriott
2009-01-15Two new commands, choose-window and choose-session which work only when ↵Nicholas Marriott
bound to a key and allow the window or session to be selected from a list.
2009-01-14Whoops, stray line.Nicholas Marriott
2009-01-14Rework the prefix-time stuff. The option is now call repeat-time and ↵Nicholas Marriott
defaults to 500 ms. However, it only applies to a small subset of commands, currently: up-pane, down-pane, next-window, previous-window, resize-pane-up, resize-pane-down. These are the commands for which it is obviously useful, having it for everything else was just bloody annoying.
2009-01-14Alt-up/down to resize by five lines.Nicholas Marriott
2009-01-14switch-pane is now select-pane.Nicholas Marriott