Many things

This commit is contained in:
2025-11-11 22:03:07 +00:00
parent 9e2e5190a7
commit ddcd4c83f4
8 changed files with 137 additions and 7 deletions

View File

@@ -2,6 +2,8 @@ keybind = all:unconsumed:ctrl+shift+a=unbind
keybind = all:unconsumed:ctrl+shift+p=unbind
keybind = all:unconsumed:ctrl+shift+,=reload_config
keybind = all:unconsumed:ctrl+shift+v=paste_from_clipboard
keybind = all:unconsumed:ctrl+shift+n=new_window
keybind = all:unconsumed:ctrl+shift+c=copy_to_clipboard
#resize_split:down,10
keybind = all:unconsumed:super+ctrl+shift+arrow_down=unbind
@@ -41,16 +43,12 @@ keybind = all:unconsumed:ctrl+shift+arrow_left=unbind
keybind = all:unconsumed:ctrl+shift+arrow_right=unbind
#select_all
keybind = all:unconsumed:ctrl+shift+a=unbind
#copy_to_clipboard
keybind = all:unconsumed:ctrl+shift+c=unbind
#new_split:down
keybind = all:unconsumed:ctrl+shift+e=unbind
#inspector:toggle
keybind = all:unconsumed:ctrl+shift+i=unbind
#write_screen_file:paste
keybind = all:unconsumed:ctrl+shift+j=unbind
#new_window
keybind = all:unconsumed:ctrl+shift+n=unbind
#new_split:right
keybind = all:unconsumed:ctrl+shift+o=unbind
#toggle_command_palette

View File

@@ -97,9 +97,9 @@ alias \
alias \
sail='[ -f sail ] && sh sail || sh vendor/bin/sail' \
yi="yarn install" \
y="yarn" \
yr="yarn" \
ci="composer install" \
c="composer" \
cm="composer" \
tk="go-task" \
mux="tmuxinator" \
mex="tmuxinator stop-all" \
@@ -173,6 +173,15 @@ function git_main_branch() {
echo master
}
# Yazi shortcut that allows setting the current working directory on exit
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd < "$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}
# Git aliases
alias \
g="git" \

View File

@@ -30,6 +30,11 @@ set -g escape-time 0
# Proxy focus events
set -g focus-events on
# Settings for yazi image preview in tmux https://yazi-rs.github.io/docs/image-preview/
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
# Set the default terminal mode to 256color mode.
set -g default-terminal "screen-256color"

7
.config/yazi/init.lua Normal file
View File

@@ -0,0 +1,7 @@
--[[
Install yazi plugins
ya pkg add yazi-rs/plugins:git
ya pkg add dedukun/bookmarks
--]]
require("git"):setup()

97
.config/yazi/keymap.toml Normal file
View File

@@ -0,0 +1,97 @@
[[mgr.prepend_keymap]]
on = "<C-p>"
run = "search --via=fd"
desc = "Find a file"
[[mgr.prepend_keymap]]
on = "<C-f>"
run = "search --via=rg"
desc = "Find a file"
# Bookmarks
[[mgr.prepend_keymap]]
on = [ "g", "d" ]
run = "cd ~/Downloads"
desc = "Cd to ~/Downloads"
[[mgr.prepend_keymap]]
on = [ "g", "s" ]
run = "cd ~/Stardust"
desc = "Cd to ~/Stardust"
[[mgr.prepend_keymap]]
on = [ "g", "l" ]
run = "cd ~/Stardust/Library"
desc = "Cd to ~/Stardust/Library"
[[mgr.prepend_keymap]]
on = [ "g", "g" ]
run = "cd ~/Stardust/Library/Role Playing Games/Games/"
desc = "Cd to ~/Stardust/Library/Role Playing Games/Games/"
# dedukun/bookmarks keymaps
[[mgr.prepend_keymap]]
on = [ "m" ]
run = "plugin bookmarks save"
desc = "Save current position as a bookmark"
[[mgr.prepend_keymap]]
on = [ "'" ]
run = "plugin bookmarks jump"
desc = "Jump to a bookmark"
[[mgr.prepend_keymap]]
on = [ "b", "d" ]
run = "plugin bookmarks delete"
desc = "Delete a bookmark"
[[mgr.prepend_keymap]]
on = [ "b", "D" ]
run = "plugin bookmarks delete_all"
desc = "Delete all bookmarks"
# dedukun/relative-motions keymaps
[[mgr.prepend_keymap]]
on = [ "1" ]
run = "plugin relative-motions 1"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "2" ]
run = "plugin relative-motions 2"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "3" ]
run = "plugin relative-motions 3"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "4" ]
run = "plugin relative-motions 4"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "5" ]
run = "plugin relative-motions 5"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "6" ]
run = "plugin relative-motions 6"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "7" ]
run = "plugin relative-motions 7"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "8" ]
run = "plugin relative-motions 8"
desc = "Move in relative steps"
[[mgr.prepend_keymap]]
on = [ "9" ]
run = "plugin relative-motions 9"
desc = "Move in relative steps"

12
.config/yazi/yazi.toml Normal file
View File

@@ -0,0 +1,12 @@
[mgr]
show_hidden = true
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"

View File

@@ -186,3 +186,5 @@ source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
. "$HOME/.local/share/../bin/env"
eval "$(zoxide init --cmd cd zsh)"