diff --git a/kakoune/.config/kak/kakrc b/kakoune/.config/kak/kakrc index bb453c2..92ab765 100644 --- a/kakoune/.config/kak/kakrc +++ b/kakoune/.config/kak/kakrc @@ -22,6 +22,7 @@ map global -docstring 'Search/open' user 's' ': enter-user-mode file-mode' map global -docstring 'Open (git)' file-mode 'a' ': file-open-git' map global -docstring 'Open (fd)' file-mode 'f' ': file-open' +map global -docstring 'Open (fd -H)' file-mode 'h' ': file-open-with-hidden' map global -docstring 'Open (recent)' file-mode 'r' ': file-open-recent' map global -docstring 'Open (nnn)' file-mode 'n' ': nnn-open %val{buffile}' map global -docstring 'Open (nnn)' file-mode 'N' ': nnn-open .' @@ -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' @@ -234,6 +242,7 @@ bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{ map global -docstring 'Buffers' file-mode 'b' ': buffers' map global -docstring 'Files' file-mode 'f' ': peneira-files' map global -docstring 'Files' file-mode 'F' ': peneira-local-files' + map global -docstring 'Files (with hidden)' file-mode 'h' ': peneira-files-with-hidden' map global -docstring 'Lines' file-mode 'l' ': peneira-lines' map global -docstring 'Symbols' file-mode 's' ': peneira-symbols' map global -docstring 'Recent files' file-mode 'r' ': peneira-recent-files'