From 803c85048b60247fa85909361606f2332a2de868 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 31 Mar 2019 18:23:53 +0800 Subject: update --- tigrc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index c3d7981..ab808aa 100644 --- a/tigrc +++ b/tigrc @@ -13,9 +13,9 @@ bind generic none bind generic scroll-right # toggle/copy commit id -bind generic xx !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" -bind generic xc !@sh -c "echo -n %(commit) | xclip -selection c" -bind generic xb !@sh -c "echo -n %(branch) | xclip -selection c" +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 gr view-grep @@ -115,6 +115,10 @@ bind generic gn !git notes edit %(commit) # blame view #==================== bind blame m >tig %(file) + +bind blame xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && Blob Clipped" +bind blame xb +sh -c "echo -n %(blob) | xclip -sel c && Full Blob Clipped" + set blame-view = author:abbreviated date:default id:yes,color line-number:yes text #==================== @@ -169,10 +173,14 @@ bind stage p :?^diff --(git|cc) #==================== # tree view #==================== +set tree-view = mode author:abbreviated date:default file-size:units id:yes file-name + bind tree d ?rm %(file) -bind tree xf !@sh -c "echo -n %(file) | xclip -selection c" -bind tree xx !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" -bind tree xc !@sh -c "echo -n %(blob) | xclip -selection c" + +bind tree xf +sh -c "echo -n %(file) | xclip -selection c && echo File Clipped" +bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -selection c && echo Blob Clipped" +bind tree xc +sh -c "echo -n %(commit) | head -c7 | xclip -selection c && echo Commit Clipped" +bind tree xb +sh -c "echo -n %(blob) | xclip -selection c && echo Full Blob Clipped" #==================== # refs view -- cgit v1.2.3-70-g09d2