diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-10-13 20:37:17 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-10-21 13:39:45 +0530 |
| commit | 5d9a6f0f97d5e0d451a56a94e6e6616b4c8c3a40 (patch) | |
| tree | 68ef1257490c8e1b4512747fe46a68b5fd0b000a /autoload/+init.kak | |
| parent | 351d55648ea26335b713140bfc0c4f69e2d70489 (diff) | |
| download | kakoune-config-5d9a6f0f97d5e0d451a56a94e6e6616b4c8c3a40.tar.gz kakoune-config-5d9a6f0f97d5e0d451a56a94e6e6616b4c8c3a40.zip | |
Add repl integration
Diffstat (limited to '')
| -rw-r--r-- | autoload/+init.kak | 5 |
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" |
