Many things
This commit is contained in:
7
.config/yazi/init.lua
Normal file
7
.config/yazi/init.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
--[[
|
||||
Install yazi plugins
|
||||
ya pkg add yazi-rs/plugins:git
|
||||
ya pkg add dedukun/bookmarks
|
||||
--]]
|
||||
|
||||
require("git"):setup()
|
||||
97
.config/yazi/keymap.toml
Normal file
97
.config/yazi/keymap.toml
Normal file
@@ -0,0 +1,97 @@
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<C-p>"
|
||||
run = "search --via=fd"
|
||||
desc = "Find a file"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = "<C-f>"
|
||||
run = "search --via=rg"
|
||||
desc = "Find a file"
|
||||
|
||||
# Bookmarks
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "d" ]
|
||||
run = "cd ~/Downloads"
|
||||
desc = "Cd to ~/Downloads"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "s" ]
|
||||
run = "cd ~/Stardust"
|
||||
desc = "Cd to ~/Stardust"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "l" ]
|
||||
run = "cd ~/Stardust/Library"
|
||||
desc = "Cd to ~/Stardust/Library"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "g", "g" ]
|
||||
run = "cd ~/Stardust/Library/Role Playing Games/Games/"
|
||||
desc = "Cd to ~/Stardust/Library/Role Playing Games/Games/"
|
||||
|
||||
# dedukun/bookmarks keymaps
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "m" ]
|
||||
run = "plugin bookmarks save"
|
||||
desc = "Save current position as a bookmark"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "'" ]
|
||||
run = "plugin bookmarks jump"
|
||||
desc = "Jump to a bookmark"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "b", "d" ]
|
||||
run = "plugin bookmarks delete"
|
||||
desc = "Delete a bookmark"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "b", "D" ]
|
||||
run = "plugin bookmarks delete_all"
|
||||
desc = "Delete all bookmarks"
|
||||
|
||||
# dedukun/relative-motions keymaps
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "1" ]
|
||||
run = "plugin relative-motions 1"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "2" ]
|
||||
run = "plugin relative-motions 2"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "3" ]
|
||||
run = "plugin relative-motions 3"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "4" ]
|
||||
run = "plugin relative-motions 4"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "5" ]
|
||||
run = "plugin relative-motions 5"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "6" ]
|
||||
run = "plugin relative-motions 6"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "7" ]
|
||||
run = "plugin relative-motions 7"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "8" ]
|
||||
run = "plugin relative-motions 8"
|
||||
desc = "Move in relative steps"
|
||||
|
||||
[[mgr.prepend_keymap]]
|
||||
on = [ "9" ]
|
||||
run = "plugin relative-motions 9"
|
||||
desc = "Move in relative steps"
|
||||
12
.config/yazi/yazi.toml
Normal file
12
.config/yazi/yazi.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
[mgr]
|
||||
show_hidden = true
|
||||
|
||||
[[plugin.prepend_fetchers]]
|
||||
id = "git"
|
||||
name = "*"
|
||||
run = "git"
|
||||
|
||||
[[plugin.prepend_fetchers]]
|
||||
id = "git"
|
||||
name = "*/"
|
||||
run = "git"
|
||||
Reference in New Issue
Block a user