aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc16
1 files changed, 9 insertions, 7 deletions
diff --git a/tigrc b/tigrc
index 9534a26..40272c0 100644
--- a/tigrc
+++ b/tigrc
@@ -5,16 +5,22 @@
5#==================== 5#====================
6# geineric 6# geineric
7#==================== 7#====================
8# vim-like g binding, 'gp' for git grep
8bind generic g none 9bind generic g none
9bind generic gp view-grep 10bind generic gp view-grep
10bind generic gg move-first-line 11bind generic gg move-first-line
11bind generic G move-last-line 12bind generic G move-last-line
13
14# scroll right easily
12bind generic <C-H> scroll-left 15bind generic <C-H> scroll-left
13bind generic <C-L> scroll-right 16bind generic <C-L> scroll-right
17
18# redraw, refresh, source tigrc
19bind generic <C-R> refresh
14bind generic <Esc>l screen-redraw 20bind generic <Esc>l screen-redraw
15bind generic R :source ~/.tigrc # apply tigrc settings 21bind generic R :source ~/.tigrc
16 22
17# toggle/copy commit id 23# clipboard
18bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" 24bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!"
19bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!" 25bind generic xc +sh -c "echo -n %(commit) | xclip -sel c && echo Full Commit Clipped!"
20bind generic xrb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!" 26bind generic xrb +sh -c "echo -n %(branch) | xclip -sel c && echo Branch Clipped!"
@@ -27,9 +33,6 @@ bind generic xB +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped
27# toggle case sensitive for search 33# toggle case sensitive for search
28bind generic w :toggle ignore-case 34bind generic w :toggle ignore-case
29 35
30# refresh like modern browser
31bind generic <C-R> refresh
32
33# see reflog, reset refernece 36# see reflog, reset refernece
34bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" 37bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw"
35bind generic gl ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} 38bind generic gl ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"}
@@ -102,7 +105,7 @@ bind main gm ?@git merge %(remote)/%(branch) # merge with current remote
102bind main gM ?@git merge %(remote)/%(branch) --no-ff # merge-no-ff with current remote 105bind main gM ?@git merge %(remote)/%(branch) --no-ff # merge-no-ff with current remote
103 106
104# push 107# push
105bind main p none # override default pager binding 108bind main p none # override default pager binding
106bind main pp ?git push 109bind main pp ?git push
107bind main pP ?git push -u %(remote) %(branch):%(branch) 110bind main pP ?git push -u %(remote) %(branch):%(branch)
108bind main pF ?git push -f 111bind main pF ?git push -f
@@ -194,7 +197,6 @@ bind status gs !git stashstaged
194bind status c @git commit -m "%(prompt Enter commit message: )" 197bind status c @git commit -m "%(prompt Enter commit message: )"
195bind status a !>git commit --amend 198bind status a !>git commit --amend
196bind status p ?>sh -c "git commit -m 'update' && git push" # quick push 199bind status p ?>sh -c "git commit -m 'update' && git push" # quick push
197
198bind status d ?>rm %(file) 200bind status d ?>rm %(file)
199 201
200# solve conflict 202# solve conflict