- LVIM SHELL
- fzf
- exa
- fd
- rg
- awk, rev, cut, sed, tr, tail
Install the plugin with your preferred package manager:
require("lazy").setup({
{
"lvim-tech/lvim-fm",
dependencies = { "lvim-tech/lvim-shell" },
config = function()
require("lvim-fm").setup({
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
})
end,
},
})
use({
"lvim-tech/lvim-fm",
requires = { "lvim-tech/lvim-shell" },
config = function()
require("lvim-fm").setup({
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
})
end,
})
{
ui = {
default = "float",
float = {
border = { " ", " ", " ", " ", " ", " ", " ", " " },
float_hl = "Normal",
border_hl = "FloatBorder",
blend = 0,
height = 1,
width = 1,
x = 0.5,
y = 0.5,
},
split = "rightbelow new", -- `leftabove new`, `rightbelow new`, `leftabove vnew 24`, `rightbelow vnew 24`
},
on_close = {},
on_open = {},
mappings = {
split = "<C-x>",
vsplit = "<C-v>",
tabedit = "<C-t>",
edit = "<C-e>",
close = "<C-q>",
qf = "<M-q>",
},
env = {
LVIM_FM_CONFIG_PATH = os.getenv("HOME") .. "/.config/lvim-fm",
LVIM_FM_BIN_PATH = vim.fn.fnamemodify(debug.getinfo(1, "S").source:gsub("^@", ""), ":h:h"),
REVERSE = "--reverse",
ICON_MENU = "",
ICON_EXPLORER = "",
ICON_SEARCH_DIRECTORIES_AND_FILES = "",
ICON_SEARCH_DIRECTORIES = "",
ICON_SEARCH_FILES = "",
ICON_SEARCH_IN_FILES = "",
ICON_POINTER = "",
ICON_MARKER = "",
ICON_PROMPT = "",
ICON_SEPARATOR = "",
EXPLORER = "exa --group --icons --classify --colour=always --level 1",
SEARCH_DIRECTORIES_AND_FILES_WITN_HIDEN = "fd -H --color always",
SEARCH_DIRECTORIES_AND_FILES_WITH_OUT_HIDEN = "fd --color always",
SEARCH_DIRECTORIES_WITN_HIDEN = "fd -H --color always --type d",
SEARCH_DIRECTORIES_WITH_OUT_HIDEN = "fd --color always --type d",
SEARCH_FILES_WITN_HIDEN = "fd -H --color always --type f",
SEARCH_FILES_WITH_OUT_HIDEN = "fd --color always --type f",
SEARCH_IN_FILES_WITH_HIDDEN = "rg --no-heading -H --line-number --column --hidden --follow --color=always",
SEARCH_IN_FILES_WITH_OUT_HIDDEN = "rg --no-heading -H --line-number --column --follow --color=always",
KEY_QUIT = "ctrl-q",
KEY_CLEAR_QUERY = "ctrl-c",
KEY_PREVIEW_DOWN = "ctrl-d",
KEY_PREVIEW_UP = "ctrl-u",
KEY_PREVIEW_HALF_PAGE_DOWN = "ctrl-f",
KEY_PREVIEW_HALF_PAGE_UP = "ctrl-b",
KEY_TOGGLE_PREVIEW = "alt-p",
KEY_SAVE_CURRENT_PATH = "alt-,",
KEY_DELETE_CURRENT_PATH = "alt-.",
KEY_MENU = "alt-m",
KEY_EXPLORER = "alt-e",
KEY_EXPLORER_LONG_PATH = "alt-l",
KEY_SEARCH_DIRECTORIES_AND_FILES = "alt-a",
KEY_SEARCH_DIRECTORIES = "alt-d",
KEY_SEARCH_FILES = "alt-f",
KEY_SEARCH_IN_FILES = "alt-w",
KEY_TOGGLE_HIDDEN_FILES = "alt-h",
KEY_TOGGLE_HELP = "alt-/",
KEY_OPEN_TERMINAL = "alt-t",
KEY_COPY = "alt-y",
KEY_CUT = "alt-o",
KEY_DELETE = "alt-r",
KEY_PASTE = "alt-p",
KEY_EXECUTE = "!",
KEY_APPLY = "alt-i",
},
}
:LvimFileManager
Key | Action |
---|---|
<M-m> |
Menu |
<M-e> |
Explorer |
<M-a> |
Search directories and files |
<M-d> |
Search directories |
<M-f> |
Search files |
<M-w> |
Search in files |
<C-q> |
Close |
<C-c> |
Clear search |
<C-d> |
Scroll down preview |
<C-u> |
Scroll up preview |
<M-,> |
Save current directory |
<M-.> |
Delete saved directory and cd to PWD |
<M-p> |
Toggle preview (show / hide) |
<M-h> |
Toggle hidden files (show / hide) |
<M-l> |
Toggle info (short / long) - for Explorer |
<M-/> |
Toggle help |
<Enter> |
Open file(s) in current buf |
<C-x> |
Open file(s) with split |
<C-v> |
Open file(s) with vsplit |
<C-t> |
Open file(s) in new tab |
<M-q> |
Open file(s) in quick fix list |
<M-t> |
Open terminal from current path |
<M-y> |
Copy mode |
<M-o> |
Cut mode |
<M-r> |
Delete mode |
! |
Execute Copy / Cut mode |
<M-i> |
Apply Paste (Copy / Cut) or Delete |
- Press "M-m"
- Press "M-e"
- Press "M-a"
- Press "M-d"
- Press "M-f"
- Press "M-w"
Toggle hidden files and directories
- Press "M-h"
- Press "M-p"
- Press "M-l"
- Press "M-,"
- Press "M-."
- Select files / folders
- Press "Enter"
- Select files / folders
- Press "C-x"
- Select files / folders
- Press "C-v"
- Select files / folders
- Press "C-t"
- Select files / folders
- Press "M-q"
- Select files / folders
- Press "M-y" (switch to paste mode)
- Navigate to folder where you want to paste files / folders
- Press "!" (switch to execute mode)
- Select files / folder to confirm
- Press "M-i" to paste files / folders
- Select files / folders
- Press "M-o" (switch to paste mode) -- PASTE - CUT
- Navigate to folder where you want to paste files / folders
- Press "!" (switch to execute mode)
- Select files / folder to confirm
- Press "M-i" to paste files / folders
- Select files / folders
- Press "M-r" (switch to delete mode)
- Select files / folder to confirm
- Press "M-i" to delete files / folders