use find mode
This commit is contained in:
parent
9239ceee5e
commit
7dbc50c7e7
|
@ -1,6 +1,5 @@
|
|||
# {{@@ header() @@}}
|
||||
|
||||
map global user 'f' ': fzf-mode<ret>' -docstring 'fzf mode'
|
||||
map global user 'g' ': enter-user-mode lsp<ret>' -docstring 'lsp mode'
|
||||
|
||||
map global user 'c' ': comment-line<ret>' -docstring 'comment line'
|
||||
|
@ -17,24 +16,25 @@ map global surround 't' ': select-surrounding-tag<ret>' -docstring 'select tag'
|
|||
map global user 's' ': enter-user-mode surround<ret>' -docstring 'surround mode'
|
||||
|
||||
declare-user-mode git
|
||||
map global git 's' ': git status<ret>' -docstring 'status'
|
||||
map global git 'a' ': git add<ret>' -docstring 'add current'
|
||||
map global git 'A' ': git add .<ret>' -docstring 'add'
|
||||
map global git 'd' ': git diff %reg{%}<ret>' -docstring 'diff current'
|
||||
map global git 'D' ': git diff<ret>' -docstring 'diff'
|
||||
map global git '<a-d>' ': git diff --staged<ret>' -docstring 'diff staged'
|
||||
map global git 'c' ': git commit -v<ret>' -docstring 'commit'
|
||||
map global user 'v' ': enter-user-mode git<ret>' -docstring 'git vcs mode'
|
||||
map global git 's' ': git status<ret>' -docstring 'status'
|
||||
map global git 'a' ': git add<ret>' -docstring 'add current'
|
||||
map global git 'A' ': git add .<ret>' -docstring 'add'
|
||||
map global git 'd' ': git diff %reg{%}<ret>' -docstring 'diff current'
|
||||
map global git 'D' ': git diff<ret>' -docstring 'diff'
|
||||
map global git '<a-d>' ': git diff --staged<ret>' -docstring 'diff staged'
|
||||
map global git 'c' ': git commit -v<ret>' -docstring 'commit'
|
||||
map global user 'v' ': enter-user-mode git<ret>' -docstring 'git vcs mode'
|
||||
|
||||
declare-user-mode find
|
||||
map global find 'f' ': edit %sh{fd -tf | wdmenu}<ret>' -docstring 'file'
|
||||
map global find 'v' ': edit %sh{git ls-files | wdmenu}<ret>' -docstring 'file'
|
||||
map global find 'c' ': cd %sh{fd -td | wdmenu}<ret>' -docstring 'status'
|
||||
map global user 'f' ': enter-user-mode find<ret>' -docstring 'fzf mode'
|
||||
|
||||
def -hidden insert-c-n %{
|
||||
try %{
|
||||
lsp-snippets-select-next-placeholders
|
||||
exec '<a-;>d'
|
||||
} catch %{
|
||||
exec -with-hooks '<c-n>'
|
||||
}
|
||||
map global user 'z' ': prompt z: zoxide<ret>' -docstring 'add current'
|
||||
define-command zoxide \
|
||||
%{
|
||||
cd %sh{ zoxide query "$kak_text" }
|
||||
echo %sh{ pwd | sed "s|$HOME|~|" }
|
||||
}
|
||||
map global insert <c-n> "<a-;>: insert-c-n<ret>"
|
||||
|
||||
# map global insert <s-tab> '<a-;><lt>'
|
||||
|
|
Reference in New Issue