This commit is contained in:
CronyAkatsuki 2024-12-25 21:06:09 +01:00
parent 0f42ec4d1f
commit d74b672e60
13 changed files with 89 additions and 47 deletions

View file

@ -20,8 +20,12 @@ mvln () {
# Find my script and let me edit them
se() {
fd . ~/bin -L --type f --color=never | fzf --prompt "Choose script to edit: " \
--preview 'bat --color=always --style=plain --pager=never {}' | xargs -r $EDITOR
current=$(pwd)
file=$(fd . ~/bin -L --type f --color=never | fzf --prompt "Choose script to edit: " \
--preview 'bat --color=always --style=plain --pager=never {}')
[ "$file" = "" ] && return
cd "$(dirname "$file")" && nvim "$(basename "$file")"
cd "$current"
}
# List my config and open the dir in a editor