file manager in kakoune buffer
- browse directories
- open files
- open files from file browser in tied kakoune client
- batching(can open/select multiple files at once)
- colored
- supports some of ls options(sorting, show hidden .. etc)
- select files
- manipulate files
all commands under files-
namespace, and at most self-explanatory
some basics:
files-new-browser
- to open filebrowser in current bufferfiles-focus-selections
- focus buffer with selectionsfiles-cd
- open or cdfiles-cd-parent
-cd ..
files-toggle-long_format
- basically togglels -l
define-command shell-eval %{
nop %sh{
eval "$kak_reg_dot"
}
}
hook global BufSetOption "filetype=%opt{files_browse_buffer}" %{
map buffer normal '<ret>' ': files-cd<ret>'
map buffer normal '<backspace>' ': files-cd-parent<ret>'
map buffer normal 'm' ": files-add-entry-to-selection<ret>"
map buffer normal 'M' ": files-add-cwd-to-selection<ret>"
map buffer normal '.' ": files-toggle-show_hidden<ret>"
map buffer normal '\' ": files-toggle-long_format<ret>"
map buffer normal 'r' ": files-redraw-browser<ret>"
map buffer normal 'S' ": files-focus-selections<ret>"
map buffer normal 't' ": files-open-in-terminal<ret>"
}
hook global BufSetOption "filetype=%opt{files_selection_buffer}" %{
map buffer normal <ret> ': shell-eval<ret>'
}
also you can use it as standalone file manager by placing kfm
script from repo in you path
- the most tedious part when do file manipulations is selecting
- so you select files/directories with file browser
- then you just edit selections buffer to create needed command
- do
shell-eval
that approach is very flexible and allows creating complicated batch rename/copy/delete operation easily, by using kakoune multi-selection editing and path completion capabilities