mirror of
https://github.com/Ascyii/dotfiles.git
synced 2026-01-01 06:54:24 -05:00
50 lines
2.3 KiB
TOML
50 lines
2.3 KiB
TOML
[mgr]
|
|
# Custom mappings
|
|
prepend_keymap = [
|
|
#{ on = "<C-a>", run = "echo 'one'", desc = "Single command with `Ctrl + a`" },
|
|
# This is for drag and drop support of terminal filemanger (works also with signal and other applications)
|
|
{ on = [ "<C-n>" ], run = '''shell 'xdragon -x -T "$1"' --confirm''' },
|
|
|
|
# Lazygit in yazi
|
|
{on = [ "g", "i" ],run = "plugin lazygit",desc = "run lazygit"},
|
|
|
|
# Chmod in yazi
|
|
{on = [ "c", "m" ],run = "plugin chmod",desc = "Chmod on selected files"},
|
|
|
|
# Recover the last delted file
|
|
{ on = ["u"], run = "plugin restore", desc = "Restore last deleted files/folders" },
|
|
|
|
# Get the size of the cwd
|
|
{ on = [ "\\", "s" ], run = "plugin what-size", desc = "Calc size of selection or cwd" },
|
|
|
|
# Bookmark support
|
|
{on = [ "m" ],run = "plugin bookmarks save",desc = "Save current position as a bookmark"},
|
|
{on = [ "'" ],run = "plugin bookmarks jump",desc = "Jump to a bookmark"},
|
|
{on = [ "b", "d" ],run = "plugin bookmarks delete",desc = "Delete a bookmark"},
|
|
{on = [ "b", "D" ],run = "plugin bookmarks delete_all",desc = "Delete all bookmarks"},
|
|
|
|
# new linemodes
|
|
{on = [ "\\", "n", "m" ],run = "linemode mtime",desc = "Modified time"},
|
|
{on = [ "\\", "n", "n" ],run = "linemode none",desc = "no time"},
|
|
{on = [ "\\", "n", "b" ],run = "linemode btime",desc = "Birth time"},
|
|
]
|
|
|
|
# More mappings
|
|
append_keymap = [
|
|
# Default jumping to stuff
|
|
{ on = [ "g", "s" ], run = "cd /webdav", desc = "Go to webdav folder" },
|
|
{ on = [ "g", "u" ], run = "cd ~/projects/university", desc = "Go to university folder" },
|
|
{ on = [ "g", "n" ], run = "cd ~/nixos", desc = "Go to nixos folder" },
|
|
{ on = [ "g", "p" ], run = "cd ~/projects", desc = "Go to projects folder" },
|
|
{ on = [ "g", "w" ], run = "cd ~/workspace_local", desc = "Go to workspace" },
|
|
{ on = [ "g", "e" ], run = "cd ~/dotfiles", desc = "Go to dotfiles" },
|
|
{ on = [ "g", "r" ], run = "cd /", desc = "Go to root" },
|
|
{ on = [ "g", "b" ], run = "cd /shared", desc = "Go to hdd" },
|
|
{ on = [ "g", "l" ], run = "cd ~/.local", desc = "Go to Local" },
|
|
{ on = [ "g", "o" ], run = "cd ~/Documents", desc = "Go to Docs" },
|
|
{ on = [ "g", "a" ], run = "cd ~/.cache", desc = "Go to Cache" },
|
|
{ on = [ "g", "t" ], run = "cd ~/.local/share/Trash", desc = "Go to Trash" },
|
|
{ on = [ "g", "U" ], run = "cd ~/projects/university/pdfs", desc = "Go to Uni PDF" },
|
|
]
|
|
|