diff options
author | 2019-11-26 15:35:56 +0000 | |
---|---|---|
committer | 2019-11-26 15:35:56 +0000 | |
commit | 7f0389c5c278eff152b92fe49692ce1cb12116fc (patch) | |
tree | 664118f89a75b4ea2407002104a06f9b06291d07 /usr.bin/tmux/key-bindings.c | |
parent | timeout(9): switch to tickless backend (diff) | |
download | wireguard-openbsd-7f0389c5c278eff152b92fe49692ce1cb12116fc.tar.xz wireguard-openbsd-7f0389c5c278eff152b92fe49692ce1cb12116fc.zip |
Add default # and * binding with vi(1) keys.
Diffstat (limited to 'usr.bin/tmux/key-bindings.c')
-rw-r--r-- | usr.bin/tmux/key-bindings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c index e170b6dacc7..49e4775e76b 100644 --- a/usr.bin/tmux/key-bindings.c +++ b/usr.bin/tmux/key-bindings.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key-bindings.c,v 1.102 2019/11/20 11:42:51 nicm Exp $ */ +/* $OpenBSD: key-bindings.c,v 1.103 2019/11/26 15:35:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -402,6 +402,8 @@ key_bindings_init(void) "bind -Tcopy-mode C-Up send -X scroll-up", "bind -Tcopy-mode C-Down send -X scroll-down", + "bind -Tcopy-mode-vi '#' send -FX search-backward '#{copy_cursor_word}'", + "bind -Tcopy-mode-vi * send -FX search-forward '#{copy_cursor_word}'", "bind -Tcopy-mode-vi C-c send -X cancel", "bind -Tcopy-mode-vi C-d send -X halfpage-down", "bind -Tcopy-mode-vi C-e send -X scroll-down", |