full refactoring re mothership to endos
This commit is contained in:
@@ -0,0 +1 @@
|
||||
require("git"):setup()
|
||||
@@ -0,0 +1,28 @@
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "q"
|
||||
run = "close"
|
||||
desc = "Close tab"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "l"
|
||||
run = "plugin smart-enter"
|
||||
desc = "Enter the child directory, or open the file"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "c", "m" ]
|
||||
run = "plugin chmod"
|
||||
desc = "Chmod on selected files"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "F"
|
||||
run = "plugin smart-filter"
|
||||
desc = "Smart filter"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "M"
|
||||
run = "plugin mount"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "T"
|
||||
run = "plugin toggle-pane max-preview"
|
||||
desc = "Maximize or restore the preview pane"
|
||||
@@ -0,0 +1,51 @@
|
||||
[mgr]
|
||||
linemode = "mtime"
|
||||
show_hidden = true
|
||||
sort_by = "natural"
|
||||
ratio = [ 1, 4, 5 ]
|
||||
|
||||
[preview]
|
||||
wrap = "yes"
|
||||
image_delay = 50
|
||||
max_width = 1500
|
||||
max_height = 1500
|
||||
|
||||
[open]
|
||||
prepend_rules = [
|
||||
{ name = "*.csv", use = "text" },
|
||||
]
|
||||
|
||||
[opener]
|
||||
text = [
|
||||
{ run = "bat $@", block = true, desc = "bat" },
|
||||
{ run = "nvim $@", block = true, desc = "nvim" },
|
||||
]
|
||||
|
||||
[input]
|
||||
cursor_blink = true
|
||||
|
||||
[[plugin.prepend_fetchers]]
|
||||
id = "git"
|
||||
name = "*"
|
||||
run = "git"
|
||||
|
||||
[[plugin.prepend_fetchers]]
|
||||
id = "git"
|
||||
name = "*/"
|
||||
run = "git"
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
name = "*.tar*"
|
||||
run = 'piper --format=url -- tar tf "$1"'
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
name = "*.csv"
|
||||
run = 'piper -- bat -p --color=always "$1"'
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
name = "*.md"
|
||||
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
name = "*/"
|
||||
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
||||
Reference in New Issue
Block a user