kakoune: add key for options for light and dark color scheme
This commit is contained in:
@@ -12,13 +12,19 @@ nop %sh{
|
|||||||
ln -s "$kak_runtime/autoload" "$kak_config/autoload/stdlib"
|
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 "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 (git)" file-mode 'a' ': file-open-git<ret>'
|
||||||
map global -docstring "Open (fd)" file-mode 'f' ': file-open<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 %{
|
define-command -override file-open %{
|
||||||
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
|
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user