Support fuzzy search
fsbuffer_demo.mp4
{
"Kurama622/fsbuffer.nvim",
cmd = "Fsbuffer",
opts = {
search = {
-- none | fd | fzf-fd
-- fd depends on: https://github.com/sharkdp/fd
-- fzf-fd depends on:
-- 1. https://github.com/sharkdp/fd
-- 2. https://github.com/junegunn/fzf
cmd = "fd",
},
},
keys = {
{
"<leader>e",
function()
require("fsbuffer"):toggle(vim.fn.expand("%:p:h") .. "/")
end,
desc = "Fsbuffer (Current Buffer Dir)",
},
{
"<leader>E",
function()
require("fsbuffer"):toggle(vim.fs.root(0, ".git") .. "/")
end,
desc = "Fsbuffer (Root Dir)",
},
},
}:Fsbuffer or use shortcut keys
| key | mode | action |
|---|---|---|
j / Ctrl-j |
n |
mode down |
k / Ctrl-k |
n |
mode up |
/ |
n |
search |
o / O |
n |
create files or dirs |
<CR> |
n |
enter a dir or open a file |
<CR> |
i (in search) |
choose the first item in the list to enter or open |
<backspace> |
n |
enter the parent dir |
d: Same as vim |
n/v |
cut, save the buffer then delete |
y: Same as vim |
n/v |
copy |
p / P |
n |
paste |
: |
n |
cmdline |
S |
n |
sort by time |
Ctrl-j |
i |
exit search |