summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 20:46:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 20:46:59 +0900
commit3b0cb73407b303d4de2b2f279baab2f5f14fc6df (patch)
tree14a532c55820dca77afe953b52c27a3172b5ae1c
parentd384f51704aa1d0d47b737533827ce575cc9d572 (diff)
modified shell/bm-dirs, modified yazi/keymap-default.toml, modified bin/bmshortcuts
-rw-r--r--mac/.config/shell/bm-dirs30
-rw-r--r--mac/.config/yazi/keymap-default.toml4
-rwxr-xr-xmac/.local/bin/bmshortcuts4
3 files changed, 19 insertions, 19 deletions
diff --git a/mac/.config/shell/bm-dirs b/mac/.config/shell/bm-dirs
index 0d1f334..f65ad3f 100644
--- a/mac/.config/shell/bm-dirs
+++ b/mac/.config/shell/bm-dirs
@@ -45,6 +45,21 @@ cxc ${XDG_CONFIG_HOME:-${HOME}/.config}/x11
cyb ${XDG_CONFIG_HOME:-${HOME}/.config}/yabai
cyz ${XDG_CONFIG_HOME:-${HOME}/.config}/yazi
czc ${XDG_CONFIG_HOME:-${HOME}/.config}/zsh
+Cbk /mnt/second/backup
+Cdd /media/$USER/HDD
+Cfl /media/$USER/flash
+Cme /media/$USER
+Cmt /mnt
+Cmw /usr/local/share/mutt-wizard
+Crr /run/runit/service
+Csc /mnt/second
+Csg /media/$USER/storage/G
+Csm /media/$USER/samba
+Css /media/$USER/ssd
+Cst /media/$USER/storage
+Cvt /media/$USER/Ventoy
+Cvv /mnt/second/videos
+Cwv /media/$USER/win10/Videos
dot ${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}
Esm /etc/samba
Esv /etc/runit/sv
@@ -69,21 +84,6 @@ gvv ${XDG_VIDEOS_DIR:-${HOME}/Movies}
gwf $HOME/.librewolf/$USER.default
gwo ${XDG_DESKTOP_DIR:-${HOME}/Desktop}/Work
gww ${XDG_PICTURES_DIR:-${HOME}/Pictures}/wallpaper
-Hbk /mnt/second/backup
-Hdd /media/$USER/HDD
-Hfl /media/$USER/flash
-Hme /media/$USER
-Hmt /mnt
-Hmw /usr/local/share/mutt-wizard
-Hrr /run/runit/service
-Hsc /mnt/second
-Hsg /media/$USER/storage/G
-Hsm /media/$USER/samba
-Hss /media/$USER/ssd
-Hst /media/$USER/storage
-Hvt /media/$USER/Ventoy
-Hvv /mnt/second/videos
-Hwv /media/$USER/win10/Videos
pae ${PASSWORD_STORE_DIR:-$XDG_DATA_HOME/.password-store}/exported_keys
pah ${PASSWORD_STORE_DIR:-$XDG_DATA_HOME/.password-store}/ssh
pas ${PASSWORD_STORE_DIR:-$XDG_DATA_HOME/.password-store}
diff --git a/mac/.config/yazi/keymap-default.toml b/mac/.config/yazi/keymap-default.toml
index e8fafdf..486493d 100644
--- a/mac/.config/yazi/keymap-default.toml
+++ b/mac/.config/yazi/keymap-default.toml
@@ -48,7 +48,7 @@ keymap = [
{ on = "<C-r>", run = "toggle_all", desc = "Invert selection of all files" },
# Visual mode
- { on = "v", run = "visual_mode", desc = "Enter visual mode (selection mode)" },
+ { on = "<C-v>", run = "visual_mode", desc = "Enter visual mode (selection mode)" },
{ on = "V", run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" },
# Seeking
@@ -174,7 +174,7 @@ run = "plugin smart-enter"
desc = "Enter the child directory, or open the file"
[[mgr.prepend_keymap]]
-on = [ "c", "m" ]
+on = [ "c", "h", "m" ]
run = "plugin chmod"
desc = "Chmod on selected files"
diff --git a/mac/.local/bin/bmshortcuts b/mac/.local/bin/bmshortcuts
index 51a6c66..fa3d8c5 100755
--- a/mac/.local/bin/bmshortcuts
+++ b/mac/.local/bin/bmshortcuts
@@ -42,7 +42,7 @@ eval "echo \"$(cat "$bmdirs")\"" |
printf(\"vim.keymap.set('n', '<localleader><leader>%s', '<cmd>Explore %s<cr>', { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, desc_path) >> \"$nvim_shortcuts\" ;
printf(\"vim.keymap.set('n', '<localleader><localleader>%s', function() require('mini.files').open('%s') end, { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, desc_path) >> \"$nvim_shortcuts\" ;
desc_path = \$2; gsub(\"^/home/$USER/\",\"~/\",desc_path);
- key_array = \"\\\"\\\\\\\\\\\"\"; for(i=1; i<=length(\$1); i++) { key_array = key_array \", \\\"\" substr(\$1,i,1) \"\\\"\" }
+ key_array = \"\"; for(i=1; i<=length(\$1); i++) { if(i==1) key_array = \"\\\"\" substr(\$1,i,1) \"\\\"\"; else key_array = key_array \", \\\"\" substr(\$1,i,1) \"\\\"\" }
printf(\"\\t{ on = [ %s ], run = \\\"cd %s\\\", desc = \\\"Go to %s\\\" },\\n\",key_array,\$2,desc_path) >> \"$yazi_shortcuts.tmp\"}"
# Format the `files` file in the correct syntax and sent it to both configs.
@@ -65,7 +65,7 @@ eval "echo \"$(cat "$bmfiles")\"" |
printf(\"vim.keymap.set('c', ';%s', '%s<cr>', { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, desc_path) >> \"$nvim_shortcuts\" ;
printf(\"vim.keymap.set('n', '<localleader><localleader>%s', '<cmd>e %s<cr>', { noremap = true, silent = true, desc = '%s' })\n\", \$1, \$2, desc_path) >> \"$nvim_shortcuts\" ;
desc_path = \$2; gsub(\"^/home/$USER/\",\"~/\",desc_path);
- key_array = \"\\\"\\\\\\\\\\\"\"; for(i=1; i<=length(\$1); i++) { key_array = key_array \", \\\"\" substr(\$1,i,1) \"\\\"\" }
+ key_array = \"\"; for(i=1; i<=length(\$1); i++) { if(i==1) key_array = \"\\\"\" substr(\$1,i,1) \"\\\"\"; else key_array = key_array \", \\\"\" substr(\$1,i,1) \"\\\"\" }
printf(\"\\t{ on = [ %s ], run = \\\"open %s\\\", desc = \\\"Open %s\\\" },\\n\",key_array,\$2,desc_path) >> \"$yazi_shortcuts.tmp\"}"
# Merge bookmarks into keymap-default.toml