AutoYADM commit: 2025-03-15 01:45:06

This commit is contained in:
Daniel Fichtinger 2025-03-15 01:45:06 -04:00
parent 669d2ce550
commit 6b99c84a29
4 changed files with 260 additions and 97 deletions

View file

@ -1,99 +1,251 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" "$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager] [[manager.prepend_keymap]]
prepend_keymap = [ on = "e"
# Navigation run = "arrow -1"
{ on = "e", run = "arrow -1", desc = "Move cursor up" }, desc = "Move cursor up"
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
{ on = "m", run = "leave", desc = "Go back to the parent directory" }, [[manager.prepend_keymap]]
{ on = "i", run = "enter", desc = "Enter the child directory" }, on = "n"
# Find run = "arrow 1"
{ on = "j", run = "find_arrow", desc = "Goto the next found" }, desc = "Move cursor down"
{ on = "J", run = "find_arrow --previous", desc = "Goto the previous found" },
# Linemode [[manager.prepend_keymap]]
{ on = [ on = "m"
"k", run = "leave"
"s", desc = "Go back to the parent directory"
], run = "linemode size", desc = "Linemode: size" },
{ on = [ [[manager.prepend_keymap]]
"k", on = "i"
"p", run = "enter"
], run = "linemode permissions", desc = "Linemode: permissions" }, desc = "Enter the child directory"
{ on = [
"k", [[manager.prepend_keymap]]
"b", on = "j"
], run = "linemode btime", desc = "Linemode: btime" }, run = "find_arrow"
{ on = [ desc = "Goto the next found"
"k",
"k", [[manager.prepend_keymap]]
], run = "linemode mtime", desc = "Linemode: mtime" }, on = "J"
{ on = [ run = "find_arrow --previous"
"k", desc = "Goto the previous found"
"o",
], run = "linemode owner", desc = "Linemode: owner" }, [[manager.prepend_keymap]]
{ on = [ on = ["k", "s"]
"k", run = "linemode size"
"n", desc = "Linemode: size"
], run = "linemode none", desc = "Linemode: none" },
{ on = "!", run = 'shell "$SHELL" --block', desc = "Open shell here" }, [[manager.prepend_keymap]]
# { on = "!", run = 'shell --block --interactive', desc = "Open shell here" }, on = ["k", "p"]
{ on = [ run = "linemode permissions"
"<C-n>", desc = "Linemode: permissions"
# "d",
], run = 'shell -- dragon-drop -x -i -T "$1"', desc = "Drag and drop selection" }, [[manager.prepend_keymap]]
{ on = [ on = ["k", "b"]
"g", run = "linemode btime"
"r", desc = "Linemode: btime"
], run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"', desc = "Goto git root" },
# { on = "o", run = "plugin open-with-cmd --ags=block", desc = "Open with command in terminal" }, [[manager.prepend_keymap]]
{ on = "o", run = "plugin open-with-cmd", desc = "Open with command" }, on = ["k", "k"]
{ on = [ run = "linemode mtime"
"'", desc = "Linemode: mtime"
";",
], run = 'plugin custom-shell -- auto --interactive', desc = "custom-shell as default, interactive" }, [[manager.prepend_keymap]]
{ on = [ on = ["k", "o"]
"'", run = "linemode owner"
":", desc = "Linemode: owner"
], run = 'plugin custom-shell -- auto --interactive --block', desc = "custom-shell as default, interactive, block" },
{ on = "h", run = 'shell --block "helix ."' }, [[manager.prepend_keymap]]
{ on = [ on = ["k", "n"]
"C", run = "linemode none"
], run = "plugin ouch zip", desc = "Compress with ouch" }, desc = "Linemode: none"
{ on = [
"g", [[manager.prepend_keymap]]
"i", on = "!"
], run = "plugin lazygit", desc = "run lazygit" }, run = 'shell "$SHELL" --block'
{ on = [ desc = "Open shell here"
"c",
"C", [[manager.prepend_keymap]]
], run = [ on = "<C-n>"
"plugin copy-file-contents", run = 'shell -- dragon-drop -x -i -T "$1"'
], desc = "Copy contents of file" }, desc = "Drag and drop selection"
{ on = [
"c", [[manager.prepend_keymap]]
"x", on = ["g", "r"]
], run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', desc = "Mime copy" }, run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"'
{ on = [ desc = "Goto git root"
"c",
"r", [[manager.prepend_keymap]]
], run = "plugin path-from-root", desc = "Copies path from git root" }, on = "o"
{ on = [ run = "plugin open-with-cmd"
"c", desc = "Open with command"
"m",
], run = "plugin chmod", desc = "Chmod on selected files" }, [[manager.prepend_keymap]]
{ on = "F", run = "plugin jump-to-char", desc = "Jump to char" }, on = ["'", ";"]
{ on = [ run = 'plugin custom-shell -- auto --interactive'
"g", desc = "custom-shell as default, interactive"
"l",
], run = "plugin first-non-directory", desc = "Jump to first non-dir" }, [[manager.prepend_keymap]]
] on = ["'", ":"]
[input] run = 'plugin custom-shell -- auto --interactive --block'
prepend_keymap = [ desc = "custom-shell as default, interactive, block"
{ on = "l", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
{ on = "L", run = "forward --far --end-of-word", desc = "Move forward to the end of the current or next WORD" }, [[manager.prepend_keymap]]
{ on = "h", run = "insert", desc = "Enter insert mode" }, on = "h"
{ on = "H", run = [ run = 'shell --block "helix ."'
"move first-char",
"insert", [[manager.prepend_keymap]]
], desc = "Move to the BOL, and enter insert mode" }, on = "C"
] run = "plugin ouch zip"
desc = "Compress with ouch"
[[manager.prepend_keymap]]
on = ["g", "i"]
run = "plugin lazygit"
desc = "run lazygit"
[[manager.prepend_keymap]]
on = ["c", "C"]
run = "plugin copy-file-contents"
desc = "Copy contents of file"
[[manager.prepend_keymap]]
on = ["c", "x"]
run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'
desc = "Mime copy"
[[manager.prepend_keymap]]
on = ["c", "r"]
run = "plugin path-from-root"
desc = "Copies path from git root"
[[manager.prepend_keymap]]
on = ["c", "m"]
run = "plugin chmod"
desc = "Chmod on selected files"
[[manager.prepend_keymap]]
on = "F"
run = "plugin jump-to-char"
desc = "Jump to char"
[[manager.prepend_keymap]]
on = ["g", "l"]
run = "plugin first-non-directory"
desc = "Jump to first non-dir"
[[manager.prepend_keymap]]
on = "<A-c>"
run = "plugin cdhist -- _ --fuzzy=fzf"
desc = "CD history"
# PROJECTS
[[manager.prepend_keymap]]
on = [ "P", "s" ]
run = "plugin projects save"
desc = "Save current project"
[[manager.prepend_keymap]]
on = [ "P", "l" ]
run = "plugin projects load"
desc = "Load project"
[[manager.prepend_keymap]]
on = [ "P", "P" ]
run = "plugin projects load_last"
desc = "Load last project"
[[manager.prepend_keymap]]
on = [ "P", "d" ]
run = "plugin projects delete"
desc = "Delete project"
[[manager.prepend_keymap]]
on = [ "P", "D" ]
run = "plugin projects delete_all"
desc = "Delete all projects"
[[manager.prepend_keymap]]
on = [ "P", "m" ]
run = "plugin projects 'merge current'"
desc = "Merge current tab to other projects"
[[manager.prepend_keymap]]
on = [ "P", "M" ]
run = "plugin projects 'merge all'"
desc = "Merge current project to other projects"
# sudo cp/mv
[[manager.prepend_keymap]]
on = ["R", "p", "p"]
run = "plugin sudo -- paste"
desc = "sudo paste"
# sudo cp/mv --force
[[manager.prepend_keymap]]
on = ["R", "P"]
run = "plugin sudo -- paste --force"
desc = "sudo paste"
# sudo mv
[[manager.prepend_keymap]]
on = ["R", "r"]
run = "plugin sudo -- rename"
desc = "sudo rename"
# sudo ln -s (absolute-path)
[[manager.prepend_keymap]]
on = ["R", "p", "l"]
run = "plugin sudo -- link"
desc = "sudo link"
# sudo ln -s (relative-path)
[[manager.prepend_keymap]]
on = ["R", "p", "r"]
run = "plugin sudo -- link --relative"
desc = "sudo link relative path"
# sudo ln
[[manager.prepend_keymap]]
on = ["R", "p", "L"]
run = "plugin sudo -- hardlink"
desc = "sudo hardlink"
# sudo touch/mkdir
[[manager.prepend_keymap]]
on = ["R", "a"]
run = "plugin sudo -- create"
desc = "sudo create"
# sudo trash
[[manager.prepend_keymap]]
on = ["R", "d"]
run = "plugin sudo -- remove"
desc = "sudo trash"
# sudo delete
[[manager.prepend_keymap]]
on = ["R", "D"]
run = "plugin sudo -- remove --permanently"
desc = "sudo delete"
[[input.prepend_keymap]]
on = "l"
run = "forward --end-of-word"
desc = "Move forward to the end of the current or next word"
[[input.prepend_keymap]]
on = "L"
run = "forward --far --end-of-word"
desc = "Move forward to the end of the current or next WORD"
[[input.prepend_keymap]]
on = "h"
run = "insert"
desc = "Enter insert mode"
[[input.prepend_keymap]]
on = "H"
run = ["move first-char", "insert"]
desc = "Move to the BOL, and enter insert mode"

View file

@ -68,6 +68,16 @@ use = "bulletmark/cdhist"
rev = "d8905e2" rev = "d8905e2"
hash = "8005e9475a37e33994652428cccf2946" hash = "8005e9475a37e33994652428cccf2946"
[[plugin.deps]]
use = "MasouShizuka/projects"
rev = "4f11ecc"
hash = "17fa17295d27864f62875f06a77f72e7"
[[plugin.deps]]
use = "TD-Sky/sudo"
rev = "af70636"
hash = "a94dcbe9266512806c677138e8591ddb"
[[flavor.deps]] [[flavor.deps]]
use = "ashen-org/ashen:ashen" use = "ashen-org/ashen:ashen"
rev = "7a53969" rev = "7a53969"

1
.zshrc
View file

@ -206,3 +206,4 @@ export GPG_TTY=$(tty)
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
# colorscript -e 36 # colorscript -e 36
# source ~/scripts/obsidian-bridge.sh # source ~/scripts/obsidian-bridge.sh
source <(cdhist -i)