2 min·41 sentences·64.52 cm·28.04.2026Several jujutsu commands require a revset. When I am hacking on a project, I tend to poke at multiple stacks simultaneously. Many of these stacks use a generated bookmark name. Identifying them becomes a bit tricky after a while, so I’ve created a little script with fzf, called jjj (jujutsu jump i suppose), to help me select revsets: cmd=”${1:-show}” selected=$( jj log -r ‘all()’ –color=always | fzf –min-height=15 –cycle –ansi –prompt “jj $cmd> ” ) || exit 0 rev=$(echo “$selected” | awk ‘{for(i=1;i<=NF;i++) if(length($i)>=7){print $i; exit}}’) jj “$cmd” -r “$rev” “$@” jjj is exactly like jj, except your revset selection happens inside fzf. Every other arg is just passed straight through. This opens up jj log in an fzf…
jjj
Advertisement