diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-06-26 13:51:29 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-06-26 13:51:29 +0530 |
| commit | fb52df34924781ed3d42ca8864402c3e7a52d4aa (patch) | |
| tree | 5e23ea801e0e1482ed87c56ee1aa813af2613bf3 /autoload/+init.kak | |
| parent | d2f4982e389431b74357bbc108567ae0e1d912a5 (diff) | |
| download | kakoune-config-fb52df34924781ed3d42ca8864402c3e7a52d4aa.tar.gz kakoune-config-fb52df34924781ed3d42ca8864402c3e7a52d4aa.zip | |
Move dir and file:lineno handling to files.kak
Diffstat (limited to 'autoload/+init.kak')
| -rw-r--r-- | autoload/+init.kak | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/autoload/+init.kak b/autoload/+init.kak index f235e65..898c04b 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -38,35 +38,3 @@ hook global RegisterModified '/' %{ # Highlight search add-highlighter -override global/search regex "%reg{/}" 0:search } - -# # Preserve count for user modes (look for alternatives) -# declare-option -hidden int user_mode_count 0 -# define-command enter-user-mode-with-count -params 1 %{ -# set-option window user_mode_count %val{count} -# enter-user-mode %arg{1} -# } - -# Open directory (bits from explore.kak) -hook global RuntimeError '\d+:\d+: ''(?:edit|e)''(.+): is a directory' %{ - file-manager %val(hook_param_capture_1) -} -hook global KakBegin .* %{ hook -once global WinCreate .* %{ hook -once global NormalIdle '' %{ - try %{ evaluate-commands -draft -save-regs '/' %{ - buffer *debug* - set-register / 'error while opening file ''(.+?)'':\n\h+(.+?): is a directory' - execute-keys '%1s<ret>' - evaluate-commands -draft -itersel %{ - evaluate-commands -client %val(client) file-manager %reg(.) - } - }} -}}} - -# Open file:linenum -hook global WinDisplay (.*):(\d+)$ %{ - # Use string to eval quickly - # FIXME: Replace normalidle hack with better approach to "defer" - hook -once buffer NormalIdle .* " - delete-buffer %val{hook_param} - edit %val{hook_param_capture_1} %val{hook_param_capture_2} - " -} |
