This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

21
yazi/.github/README.md vendored Normal file
View File

@@ -0,0 +1,21 @@
<div align="center">
<a href="#"><img src="./title.png"></a>
</div>
<div align="center">
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/palette/macchiato.png" width="90%"/><br>
</div>
<div align="center">
<a href="https://dotfiles-docs.vercel.app/app-confs/yazi.html#about"><img width="190px" src="https://raw.githubusercontent.com/Matt-FTW/dotfiles/main/.github/assets/category-images/dotfiles-about.png"></a>
<a href="https://dotfiles-docs.vercel.app/app-confs/yazi.html#setup"><img width="190px" src="https://raw.githubusercontent.com/Matt-FTW/dotfiles/main/.github/assets/category-images/dotfiles-setup.png"></a>
<a href="https://dotfiles-docs.vercel.app/app-confs/yazi.html#gallery"><img width="190px" src="https://raw.githubusercontent.com/Matt-FTW/dotfiles/main/.github/assets/category-images/dotfiles-gallery.png"></a>
</div>
<br>
> [!NOTE]
> All the information about the yazi setup is on the documentation website: https://dotfiles-docs.vercel.app/app-confs/yazi.html

BIN
yazi/.github/overview-1.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
yazi/.github/overview-2.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

BIN
yazi/.github/overview-3.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
yazi/.github/title.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because it is too large Load Diff

193
yazi/init.lua Normal file
View File

@@ -0,0 +1,193 @@
local catppuccin_palette = {
rosewater = "#f4dbd6",
flamingo = "#f0c6c6",
pink = "#f5bde6",
mauve = "#c6a0f6",
red = "#ed8796",
maroon = "#ee99a0",
peach = "#f5a97f",
yellow = "#eed49f",
green = "#a6da95",
teal = "#8bd5ca",
sky = "#91d7e3",
sapphire = "#7dc4e4",
blue = "#8aadf4",
lavender = "#b7bdf8",
text = "#cad3f5",
subtext1 = "#b8c0e0",
subtext0 = "#a5adcb",
overlay2 = "#939ab7",
overlay1 = "#8087a2",
overlay0 = "#6e738d",
surface2 = "#5b6078",
surface1 = "#494d64",
surface0 = "#363a4f",
base = "#24273a",
mantle = "#1e2030",
crust = "#181926",
}
-- Plugins
require("full-border"):setup({
type = ui.Border.ROUNDED,
})
require("zoxide"):setup({
update_db = true,
})
require("session"):setup({
sync_yanked = true,
})
require("searchjump"):setup({
unmatch_fg = catppuccin_palette.overlay0,
match_str_fg = catppuccin_palette.peach,
match_str_bg = catppuccin_palette.base,
first_match_str_fg = catppuccin_palette.lavender,
first_match_str_bg = catppuccin_palette.base,
lable_fg = catppuccin_palette.green,
lable_bg = catppuccin_palette.base,
only_current = false, -- only search the current window
show_search_in_statusbar = false,
auto_exit_when_unmatch = false,
enable_capital_lable = false,
search_patterns = {}, -- demo:{"%.e%d+","s%d+e%d+"}
})
require("yatline"):setup({
section_separator = { open = "", close = "" },
inverse_separator = { open = "", close = "" },
part_separator = { open = "", close = "" },
style_a = {
fg = catppuccin_palette.mantle,
bg_mode = {
normal = catppuccin_palette.blue,
select = catppuccin_palette.mauve,
un_set = catppuccin_palette.red,
},
},
style_b = { bg = catppuccin_palette.surface0, fg = catppuccin_palette.text },
style_c = { bg = catppuccin_palette.base, fg = catppuccin_palette.text },
permissions_t_fg = catppuccin_palette.green,
permissions_r_fg = catppuccin_palette.yellow,
permissions_w_fg = catppuccin_palette.red,
permissions_x_fg = catppuccin_palette.sky,
permissions_s_fg = catppuccin_palette.lavender,
selected = { icon = "󰻭", fg = catppuccin_palette.yellow },
copied = { icon = "", fg = catppuccin_palette.green },
cut = { icon = "", fg = catppuccin_palette.red },
total = { icon = "", fg = catppuccin_palette.yellow },
succ = { icon = "", fg = catppuccin_palette.green },
fail = { icon = "", fg = catppuccin_palette.red },
found = { icon = "", fg = catppuccin_palette.blue },
processed = { icon = "", fg = catppuccin_palette.green },
tab_width = 20,
tab_use_inverse = true,
show_background = false,
display_header_line = true,
display_status_line = true,
header_line = {
left = {
section_a = {
{ type = "line", custom = false, name = "tabs", params = { "left" } },
},
section_b = {
{ type = "coloreds", custom = false, name = "githead" },
},
section_c = {},
},
right = {
section_a = {
{ type = "string", custom = false, name = "tab_path" },
},
section_b = {
{ type = "coloreds", custom = false, name = "task_workload" },
},
section_c = {
{ type = "coloreds", custom = false, name = "task_states" },
},
},
},
status_line = {
left = {
section_a = {
{ type = "string", custom = false, name = "tab_mode" },
},
section_b = {
{ type = "string", custom = false, name = "hovered_size" },
},
section_c = {
{ type = "string", custom = false, name = "hovered_name" },
{ type = "coloreds", custom = false, name = "count" },
},
},
right = {
section_a = {
{ type = "string", custom = false, name = "cursor_position" },
},
section_b = {
{ type = "string", custom = false, name = "cursor_percentage" },
},
section_c = {
{ type = "string", custom = false, name = "hovered_file_extension", params = { true } },
{ type = "coloreds", custom = false, name = "permissions" },
},
},
},
})
require("yatline-githead"):setup({
show_branch = true,
branch_prefix = "",
branch_symbol = "",
branch_borders = "",
commit_symbol = "",
show_behind_ahead = true,
behind_symbol = "",
ahead_symbol = "",
show_stashes = true,
stashes_symbol = "",
show_state = true,
show_state_prefix = true,
state_symbol = "󱅉",
show_staged = true,
staged_symbol = "",
show_unstaged = true,
unstaged_symbol = "",
show_untracked = true,
untracked_symbol = "",
prefix_color = catppuccin_palette.pink,
branch_color = catppuccin_palette.pink,
commit_color = catppuccin_palette.mauve,
stashes_color = catppuccin_palette.teal,
state_color = catppuccin_palette.lavender,
staged_color = catppuccin_palette.green,
unstaged_color = catppuccin_palette.yellow,
untracked_color = catppuccin_palette.pink,
ahead_color = catppuccin_palette.green,
behind_color = catppuccin_palette.yellow,
})
require("git"):setup()
require("fg"):setup({
default_action = "jump",
})

58
yazi/keymap.toml Normal file
View File

@@ -0,0 +1,58 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager]
prepend_keymap = [
{ on = [
"!",
], run = 'shell "$SHELL" --block', desc = "Open shell here" },
{ on = [
"c",
"a",
], run = "plugin compress", desc = "Archive selected files" },
{ on = "<C-u>", run = "seek -5", desc = "Seek up 5 units in the preview" },
{ on = "<C-d>", run = "seek 5", desc = "Seek down 5 units in the preview" },
{ on = "K", run = "arrow -50%", desc = "Move cursor up half page" },
{ on = "J", run = "arrow 50%", desc = "Move cursor down half page" },
{ on = "<A-k>", run = "arrow -5", desc = "Move cursor up half page" },
{ on = "<A-j>", run = "arrow 5", desc = "Move cursor down half page" },
{ on = [
"f",
"g",
], run = "plugin fg", desc = "find file by content (fuzzy match)" },
{ on = [
"f",
"f",
], run = "filter --smart", desc = "Filter files" },
{ on = [
"s",
], run = "plugin searchjump", desc = "Flash" },
{ on = "S", run = "search --via=fd", desc = "Search files by name using fd" },
{ on = [
"<C-y>",
], run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', desc = "Copy to clipboard" },
{ on = "A", run = "create --dir", desc = "Create a dir" },
{ on = [
"g",
"r",
], run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"', desc = "Root of Git Repo" },
{ on = "H", run = "tab_switch -1 --relative", desc = "Switch to the previous tab" },
{ on = "L", run = "tab_switch 1 --relative", desc = "Switch to the next tab" },
{ on = "<", run = "tab_swap -1", desc = "Swap current tab with previous tab" },
{ on = ">", run = "tab_swap 1", desc = "Swap current tab with next tab" },
]
append_keymap = [
{ on = [
"e",
], run = "open", desc = "Open the selected files" },
{ on = [
"E",
], run = "open --interactive", desc = "Open the selected files interactively" },
]
[completion]
prepend_keymap = [
{ on = "<C-k>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<C-j>", run = "arrow 1", desc = "Move cursor down" },
]

27
yazi/package.toml Normal file
View File

@@ -0,0 +1,27 @@
[[plugin.deps]]
use = "yazi-rs/plugins:full-border"
rev = "2730199"
hash = "1f3dad061209081a6b04dd6ff2cb06c7"
[[plugin.deps]]
use = "KKV9/compress"
rev = "60b24af"
hash = "ee025be766240cc98e671754ac836da3"
[[plugin.deps]]
use = "imsi32/yatline"
rev = "6b0fc1e"
hash = "ab115c6cc77f5710c27f39dfa2f3d4d"
[[plugin.deps]]
use = "imsi32/yatline-githead"
rev = "3b0eb7c"
hash = "bfd30c396bbe2af526cb949d97ce3dcf"
[[plugin.deps]]
use = "yazi-rs/plugins:git"
rev = "2730199"
hash = "e0d2c8d7e7afe5b82270367098d1a821"
[flavor]
deps = []

14
yazi/theme.toml Normal file
View File

@@ -0,0 +1,14 @@
[icon]
prepend_dirs = [
{ name = "desktop", text = "" },
{ name = "dev", text = "" },
{ name = "documents", text = "" },
{ name = "downloads", text = "" },
{ name = "music", text = "" },
{ name = "games", text = "󰊴" },
{ name = "pictures", text = "" },
{ name = "videos", text = "" },
]
[flavor]
use = "catppuccin-macchiato"

90
yazi/yazi.toml Normal file
View File

@@ -0,0 +1,90 @@
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
[manager]
ratio = [1, 4, 3]
sort_by = "natural"
sort_dir_first = true
[opener]
folder = [
{ run = 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" "$1"', orphan = true, desc = "nemo", for = "linux" },
{ run = '''fish -c "nvim "$1""''', block = true, desc = "neovim", for = "linux" },
{ run = 'kitty --detach nvim "$@"', orphan = true, desc = "neovim (detached)", for = "linux" },
{ run = '''fish -c "lazygit -p "$1""''', block = true, desc = "lazygit", for = "linux" },
{ run = 'codium "$@"', orphan = true, desc = "vscodium", for = "linux" },
{ run = 'kitty "$@"', orphan = true, desc = "kitty", for = "linux" },
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
]
text = [
{ run = '$EDITOR "$@"', block = true, desc = "$EDITOR", for = "linux" },
{ run = 'nvim "$@"', block = true, desc = "neovim", for = "linux" },
{ run = 'kitty --detach nvim "$@"', block = true, desc = "neovim (detached)", for = "linux" },
{ run = 'codium "$@"', orphan = true, desc = "vscodium", for = "linux" },
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
]
document = [
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
{ run = 'zathura "$@"', orphan = true, desc = "zathura", for = "linux" },
{ run = 'libreoffice "$@"', orphan = true, desc = "libreoffice", for = "linux" },
]
image = [
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
{ run = 'qimgv "$@"', orphan = true, desc = "qimgv", for = "linux" },
{ run = 'krita "$@"', orphan = true, desc = "krita", for = "linux" },
{ run = 'satty --filename "$@"', orphan = true, desc = "satty", for = "linux" },
]
video = [
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
{ run = 'mpv "$@"', orphan = true, desc = "mpv", for = "linux" },
{ run = 'vlc "$@"', orphan = true, desc = "vlc", for = "linux" },
]
audio = [
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
{ run = 'mpv "$@"', orphan = true, desc = "mpv", for = "linux" },
{ run = 'vlc "$@"', orphan = true, desc = "vlc", for = "linux" },
]
fallback = [
{ run = 'xdg-open "$@"', orphan = true, desc = "xdg-open", for = "linux" },
]
[open]
rules = [
{ name = "*/", use = "folder" },
{ mime = "text/*", use = "text" },
{ mime = "image/*", use = "image" },
{ mime = "video/*", use = "video" },
{ mime = "application/octet-stream", use = "video" },
{ mime = "audio/*", use = "audio" },
{ mime = "inode/x-empty", use = "text" },
{ mime = "application/json", use = "text" },
{ mime = "application/zip", use = "archive" },
{ mime = "application/gzip", use = "archive" },
{ mime = "application/x-bzip", use = "archive" },
{ mime = "application/x-bzip2", use = "archive" },
{ mime = "application/x-tar", use = "archive" },
{ mime = "application/x-7z-compressed", use = "archive" },
{ mime = "application/x-rar", use = "archive" },
{ mime = "application/pdf", use = "document" },
{ mime = "application/epub+zip", use = "document" },
{ mime = "application/x-mobipocket-ebook", use = "document" },
{ mime = "*", use = "fallback" },
]
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"