Update; jj aliases; session management

This commit is contained in:
Martin Pander
2026-05-07 13:55:04 +02:00
parent affbd5ccca
commit c092fdeb48
4 changed files with 30 additions and 22 deletions

View File

@@ -86,6 +86,12 @@
lg = ["log"];
des = ["describe"];
sq = ["squash"];
gp = ["git" "push"];
nc = [
"util" "exec" "--" "bash" "-c"
''jj new --no-edit -B "''${2:-@}" -m "$1"''
""
];
};
ui = {

View File

@@ -69,9 +69,10 @@ in
fzf --ansi --disabled --query "$query" \
--bind "start:reload(rg --column --line-number --no-heading --color=always --smart-case {q} \"$search_path\")" \
--bind "change:reload:sleep 0.1; rg --column --line-number --no-heading --color=always --smart-case {q} \"$search_path\" || true" \
--bind "shift-up:preview-up,shift-down:preview-down" \
--delimiter : \
--preview 'bat --color=always --style=numbers --highlight-line {2} {1}' \
--preview-window 'right:45%'
--preview-window 'right,45%,border-left,+{2}+3/3,~3'
)
# Extract file and line, then open in Neovim