diff options
author | typebrook <typebrook@gmail.com> | 2019-04-17 12:00:48 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-04-17 12:00:48 +0800 |
commit | 6434fdb86d902e77d66d9efa045e8f2d538502f2 (patch) | |
tree | 9f860b1debda2e4cf0a9bd8fab2b971aa77570df | |
parent | 338f75795f5a94e172d6ed6df0c587f8496deaf6 (diff) |
update
-rw-r--r-- | tigrc | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -16,10 +16,12 @@ bind generic <Esc>l screen-redraw | |||
16 | # toggle/copy commit id | 16 | # toggle/copy commit id |
17 | bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" | 17 | bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" |
18 | bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" | 18 | bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" |
19 | bind generic xb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" | 19 | bind generic xrb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" |
20 | bind generic xrb +sh -c "echo -n %(remote):%(branch) | xclip -sel c && echo Remote Branch Clipped!" | 20 | bind generic xrB +sh -c "echo -n %(remote):%(branch) | xclip -sel c && echo Remote Branch Clipped!" |
21 | bind generic xf +sh -c "echo -n %(file) | xclip -sel c && echo File Clipped" | 21 | bind generic xf +sh -c "echo -n %(file) | xclip -sel c && echo File Clipped" |
22 | bind generic xt +sh -c "echo -n %(tag) | xclip -sel c && echo tag Clipped" | 22 | bind generic xrt +sh -c "echo -n %(tag) | xclip -sel c && echo tag Clipped" |
23 | bind generic xb +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && echo Blob Clipped" | ||
24 | bind generic xB +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped" | ||
23 | 25 | ||
24 | bind generic gr view-grep | 26 | bind 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 | #==================== |
138 | bind blame m >tig %(file) | 140 | bind blame m >tig %(file) |
139 | 141 | bind blame . >sh -c "git diff %(ref) -- %(file) | tig" | |
140 | bind blame xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && Blob Clipped" | 142 | bind blame > >sh -c "git diff %(ref) --no-prefix -U1000i -- %(file) | tig" |
141 | bind blame xb +sh -c "echo -n %(blob) | xclip -sel c && Full Blob Clipped" | ||
142 | 143 | ||
143 | set blame-view = author:abbreviated date:relative id:yes,color line-number:yes text | 144 | set 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) | |||
206 | bind tree d ?rm %(file) | 207 | bind tree d ?rm %(file) |
207 | bind tree m >tig %(file) | 208 | bind tree m >tig %(file) |
208 | 209 | ||
209 | bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && echo Blob Clipped" | ||
210 | bind tree xb +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped" | ||
211 | bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xclip -sel c -o | awk '{print \"Tree Clipped\", $1}'" | 210 | bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xclip -sel c -o | awk '{print \"Tree Clipped\", $1}'" |
212 | bind 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 | #==================== |