This commit is contained in:
js0ny 2025-05-13 21:00:13 +01:00
parent 31fde92975
commit f4e142e83e
6 changed files with 20 additions and 7 deletions

View file

@ -172,3 +172,5 @@ test -f /opt/miniconda3/etc/fish/conf.d/conda.fish && source /opt/miniconda3/etc
# User-specific PATH # User-specific PATH
test -d $HOME/.local/scripts && fish_add_path $HOME/.local/scripts test -d $HOME/.local/scripts && fish_add_path $HOME/.local/scripts
test -d $HOME/.local/build && fish_add_path $HOME/.local/build test -d $HOME/.local/build && fish_add_path $HOME/.local/build
source "/home/js0ny/.deno/env.fish"

View file

@ -167,3 +167,11 @@ function __last_history_item; echo $history[1]; end
abbr -a !! --position anywhere --function __last_history_item 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

View file

@ -1,6 +1,6 @@
return { return {
"js0ny/multiple-cursors.nvim", "brenton-leighton/multiple-cursors.nvim",
version = "*", -- Use the latest tagged version version = "*", -- Use the latest tagged version
-- opts = , -- This causes the plugin setup function to be called -- opts = , -- This causes the plugin setup function to be called
keys = { keys = {
{ "<A-n>", "<Cmd>MultipleCursorsAddDown<CR>", mode = { "n", "x" }, desc = "Add cursor and move down" }, { "<A-n>", "<Cmd>MultipleCursorsAddDown<CR>", mode = { "n", "x" }, desc = "Add cursor and move down" },

View file

@ -22,7 +22,7 @@ return {
}, },
{ key = "q", icon = "󱊷 ", desc = "退出", action = "<cmd>qa<CR>" }, { key = "q", icon = "󱊷 ", desc = "退出", action = "<cmd>qa<CR>" },
}, },
--[[header = [[ header = [[
================= =============== =============== ======== ======== ================= =============== =============== ======== ========
\\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . // \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . //
||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .|| ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
@ -42,8 +42,8 @@ return {
==' _-' N E O V I M \/ `== ==' _-' N E O V I M \/ `==
\ _-' `-_ / \ _-' `-_ /
`'' ``' `'' ``'
--]] ]],
header = [[ --[[header = [[
@ -59,7 +59,7 @@ return {
]] --]]
}, },
sections = { sections = {
{ section = "header" }, { section = "header" },

View file

@ -39,6 +39,8 @@
"bindings": { "bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"] // "j k": ["workspace::SendKeystrokes", "escape"]
"alt-e": "editor::AddSelectionAbove", // Insert Cursor Above
"alt-n": "editor::AddSelectionBelow" // Insert Cursor Below
} }
}, },
{ {

View file

@ -33,4 +33,5 @@ for file in $DOTFILES/tools/zsh/mod/*.zsh; do
source $file source $file
done done
[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env [ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env
. "/home/js0ny/.deno/env"