mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
feat(config): add grokbot scheme handlers and yazi configuration enhancements
This commit is contained in:
1 parent
07b4a56d1b
commit
311538839a
4 files changed
+78
-16
No files matched your search
@@ -37,6 +37,8 @@ x-scheme-handler/tldraw-offline=tldraw-offline.desktop
|
||||
x-scheme-handler/notion=notion.desktop
|
||||
inode/directory=io.github.lgse.Strata.desktop
|
||||
x-scheme-handler/fastmail=com.fastmail.Fastmail.desktop
|
||||
x-scheme-handler/grokbot=grok-bot.desktop
|
||||
x-scheme-handler/sand=grok-bot.desktop
|
||||
|
||||
[Added Associations]
|
||||
x-scheme-handler/http=brave-origin.desktop;userapp-Floorp-8MTFP3.desktop;
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[mgr]
|
||||
ratio = [0, 2, 6]
|
||||
|
||||
[opener]
|
||||
play = [
|
||||
{ run = "mpv %s", orphan = true, for = "unix" },
|
||||
]
|
||||
edit = [
|
||||
# routes into the host nvim when run inside its terminal ($NVIM set);
|
||||
# plain blocking nvim otherwise. Lives in ~/.local/bin (yazi doesn't
|
||||
# expand $HOME here). %s = selected/hovered paths (yazi interpolation).
|
||||
{ run = 'yazi-nvim-open %s', block = true, for = "unix" },
|
||||
]
|
||||
open = [
|
||||
{ run = "{{ if eq .chezmoi.os "darwin" }}open{{ else }}xdg-open{{ end }} %s1", desc = "Open" },
|
||||
]
|
||||
|
||||
[open]
|
||||
prepend_rules = [
|
||||
{ url = "*.{md,markdown}", use = [ "fry", "edit", "open" ] },
|
||||
]
|
||||
|
||||
# Preview pane: bat for text-like files (md included, since mdfried is TTY-only)
|
||||
[[plugin.prepend_previewers]]
|
||||
mime = "text/*"
|
||||
run = 'piper -- bat -p --color=always --terminal-width=$w "$1"'
|
||||
|
||||
[[plugin.prepend_previewers]]
|
||||
mime = "application/{mbox,javascript,wine-extension-ini}"
|
||||
run = 'piper -- bat -p --color=always --terminal-width=$w "$1"'
|
||||
+41
-16
@@ -4,12 +4,12 @@ run = "plugin smart-filter"
|
||||
desc = "Smart filter"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "r" ]
|
||||
on = ["g", "r"]
|
||||
run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"'
|
||||
desc = "Go to git root"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "C" ]
|
||||
on = ["g", "C"]
|
||||
run = 'shell -- ya emit cd "$HOME/.local/share/chezmoi"'
|
||||
desc = "Go to chezmoi root"
|
||||
|
||||
@@ -25,72 +25,72 @@ on = "'"
|
||||
run = "plugin bunny fuzzy"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "d"]
|
||||
on = ["g", "d"]
|
||||
run = 'shell -- ya emit cd "$HOME/Downloads"'
|
||||
desc = "Go to ~/Downloads"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "D", "d" ]
|
||||
on = ["g", "D", "d"]
|
||||
run = 'shell -- ya emit cd "$GHQ_ROOT/github.com"'
|
||||
desc = "Go to ~/Developer"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "D", "w" ]
|
||||
on = ["g", "D", "w"]
|
||||
run = 'shell -- ya emit cd "$GHQ_ROOT/github.com/wltbs"'
|
||||
desc = "Go to ~/Developer/wltbs"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "D", "p" ]
|
||||
on = ["g", "D", "p"]
|
||||
run = 'shell -- ya emit cd "$GHQ_ROOT/github.com/prdlk"'
|
||||
desc = "Go to ~/Developer/prdlk"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "l" ]
|
||||
on = ["g", "l"]
|
||||
run = 'shell -- ya emit cd "$HOME/.local"'
|
||||
desc = "Go to ~/.local"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "o", "p" ]
|
||||
on = ["g", "o", "p"]
|
||||
run = 'shell -- ya emit cd "$HOME/Documents/Obsidian/Personal"'
|
||||
desc = "Open Personal Obsidian"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "o", "r" ]
|
||||
on = ["g", "o", "r"]
|
||||
run = 'shell -- ya emit cd "$HOME/Documents/Obsidian/Research"'
|
||||
desc = "Open Research Obsidian"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "o", "w" ]
|
||||
on = ["g", "o", "w"]
|
||||
run = 'shell -- ya emit cd "$HOME/Documents/Obsidian/Walletbase"'
|
||||
desc = "Open Walletbase Obsidian"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "p" ]
|
||||
on = ["g", "p"]
|
||||
run = 'shell -- ya emit cd "$HOME/Pictures"'
|
||||
desc = "Go to Pictures"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "b" ]
|
||||
on = ["g", "b"]
|
||||
run = "back"
|
||||
desc = "Go to previous directory"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "f" ]
|
||||
on = ["g", "f"]
|
||||
run = "forward"
|
||||
desc = "Go forward to next directory"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g","m", "p" ]
|
||||
on = ["g", "m", "p"]
|
||||
run = "cd sftp://gdrive-personal"
|
||||
desc = "Mount & Go to Personal Drive"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g","m", "s" ]
|
||||
on = ["g", "m", "s"]
|
||||
run = "cd sftp://gdrive-sonr"
|
||||
desc = "Mount & Go to Sonr Drive"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "m", "h" ]
|
||||
on = ["g", "m", "h"]
|
||||
run = "cd sftp://gdrive-hyperauth"
|
||||
desc = "Mount & Go to HyperAuth Drive"
|
||||
|
||||
@@ -153,3 +153,28 @@ desc = "Create a directory"
|
||||
on = "N"
|
||||
run = "bulk_create"
|
||||
desc = "Bulk create files"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<C-w>"
|
||||
run = "plugin split-tabs spl_toggle"
|
||||
desc = "Split-tabs: toggle split tabs mode"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<Tab>"
|
||||
run = "plugin split-tabs spl_switch_tab"
|
||||
desc = "Split-tabs: switch to the other pane"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<C-p>"
|
||||
run = ["escape --visual", "plugin split-tabs spl_copy"]
|
||||
desc = "Split-tabs: copy to the other pane"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<C-x>"
|
||||
run = ["escape --visual", "plugin split-tabs spl_move"]
|
||||
desc = "Split-tabs: move to the other pane"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "P"
|
||||
run = "plugin split-tabs spl_preview"
|
||||
desc = "Split-tabs: toggle preview pane"
|
||||
@@ -63,5 +63,10 @@ use = "yazi-rs/plugins:no-status"
|
||||
rev = "efa4d79"
|
||||
hash = "3e023d31f29201efdac2a6ae35fedb78"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "terrakok/split-tabs"
|
||||
rev = "d0531f4"
|
||||
hash = "4298f0a23f6109a92334eef06fc7ffb9"
|
||||
|
||||
[flavor]
|
||||
deps = []
|
||||
Reference in new issue
Block a user