aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-31 18:23:53 +0800
committertypebrook <typebrook@gmail.com>2019-03-31 18:23:53 +0800
commit803c85048b60247fa85909361606f2332a2de868 (patch)
treeb87bb64a8aaeac3cdf11c24b4b2b499938d218d9
parentb465651d86320d8076798cd46ae4f422b646c6bb (diff)
update
-rw-r--r--tigrc20
1 files changed, 14 insertions, 6 deletions
diff --git a/tigrc b/tigrc
index c3d7981..ab808aa 100644
--- a/tigrc
+++ b/tigrc
@@ -13,9 +13,9 @@ bind generic <C-L> none
13bind generic <C-L> scroll-right 13bind generic <C-L> scroll-right
14 14
15# toggle/copy commit id 15# toggle/copy commit id
16bind generic xx !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" 16bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!"
17bind generic xc !@sh -c "echo -n %(commit) | xclip -selection c" 17bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!"
18bind generic xb !@sh -c "echo -n %(branch) | xclip -selection c" 18bind generic xb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!"
19 19
20bind generic gr view-grep 20bind 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#====================
117bind blame m >tig %(file) 117bind blame m >tig %(file)
118
119bind blame xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && Blob Clipped"
120bind blame xb +sh -c "echo -n %(blob) | xclip -sel c && Full Blob Clipped"
121
118set blame-view = author:abbreviated date:default id:yes,color line-number:yes text 122set 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#====================
176set tree-view = mode author:abbreviated date:default file-size:units id:yes file-name
177
172bind tree d ?rm %(file) 178bind tree d ?rm %(file)
173bind tree xf !@sh -c "echo -n %(file) | xclip -selection c" 179
174bind tree xx !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" 180bind tree xf +sh -c "echo -n %(file) | xclip -selection c && echo File Clipped"
175bind tree xc !@sh -c "echo -n %(blob) | xclip -selection c" 181bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -selection c && echo Blob Clipped"
182bind tree xc +sh -c "echo -n %(commit) | head -c7 | xclip -selection c && echo Commit Clipped"
183bind tree xb +sh -c "echo -n %(blob) | xclip -selection c && echo Full Blob Clipped"
176 184
177#==================== 185#====================
178# refs view 186# refs view