Muh dotfiles

This commit is contained in:
2025-05-10 10:18:28 +03:00
commit 0f4558597e
84 changed files with 4306 additions and 0 deletions

10
.config/yazi/init.lua Normal file
View File

@ -0,0 +1,10 @@
function Linemode:mtime()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then
return ""
elseif os.date("%Y", time) == os.date("%Y") then
return os.date("%d %b %H:%M", time)
else
return os.date("%d %b %y", time)
end
end

13
.config/yazi/keymap.toml Normal file
View File

@ -0,0 +1,13 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager]
prepend_keymap = [
{ on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
{ on = [
"g",
"d",
], run = "cd ~/documents", desc = "Goto ~/documents" },
{ on = "<A-s>", run = "search --via=rga", desc = "Search files by content via ripgrep-all" },
]

View File

@ -0,0 +1,9 @@
[[plugin.deps]]
use = "grappas/wl-clipboard"
rev = "c4edc4f"
hash = "51ff959c3c26cb3889589a0f8d394f14"
[[flavor.deps]]
use = "yazi-rs/flavors:dracula"
rev = "68326b4"
hash = "53e1f10ae0f6abd406e463fceca8622a"

2
.config/yazi/theme.toml Normal file
View File

@ -0,0 +1,2 @@
[flavor]
dark = "dracula"

30
.config/yazi/yazi.toml Normal file
View File

@ -0,0 +1,30 @@
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
[manager]
ratio = [0, 2, 3] # prev, current, next / preview
sort_by = "natural" # 1.md < 2.md < 10.md
# sort_translit = false # replaces  as A, Æ as AE, etc.
linemode = "mtime"
scrolloff = 5
# mouse_events = ["click", "scroll"] # plugin stuff
title_format = "Yazi: {cwd}"
[preview]
wrap = "no"
tab_size = 8
max_width = 1024
max_height = 1024
cache_dir = "~/.cache/yazi/"
image_delay = 0
# image_filter = "triangle"
# image_quality = 75
# [tasks]
# suppress_preload = false
# image_alloc = 536870912 # 512MB
[input]
cursor_blink = true
[which]
sort_by = "key"