summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-28 15:21:50 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-28 15:21:50 +0900
commitf5150c6bf1c92a97993b063d60786b43d88130bb (patch)
tree14a82a581e77811f7ee5553f4f9796604b943450 /mac
parent1ae447e605618b3c4b0b1cebaaed4cc595e381af (diff)
updates
Diffstat (limited to 'mac')
-rw-r--r--mac/.config/yazi/init.lua8
-rw-r--r--mac/.config/yazi/yazi.toml66
2 files changed, 35 insertions, 39 deletions
diff --git a/mac/.config/yazi/init.lua b/mac/.config/yazi/init.lua
index 13d69a6..6c7ee4f 100644
--- a/mac/.config/yazi/init.lua
+++ b/mac/.config/yazi/init.lua
@@ -44,13 +44,9 @@ th.git = th.git or {}
th.git.modified_sign = "M"
th.git.deleted_sign = "D"
th.git.added_sign = "A"
-th.git.renamed_sign = "R"
-th.git.copied_sign = "C"
th.git.untracked_sign = "?"
-th.git.ignored_sign = "!"
-th.git.conflicted_sign = "U"
-th.git.typechange_sign = "T"
-th.git.staged_sign = "+"
+th.git.ignored_sign = "X"
+th.git.updated_sign = "U"
require("git"):setup()
diff --git a/mac/.config/yazi/yazi.toml b/mac/.config/yazi/yazi.toml
index d74bf58..f20a1e6 100644
--- a/mac/.config/yazi/yazi.toml
+++ b/mac/.config/yazi/yazi.toml
@@ -168,41 +168,41 @@ previewers = [
{ name = "*", run = "file" },
]
prepend_preloaders = [
- { mime = "application/openxmlformats-officedocument.*", run = "office" },
- { mime = "application/oasis.opendocument.*", run = "office" },
- { mime = "application/ms-*", run = "office" },
- { mime = "application/msword", run = "office" },
- { name = "*.docx", run = "office" },
+ { mime = "application/openxmlformats-officedocument.*", run = "office" },
+ { mime = "application/oasis.opendocument.*", run = "office" },
+ { mime = "application/ms-*", run = "office" },
+ { mime = "application/msword", run = "office" },
+ { name = "*.docx", run = "office" },
]
prepend_previewers = [
- { mime = "*/xml", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
- { mime = "application/*zip", run = 'piper -- atool --list -- "$1"' },
- { mime = "application/epub+zip", run = 'piper -- pandoc "$1" -t plain' },
- { mime = "application/json", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
- { mime = "application/ms-*", run = "office" },
- { mime = "application/msword", run = "office" },
- { mime = "application/oasis.opendocument.*", run = "office" },
- # { mime = "application/octet-stream", run = 'piper -- mediainfo "$1"' },
- { mime = "application/openxmlformats-officedocument.*", run = "office" },
- { mime = "application/pgp-encrypted", run = 'piper -- gpg -d -- "$1"' },
- { mime = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", run = 'piper -- pandoc "$1" -t plain' },
- # { mime = "application/vnd.rn-realmedia", run = 'piper -- mediainfo "$1"' },
- { mime = "application/x-mobipocket-ebook", run = 'piper -- pandoc "$1" -t plain' },
- { mime = "application/x-ndjson", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
- { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "lsar" },
- { mime = "application/{,g}zip", run = "lsar" },
- { mime = "audio/*", run = 'piper -- mediainfo "$1"' },
- # { mime = "image/{jpeg,png,webp}", run = "zoom 5" },
- { mime = "text/*", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
- { mime = "text/html", run = 'piper -- lynx -width="$w" -display_charset=utf-8 -dump "$1"' },
- { mime = "text/troff", run = 'piper -- man ./ "$1" | col -b' },
- # { mime = "video/*", run = 'piper -- mediainfo "$1"' },
- { name = "*.csv", run = 'piper -- bat -p --color=always "$1"' },
- { name = "*.docx", run = "office" },
- { name = "*.md", run = 'piper -- env CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"' },
- { name = "*.{odt,ods,odp,odg,ott,ots,otp}", run = 'piper -- odt2txt "$1"' },
- { name = "*.{tar,tar.gz,tar.bz2,tar.xz,zip,7z,rar,iso}", run = 'piper --format=url -- 7z l "$1"' },
- { name = "*/", run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"' },
+ { mime = "*/xml", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
+ { mime = "application/*zip", run = 'piper -- atool --list -- "$1"' },
+ { mime = "application/epub+zip", run = 'piper -- pandoc "$1" -t plain' },
+ { mime = "application/json", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
+ { mime = "application/ms-*", run = "office" },
+ { mime = "application/msword", run = "office" },
+ { mime = "application/oasis.opendocument.*", run = "office" },
+ # { mime = "application/octet-stream", run = 'piper -- mediainfo "$1"' },
+ { mime = "application/openxmlformats-officedocument.*", run = "office" },
+ { mime = "application/pgp-encrypted", run = 'piper -- gpg -d -- "$1"' },
+ { mime = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", run = 'piper -- pandoc "$1" -t plain' },
+ # { mime = "application/vnd.rn-realmedia", run = 'piper -- mediainfo "$1"' },
+ { mime = "application/x-mobipocket-ebook", run = 'piper -- pandoc "$1" -t plain' },
+ { mime = "application/x-ndjson", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
+ { mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", run = "lsar" },
+ { mime = "application/{,g}zip", run = "lsar" },
+ { mime = "audio/*", run = 'piper -- mediainfo "$1"' },
+ # { mime = "image/{jpeg,png,webp}", run = "zoom 5" },
+ { mime = "text/*", run = 'piper -- bat -p --theme ansi --terminal-width "$w" -f "$1"' },
+ { mime = "text/html", run = 'piper -- lynx -width="$w" -display_charset=utf-8 -dump "$1"' },
+ { mime = "text/troff", run = 'piper -- man ./ "$1" | col -b' },
+ # { mime = "video/*", run = 'piper -- mediainfo "$1"' },
+ { name = "*.csv", run = 'piper -- bat -p --color=always "$1"' },
+ { name = "*.docx", run = "office" },
+ { name = "*.md", run = 'piper -- env CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"' },
+ { name = "*.{odt,ods,odp,odg,ott,ots,otp}", run = 'piper -- odt2txt "$1"' },
+ { name = "*.{tar,tar.gz,tar.bz2,tar.xz,zip,7z,rar,iso}", run = 'piper --format=url -- 7z l "$1"' },
+ { name = "*/", run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"' },
]
[input]