From 9dc3161755e2e4e55b7eff88ea122eade7cde3bd Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 11 Apr 2019 11:55:02 +0800 Subject: update --- tigrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 0aeb27e..c53a845 100644 --- a/tigrc +++ b/tigrc @@ -17,6 +17,7 @@ bind generic l screen-redraw bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" bind generic xb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" +bind generic xrb +sh -c "echo -n %(remote):%(branch) | xclip -sel c && echo Remote Branch Clipped!" bind generic xf +sh -c "echo -n %(file) | xclip -sel c && echo File Clipped" bind generic xt +sh -c "echo -n %(tag) | xclip -sel c && echo tag Clipped" @@ -123,7 +124,8 @@ bind main . >sh -c "git diff %(commit) | tig" bind main > >sh -c "git diff %(commit) --no-prefix -U1000 | tig" # note -bind generic gn !git notes edit %(commit) +bind generic gnn !git notes edit %(commit) +bind generic gnr !git notes remove %(commit) #==================== # blame view -- cgit v1.2.3-70-g09d2