kakoune: add key for options for light and dark color scheme

This commit is contained in:
2026-05-03 21:39:27 +02:00
parent d2fc26e982
commit ecadd54569

View File

@@ -12,13 +12,19 @@ nop %sh{
ln -s "$kak_runtime/autoload" "$kak_config/autoload/stdlib"
}
try %{ declare-user-mode file-mode }
declare-user-mode file-mode
declare-user-mode options-mode
map global -docstring "File" user 'f' ': enter-user-mode file-mode<ret>'
map global -docstring "Open (git)" file-mode 'a' ': file-open-git<ret>'
map global -docstring "Open (fd)" file-mode 'f' ': file-open<ret>'
map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>'
map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>'
map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>'
define-command -override file-open %{
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
}