summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-11-26 15:35:56 +0000
committernicm <nicm@openbsd.org>2019-11-26 15:35:56 +0000
commit7f0389c5c278eff152b92fe49692ce1cb12116fc (patch)
tree664118f89a75b4ea2407002104a06f9b06291d07 /usr.bin/tmux/key-bindings.c
parenttimeout(9): switch to tickless backend (diff)
downloadwireguard-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.c4
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",