aboutsummaryrefslogtreecommitdiffstats
path: root/config/yazi/yazi.toml
blob: 7bf156cead434903ccdf087c31e9e3c979f15135 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

[manager]
ratio = [1, 4, 3]
sort_by = "natural"
sort_dir_first = true
show_hidden = true
[opener]
folder = [
  { run = 'hyprctl dispatch exec "[float; size 60% 60%; center 1] nemo" %S', orphan = true, desc = "nemo", for = "linux" },
  { run = 'nvim %s', block = true, desc = "neovim", for = "linux" },
  { run = 'kitty --detach nvim %s', orphan = true, desc = "neovim (detached)", for = "linux" },
  { run = 'lazygit -p %s', block = true, desc = "lazygit", for = "linux" },
  { run = 'codium %S', orphan = true, desc = "vscodium", for = "linux" },
  { run = 'kitty %S', orphan = true, desc = "kitty", for = "linux" },
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
]

text = [
  { run = '${EDITOR:-nvim} %s', block = true, desc = "$EDITOR", for = "linux" },
  { run = 'nvim %s', block = true, desc = "neovim", for = "linux" },
  { run = 'kitty --detach nvim %s', orphan = true, desc = "neovim (detached)", for = "linux" },
  { run = 'codium %S', orphan = true, desc = "vscodium", for = "linux" },
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
]

document = [
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
  { run = 'zathura %s1', orphan = true, desc = "zathura", for = "linux" },
  { run = 'libreoffice %s1', orphan = true, desc = "libreoffice", for = "linux" },
]

image = [
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
  { run = 'qimgv %s1', orphan = true, desc = "qimgv", for = "linux" },
  { run = 'krita %s1', orphan = true, desc = "krita", for = "linux" },
  { run = 'satty --filename %s1', orphan = true, desc = "satty", for = "linux" },
]
video = [
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
  { run = 'mpv %s1', orphan = true, desc = "mpv", for = "linux" },
]
audio = [
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
  { run = 'mpv %s1', orphan = true, desc = "mpv", for = "linux" },
]
fallback = [
  { run = 'xdg-open %s1', orphan = true, desc = "xdg-open", for = "linux" },
]

[open]
rules = [
  { url = "*/", 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" },
]

send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage