aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc17
1 files changed, 7 insertions, 10 deletions
diff --git a/tigrc b/tigrc
index b5a90e5..27fa582 100644
--- a/tigrc
+++ b/tigrc
@@ -16,10 +16,12 @@ bind generic <Esc>l screen-redraw
16# toggle/copy commit id 16# toggle/copy commit id
17bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" 17bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!"
18bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" 18bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!"
19bind generic xb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" 19bind generic xrb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!"
20bind generic xrb +sh -c "echo -n %(remote):%(branch) | xclip -sel c && echo Remote Branch Clipped!" 20bind generic xrB +sh -c "echo -n %(remote):%(branch) | xclip -sel c && echo Remote Branch Clipped!"
21bind generic xf +sh -c "echo -n %(file) | xclip -sel c && echo File Clipped" 21bind generic xf +sh -c "echo -n %(file) | xclip -sel c && echo File Clipped"
22bind generic xt +sh -c "echo -n %(tag) | xclip -sel c && echo tag Clipped" 22bind generic xrt +sh -c "echo -n %(tag) | xclip -sel c && echo tag Clipped"
23bind generic xb +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && echo Blob Clipped"
24bind generic xB +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped"
23 25
24bind generic gr view-grep 26bind generic gr view-grep
25 27
@@ -136,9 +138,8 @@ bind main I >sh -c "hub issue | tig"
136# blame view 138# blame view
137#==================== 139#====================
138bind blame m >tig %(file) 140bind blame m >tig %(file)
139 141bind blame . >sh -c "git diff %(ref) -- %(file) | tig"
140bind blame xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && Blob Clipped" 142bind blame > >sh -c "git diff %(ref) --no-prefix -U1000i -- %(file) | tig"
141bind blame xb +sh -c "echo -n %(blob) | xclip -sel c && Full Blob Clipped"
142 143
143set blame-view = author:abbreviated date:relative id:yes,color line-number:yes text 144set blame-view = author:abbreviated date:relative id:yes,color line-number:yes text
144 145
@@ -206,11 +207,7 @@ bind tree t +git cat-file -p %(commit)
206bind tree d ?rm %(file) 207bind tree d ?rm %(file)
207bind tree m >tig %(file) 208bind tree m >tig %(file)
208 209
209bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && echo Blob Clipped"
210bind tree xb +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped"
211bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xclip -sel c -o | awk '{print \"Tree Clipped\", $1}'" 210bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xclip -sel c -o | awk '{print \"Tree Clipped\", $1}'"
212bind tree xc +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped"
213
214#==================== 211#====================
215# refs view 212# refs view
216#==================== 213#====================