Skip to content

Instantly share code, notes, and snippets.

View ocharles's full-sized avatar
🥳

Ollie Charles ocharles

🥳
View GitHub Profile
@tdaron
tdaron / config.fish
Last active December 10, 2024 17:58
revision picker for jj using fzf
function fzf_jj_edit
if test -d .jj
set -l name (jj log --no-graph -T 'change_id.shortest() ++ "\t" ++ description.first_line() ++ " " ++ bookmarks.join(" ") ++ "\n"' --color always | fzf --ansi | cut -f1)
commandline -it "$name"
else
commandline -it "# not in a jj directory"
end
end
bind \cj 'fzf_jj_edit'