jj: fancy status and diff on <M-s> and <M-S> respectively

This commit is contained in:
Daniel Lundin 2024-09-29 19:40:08 +02:00
parent 7c2b46120e
commit adc9fdbba9
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 14 additions and 2 deletions

View file

@ -23,9 +23,11 @@ end
function vcs_status
if __jj_in_repo
jj status
echo
jj log --limit=20 -T builtin_log_comfortable -r "(main..@) | (main..@)-"
printf '\e[38;5;240m\u2504%.0s\e[0m' (seq 1 (tput cols)) '\n'
jj show --stat
printf '\e[38;5;240m\u2504%.0s\e[0m' (seq 1 (tput cols)) '\n'
jj log --ignore-working-copy --limit=20 -T builtin_log_comfortable -r "(main..@) | (main..@)-"
else
git status -sb
end

View file

@ -140,6 +140,16 @@ in
fg = "bright black";
bold = false;
};
"diff added token" = {
bg = "#002200";
fg = "#66ffcc";
underline = false;
};
"diff removed token" = {
bg = "#220011";
underline = true;
};
};
};
};