aboutsummaryrefslogtreecommitdiff
path: root/autoload/+init.kak
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/+init.kak')
-rw-r--r--autoload/+init.kak5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoload/+init.kak b/autoload/+init.kak
index d2a4233..66374c4 100644
--- a/autoload/+init.kak
+++ b/autoload/+init.kak
@@ -33,6 +33,7 @@ add-highlighter global/ show-matching -previous
hook global RegisterModified '/' %{ add-highlighter -override global/search regex "%reg{/}" 0:search }
map global user '<esc>' ':set-register slash ""<ret>'
map global user '/' '/(?i)'
+map global user 'r' '*%s<ret>'
# Preserve count for user modes (look for alternatives)
# TODO: Reset count on modechange?
@@ -56,13 +57,15 @@ hook global ModeChange .*:insert:.* %{ try %{
# Tmux window mode
declare-user-mode win
map global normal <c-w> ':enter-user-mode win<ret>' -docstring 'Window mode'
-map global win q ':quit<ret>' -docstring 'Find files'
+map global win q ':quit<ret>' -docstring 'Quit'
map global win v ':tmux-terminal-horizontal kak -c %val{session}<ret>' -docstring 'Split vertical'
map global win s ':tmux-terminal-vertical kak -c %val{session}<ret>' -docstring 'Split horizontal'
map global win h ':nop %sh{tmux select-pane -L}<ret>' -docstring 'Jump left'
map global win j ':nop %sh{tmux select-pane -D}<ret>' -docstring 'Jump down'
map global win k ':nop %sh{tmux select-pane -U}<ret>' -docstring 'Jump up'
map global win l ':nop %sh{tmux select-pane -R}<ret>' -docstring 'Jump right'
+map global win z ':wq<ret>'
+
# Clipboard management mappings
map global user y "<a-|> xclip -selection clipboard<ret>" -docstring "yank the selection into the clipboard"