diff --git a/tools/fish/conf.d/0init.fish b/tools/fish/conf.d/0init.fish index 08f8d40..e8969ed 100644 --- a/tools/fish/conf.d/0init.fish +++ b/tools/fish/conf.d/0init.fish @@ -172,3 +172,5 @@ test -f /opt/miniconda3/etc/fish/conf.d/conda.fish && source /opt/miniconda3/etc # User-specific PATH test -d $HOME/.local/scripts && fish_add_path $HOME/.local/scripts test -d $HOME/.local/build && fish_add_path $HOME/.local/build + +source "/home/js0ny/.deno/env.fish" diff --git a/tools/fish/conf.d/alias.fish b/tools/fish/conf.d/alias.fish index bef090b..08fc92e 100644 --- a/tools/fish/conf.d/alias.fish +++ b/tools/fish/conf.d/alias.fish @@ -167,3 +167,11 @@ function __last_history_item; echo $history[1]; end abbr -a !! --position anywhere --function __last_history_item +function y + set tmp (mktemp -t "yazi-cwd.XXXXXX") + yazi $argv --cwd-file="$tmp" + if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ] + builtin cd -- "$cwd" + end + rm -f -- "$tmp" +end diff --git a/tools/nvim/lua/plugins/mod/mc.lua b/tools/nvim/lua/plugins/mod/mc.lua index 5c63338..fcd4079 100644 --- a/tools/nvim/lua/plugins/mod/mc.lua +++ b/tools/nvim/lua/plugins/mod/mc.lua @@ -1,6 +1,6 @@ return { - "js0ny/multiple-cursors.nvim", - version = "*", -- Use the latest tagged version + "brenton-leighton/multiple-cursors.nvim", + version = "*", -- Use the latest tagged version -- opts = , -- This causes the plugin setup function to be called keys = { { "", "MultipleCursorsAddDown", mode = { "n", "x" }, desc = "Add cursor and move down" }, diff --git a/tools/nvim/lua/plugins/mod/snacks-nvim.lua b/tools/nvim/lua/plugins/mod/snacks-nvim.lua index 2c2b6bc..85c1a34 100644 --- a/tools/nvim/lua/plugins/mod/snacks-nvim.lua +++ b/tools/nvim/lua/plugins/mod/snacks-nvim.lua @@ -22,7 +22,7 @@ return { }, { key = "q", icon = "󱊷 ", desc = "退出", action = "qa" }, }, - --[[header = [[ + header = [[ ================= =============== =============== ======== ======== \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . // ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .|| @@ -42,8 +42,8 @@ return { ==' _-' N E O V I M \/ `== \ _-' `-_ / `'' ``' - --]] - header = [[ + ]], + --[[header = [[ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣤⣴⣦⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⣿⠿⠿⠿⠿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⣠⣾⣿⣿⡿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣶⡀⠀⠀⠀⠀ @@ -59,7 +59,7 @@ return { ⠀⠀⠀⠀⠈⠻⣿⣿⣷⣤⣄⡀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⠟⠁⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠈⠛⠿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⠁⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠛⠛⠛⠛⠛⠛⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ - ]] + --]] }, sections = { { section = "header" }, diff --git a/tools/zed/keymap.json b/tools/zed/keymap.json index a2000b4..041288d 100644 --- a/tools/zed/keymap.json +++ b/tools/zed/keymap.json @@ -39,6 +39,8 @@ "bindings": { // "j k": ["workspace::SendKeystrokes", "escape"] + "alt-e": "editor::AddSelectionAbove", // Insert Cursor Above + "alt-n": "editor::AddSelectionBelow" // Insert Cursor Below } }, { diff --git a/tools/zsh/zshrc b/tools/zsh/zshrc index 26ee997..d3451c6 100644 --- a/tools/zsh/zshrc +++ b/tools/zsh/zshrc @@ -33,4 +33,5 @@ for file in $DOTFILES/tools/zsh/mod/*.zsh; do source $file done -[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env \ No newline at end of file +[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env +. "/home/js0ny/.deno/env" \ No newline at end of file