From 5d9a6f0f97d5e0d451a56a94e6e6616b4c8c3a40 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 13 Oct 2025 20:37:17 +0530 Subject: Add repl integration --- autoload/+init.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'autoload/+init.kak') 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 '' ':set-register slash ""' map global user '/' '/(?i)' +map global user 'r' '*%s' # 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 ':enter-user-mode win' -docstring 'Window mode' -map global win q ':quit' -docstring 'Find files' +map global win q ':quit' -docstring 'Quit' map global win v ':tmux-terminal-horizontal kak -c %val{session}' -docstring 'Split vertical' map global win s ':tmux-terminal-vertical kak -c %val{session}' -docstring 'Split horizontal' map global win h ':nop %sh{tmux select-pane -L}' -docstring 'Jump left' map global win j ':nop %sh{tmux select-pane -D}' -docstring 'Jump down' map global win k ':nop %sh{tmux select-pane -U}' -docstring 'Jump up' map global win l ':nop %sh{tmux select-pane -R}' -docstring 'Jump right' +map global win z ':wq' + # Clipboard management mappings map global user y " xclip -selection clipboard" -docstring "yank the selection into the clipboard" -- cgit v1.3.1