jj: fancy status and diff on <M-s> and <M-S> respectively
This commit is contained in:
parent
7c2b46120e
commit
adc9fdbba9
2 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue