kakoune: add key for open file with hidden
This commit is contained in:
@@ -22,6 +22,7 @@ map global -docstring 'Search/open' user 's' ': 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 'Open (fd -H)' file-mode 'h' ': file-open-with-hidden<ret>'
|
||||
map global -docstring 'Open (recent)' file-mode 'r' ': file-open-recent<ret>'
|
||||
map global -docstring 'Open (nnn)' file-mode 'n' ': nnn-open %val{buffile}<ret>'
|
||||
map global -docstring 'Open (nnn)' file-mode 'N' ': nnn-open .<ret>'
|
||||
@@ -84,6 +85,10 @@ define-command -override file-open %{
|
||||
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
|
||||
}
|
||||
|
||||
define-command -override file-open-with-hidden %{
|
||||
prompt -menu -shell-script-candidates %{ fd -t f -H } 'File: ' %{ edit -- %val{text} }
|
||||
}
|
||||
|
||||
define-command -override file-open-git %{
|
||||
prompt -menu -shell-script-candidates %{ git ls-files } 'File (git): ' %{ edit -- %val{text} }
|
||||
}
|
||||
@@ -222,10 +227,13 @@ bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{
|
||||
}
|
||||
}
|
||||
define-command peneira-git-files %{
|
||||
peneira 'git files: ' %{ git ls-files } %{ e %arg{1} }
|
||||
peneira 'git files: ' %{ git ls-files } %{ edit -- %arg{1} }
|
||||
}
|
||||
define-command peneira-files-with-hidden %{
|
||||
peneira 'git files: ' %{ fd -t f -H } %{ edit -- %arg{1} }
|
||||
}
|
||||
define-command peneira-recent-files %{
|
||||
peneira 'mru files: ' %{ cat ~/.cache/kak-mru } %{ e %arg{1} }
|
||||
peneira 'mru files: ' %{ cat ~/.cache/kak-mru } %{ edit -- %arg{1} }
|
||||
}
|
||||
|
||||
map global -docstring 'Buffer' user ' ' ': buffers<ret>'
|
||||
@@ -234,6 +242,7 @@ bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{
|
||||
map global -docstring 'Buffers' file-mode 'b' ': buffers<ret>'
|
||||
map global -docstring 'Files' file-mode 'f' ': peneira-files<ret>'
|
||||
map global -docstring 'Files' file-mode 'F' ': peneira-local-files<ret>'
|
||||
map global -docstring 'Files (with hidden)' file-mode 'h' ': peneira-files-with-hidden<ret>'
|
||||
map global -docstring 'Lines' file-mode 'l' ': peneira-lines<ret>'
|
||||
map global -docstring 'Symbols' file-mode 's' ': peneira-symbols<ret>'
|
||||
map global -docstring 'Recent files' file-mode 'r' ': peneira-recent-files<ret>'
|
||||
|
||||
Reference in New Issue
Block a user