commit 55eed28680ac8dc4c4b1d15ed2c41c6d231ac573
parent 15e757478ea43d4fda68b755f349ef3fc115dbfa
Author: awy <awy@awy.one>
Date: Sun, 15 Jun 2025 00:51:08 +0300
bmfiles for yazi
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts
@@ -49,5 +49,11 @@ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
printf(\"abbr %s \42\$EDITOR %s\42 \n\",\$1,\$2) >> \"$fish_shortcuts\" ;
printf(\"map %s :e %s<CR> \n\",\$1,\$2) >> \"$vifm_shortcuts\" ;
printf(\"map E%s \$\$EDITOR \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
- printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
-
+ printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" ;
+ split(\$1, a, \"\")
+ chars = \"\"
+ for (i = 1; i <= length(a); i++) {
+ chars = chars sprintf(\"\\\"%s\\\"\", a[i])
+ if (i < length(a)) chars = chars \", \"
+ }
+ printf(\"[[mgr.prepend_keymap]]\\non = [\\\"e\\\", %s]\\nrun = 'shell --block \\\"nvim %s\\\"'\\n\\n\", chars, \$2) >> \"$yazi_shortcuts\" }"