1
0
Fork 0

set new shortcut for neotree

This commit is contained in:
Luca Bilke 2024-06-10 23:26:14 +02:00
commit 1b42384566
2 changed files with 22 additions and 22 deletions
.config/nvim/lua/config
.local/bin

View file

@ -1,24 +1,24 @@
-- NOTE: Managed by shortcuts script -- NOTE: Managed by shortcuts script
return { return {
gcf = "~/.config", ["<c-a>cf"] = "~/.config",
gch = "~/.cache", ["<c-a>ch"] = "~/.cache",
gco = "~/Documents/dev", ["<c-a>co"] = "~/Documents/dev",
gdk = "~/Desktop", ["<c-a>dk"] = "~/Desktop",
gdl = "~/Downloads", ["<c-a>dl"] = "~/Downloads",
gdm = "~/Documents", ["<c-a>dm"] = "~/Documents",
gds = "~/.local/share/stow/dots", ["<c-a>ds"] = "~/.local/share/stow/dots",
gdt = "~/.local/share", ["<c-a>dt"] = "~/.local/share",
ge = "/etc", ["<c-a>e"] = "/etc",
gh = "~", ["<c-a>h"] = "~",
glo = "/usr/local", ["<c-a>lo"] = "/usr/local",
gle = "~/.local/libexec", ["<c-a>le"] = "~/.local/libexec",
glg = "/var/log", ["<c-a>lg"] = "/var/log",
gmn = "/mnt", ["<c-a>mn"] = "/mnt",
gms = "~/Music", ["<c-a>ms"] = "~/Music",
gpc = "~/Pictures", ["<c-a>pc"] = "~/Pictures",
gr = "/", ["<c-a>r"] = "/",
gsc = "~/.local/bin", ["<c-a>sc"] = "~/.local/bin",
gst = "~/.local/state", ["<c-a>st"] = "~/.local/state",
gsv = "~/.local/sv", ["<c-a>sv"] = "~/.local/sv",
gvd = "~/Videos", ["<c-a>vd"] = "~/Videos",
} }

View file

@ -22,7 +22,7 @@ write() {
printf "hash -d %s=%s\n" "$shortcut" "$path" >>"$zsh" printf "hash -d %s=%s\n" "$shortcut" "$path" >>"$zsh"
printf "map g%s cd %s\n" "$shortcut" "$path" >>"$lf" printf "map g%s cd %s\n" "$shortcut" "$path" >>"$lf"
printf " g%s = \"%s\",\n" "$shortcut" "$path" >>"$nvim" printf " [\"<c-a>%s\"] = \"%s\",\n" "$shortcut" "$path" >>"$nvim"
done done
} }