diff options
author | typebrook <typebrook@gmail.com> | 2019-03-31 18:23:53 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-31 18:23:53 +0800 |
commit | 803c85048b60247fa85909361606f2332a2de868 (patch) | |
tree | b87bb64a8aaeac3cdf11c24b4b2b499938d218d9 | |
parent | b465651d86320d8076798cd46ae4f422b646c6bb (diff) |
update
-rw-r--r-- | tigrc | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -13,9 +13,9 @@ bind generic <C-L> none | |||
13 | bind generic <C-L> scroll-right | 13 | bind generic <C-L> scroll-right |
14 | 14 | ||
15 | # toggle/copy commit id | 15 | # toggle/copy commit id |
16 | bind generic xx !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" | 16 | bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" |
17 | bind generic xc !@sh -c "echo -n %(commit) | xclip -selection c" | 17 | bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" |
18 | bind generic xb !@sh -c "echo -n %(branch) | xclip -selection c" | 18 | bind generic xb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" |
19 | 19 | ||
20 | bind generic gr view-grep | 20 | bind generic gr view-grep |
21 | 21 | ||
@@ -115,6 +115,10 @@ bind generic gn !git notes edit %(commit) | |||
115 | # blame view | 115 | # blame view |
116 | #==================== | 116 | #==================== |
117 | bind blame m >tig %(file) | 117 | bind blame m >tig %(file) |
118 | |||
119 | bind blame xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && Blob Clipped" | ||
120 | bind blame xb +sh -c "echo -n %(blob) | xclip -sel c && Full Blob Clipped" | ||
121 | |||
118 | set blame-view = author:abbreviated date:default id:yes,color line-number:yes text | 122 | set blame-view = author:abbreviated date:default id:yes,color line-number:yes text |
119 | 123 | ||
120 | #==================== | 124 | #==================== |
@@ -169,10 +173,14 @@ bind stage <Esc>p :?^diff --(git|cc) | |||
169 | #==================== | 173 | #==================== |
170 | # tree view | 174 | # tree view |
171 | #==================== | 175 | #==================== |
176 | set tree-view = mode author:abbreviated date:default file-size:units id:yes file-name | ||
177 | |||
172 | bind tree d ?rm %(file) | 178 | bind tree d ?rm %(file) |
173 | bind tree xf !@sh -c "echo -n %(file) | xclip -selection c" | 179 | |
174 | bind tree xx !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" | 180 | bind tree xf +sh -c "echo -n %(file) | xclip -selection c && echo File Clipped" |
175 | bind tree xc !@sh -c "echo -n %(blob) | xclip -selection c" | 181 | bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -selection c && echo Blob Clipped" |
182 | bind tree xc +sh -c "echo -n %(commit) | head -c7 | xclip -selection c && echo Commit Clipped" | ||
183 | bind tree xb +sh -c "echo -n %(blob) | xclip -selection c && echo Full Blob Clipped" | ||
176 | 184 | ||
177 | #==================== | 185 | #==================== |
178 | # refs view | 186 | # refs view |