updated yazi config

This commit is contained in:
liph committed 2026-08-29 11:57:14 +02:00
1 parent 6868bb0f46
commit 81aa62d931
181 files changed
+214 -33288

No files matched your search

+42 -71
View File
@@ -125,9 +125,10 @@ fetch_workers = 5
preload_workers = 2
process_workers = 5
bizarre_retry = 3
image_alloc = 536870912 # 512MB
# image_alloc = 536870912 # 512MB
image_bound = [10000, 10000]
suppress_preload = false
image_alloc = 1073741824 # = 1024*1024*1024 = 1024MB
[plugin]
fetchers = [
@@ -141,52 +142,16 @@ fetchers = [
# { id = "current-size", name = "*", run = "current-size", prio = "normal" },
]
### git ###
[[plugin.prepend_fetchers]]
url = "*"
run = "git"
group = "git"
[[plugin.prepend_fetchers]]
url = "*/"
run = "git"
group = "git"
### mime-ext ###
[[plugin.prepend_fetchers]]
url = "local://*"
run = "mime-ext.local"
prio = "high"
group = "mime"
[[plugin.prepend_fetchers]]
url = "remote://*"
run = "mime-ext.remote"
prio = "high"
group = "mime"
### mediainfo ###
prepend_preloaders = [
# Replace magick, image, video with mediainfo
{ mime = "{audio,video,image}/*", run = "mediainfo" },
# .srt subtitle, adobe illustrator, adobe photoshop file
{ mime = "application/{subrip,postscript,illustrator,dvb.ait,vnd.adobe.illustrator,eps}", run = "mediainfo" },
# Sometimes AI file is recognized as "application/pdf". Lmao.
# In this case use file extension instead:
{ url = "*.{ai,eps,ait}", run = "mediainfo" },
# Hide metadata by default.
# Example for image mimetype:
{ mime = "{image}/*", run = "mediainfo --no-metadata" },
# Hide image preview by default.
# Example for video mimetype:
{ mime = "{video}/*", run = "mediainfo --no-preview" },
# NOTE: Use both --no-metadata and --no-preview will display nothing. :)
# Make sure both of your previewers and preloaders has the same arguments (--no-metadata and --no-preview)
prepend_fetchers = [
### git ###
{ url = "*", run = "git", group = "git" },
{ url = "*/", run = "git", group = "git" },
### mime-ext ###
{ url = "local://*", run = "mime-ext.local", prio = "high", group = "mime" },
{ url = "remote://*", run = "mime-ext.remote", prio = "high", group = "mime" },
]
spotters = [
# Multi-file
{ mime = "multi/*", run = "multi" },
@@ -236,49 +201,25 @@ preloaders = [
{ mime = "trash/**", run = "trash" },
]
### exifaudio ###
[[plugin.prepend_previewers]]
mime = "audio/*"
run = "exifaudio"
### eza-preview ###
[[plugin.prepend_previewers]]
url = "*/"
run = "eza-preview"
prepend_previewers = [
### rich-preview ###
{ url = "*.csv", run = "rich-preview" }, # for csv files
{ url = "*.md", run = "rich-preview" }, # for markdown (.md) files
{ url = "*.rst", run = "rich-preview" }, # for restructured text (.rst) files
{ url = "*.ipynb", run = "rich-preview" }, # for jupyter notebooks (.ipynb)
{ url = "*.json", run = "rich-preview" }, # for json (.json) files
# { url = "*.lang_type", run = "rich-preview"} # for particular language files eg. .py, .go., .lua, etc.
# ### eza-preview ###
# { url = "*/", run = "eza-preview" },
prepend_preloaders = [
### mediainfo ###
# Replace magick, image, video with mediainfo
{ mime = "{audio,video,image}/*", run = "mediainfo" },
# .srt subtitle, adobe illustrator, adobe photoshop file
{ mime = "application/{subrip,postscript,illustrator,dvb.ait,vnd.adobe.illustrator,eps}", run = "mediainfo" },
# Sometimes AI file is recognized as "application/pdf". Lmao.
# In this case use file extension instead:
{ url = "*.{ai,eps,ait}", run = "mediainfo" },
# Hide metadata by default.
# Example for image mimetype:
{ mime = "{image}/*", run = "mediainfo --no-metadata" },
# Hide image preview by default.
# Example for video mimetype:
{ mime = "{video}/*", run = "mediainfo --no-preview" },
# NOTE: Use both --no-metadata and --no-preview will display nothing. :)
# Make sure both of your previewers and preloaders has the same arguments (--no-metadata and --no-preview)
]
previewers = [
{ url = "*/", run = "folder" },
# Code
@@ -317,6 +258,36 @@ previewers = [
{ url = "*", run = "file" },
]
prepend_previewers = [
### rich-preview ###
{ url = "*.csv", run = "rich-preview" }, # for csv files
{ url = "*.md", run = "rich-preview" }, # for markdown (.md) files
{ url = "*.rst", run = "rich-preview" }, # for restructured text (.rst) files
{ url = "*.ipynb", run = "rich-preview" }, # for jupyter notebooks (.ipynb)
{ url = "*.json", run = "rich-preview" }, # for json (.json) files
# { url = "*.lang_type", run = "rich-preview"} # for particular language files eg. .py, .go., .lua, etc.
### exifaudio ###
{ mime = "audio/*", run = "exifaudio" },
### eza-preview ###
{ url = "*/", run = "eza-preview" },
### mediainfo ###
# Replace magick, image, video with mediainfo
{ mime = "{audio,video,image}/*", run = "mediainfo" },
# .srt subtitle, adobe illustrator, adobe photoshop file
{ mime = "application/{subrip,postscript,illustrator,dvb.ait,vnd.adobe.illustrator,eps}", run = "mediainfo" },
# Sometimes AI file is recognized as "application/pdf". Lmao.
# In this case use file extension instead:
{ url = "*.{ai,eps,ait}", run = "mediainfo" },
# Hide metadata by default.
# Example for image mimetype:
{ mime = "{image}/*", run = "mediainfo --no-metadata" },
# Hide image preview by default.
# Example for video mimetype:
{ mime = "{video}/*", run = "mediainfo --no-preview" },
# NOTE: Use both --no-metadata and --no-preview will display nothing. :)
# Make sure both of your previewers and preloaders has the same arguments (--no-metadata and --no-preview)
]
[input]
cursor_blink = false