From 593e775e9ccbdca3360f1bd0c6883c7973dcb46f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 25 Oct 2025 14:25:00 +0530 Subject: Add module for refactoring --- autoload/+init.kak | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'autoload/+init.kak') diff --git a/autoload/+init.kak b/autoload/+init.kak index 497e5a3..aa105f5 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -18,7 +18,7 @@ set-option global startup_info_version 20250603 set-option global scrolloff 10,3 set-option -add global ui_options terminal_enable_mouse=false terminal_set_title=true set-option global modelinefmt \ - '{StatusLineDetails}{{context_info}} {{mode_info}} +'{StatusLineDetails}{{context_info}} {{mode_info}} %val{cursor_line}/%val{buf_line_count}:%val{cursor_char_column} {StatusLineBufname}%sh{echo "$kak_bufname" | awk -F/ "{if (NF >= 2) {print \$(NF-1) \"/\" \$NF} else {print \$NF}}"}' @@ -36,16 +36,14 @@ hook global RegisterModified '/' %{ add-highlighter -override global/search regex "%reg{/}" 0:search } -# System keys +# Misc keys map global user '' ': set-register slash ""' -docstring 'Clear search highlighting' map global normal '/' '/(?i)' # Remap / to case-insensitive search map global user '/' '/' -map global user r '*%s' -docstring 'Replace selection' map global user s ': w' -docstring 'Save' map global normal 15j -docstring '15 down' map global normal 15k -docstring '15 up' -# Clipboard management mappings map global user y " xclip -selection clipboard" -docstring "yank the selection into the clipboard" map global user p " xclip -selection clipboard -o" -docstring "paste the clipboard" -- cgit v1.3.1