yazi openers
This commit is contained in:
+26
-15
@@ -1,40 +1,51 @@
|
|||||||
[mgr]
|
[mgr]
|
||||||
linemode = "mtime"
|
linemode = "mtime"
|
||||||
show_hidden = true
|
show_hidden = true
|
||||||
sort_by = "natural"
|
sort_by = "natural"
|
||||||
ratio = [1, 4, 5]
|
ratio = [ 1, 4, 5 ]
|
||||||
|
|
||||||
[preview]
|
[preview]
|
||||||
wrap = "yes"
|
wrap = "yes"
|
||||||
image_delay = 50
|
image_delay = 50
|
||||||
max_width = 1500
|
max_width = 1500
|
||||||
max_height = 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]
|
[input]
|
||||||
cursor_blink = true
|
cursor_blink = true
|
||||||
|
|
||||||
[[plugin.prepend_fetchers]]
|
[[plugin.prepend_fetchers]]
|
||||||
id = "git"
|
id = "git"
|
||||||
name = "*"
|
name = "*"
|
||||||
run = "git"
|
run = "git"
|
||||||
|
|
||||||
[[plugin.prepend_fetchers]]
|
[[plugin.prepend_fetchers]]
|
||||||
id = "git"
|
id = "git"
|
||||||
name = "*/"
|
name = "*/"
|
||||||
run = "git"
|
run = "git"
|
||||||
|
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.tar*"
|
name = "*.tar*"
|
||||||
run = 'piper --format=url -- tar tf "$1"'
|
run = 'piper --format=url -- tar tf "$1"'
|
||||||
|
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.csv"
|
name = "*.csv"
|
||||||
run = 'piper -- bat -p --color=always "$1"'
|
run = 'piper -- bat -p --color=always "$1"'
|
||||||
|
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.md"
|
name = "*.md"
|
||||||
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||||
|
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*/"
|
name = "*/"
|
||||||
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
||||||
|
|||||||
Reference in New Issue
Block a user