From 4eb4288f46284e4b80cf75c122c9c1c0de6a9247 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 3 Apr 2019 18:41:59 +0800 Subject: update --- tigrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 0fd811e..fa39144 100644 --- a/tigrc +++ b/tigrc @@ -11,6 +11,7 @@ bind generic G move-last-line bind generic scroll-left bind generic none bind generic scroll-right +bind generic l screen-redraw # toggle/copy commit id bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" @@ -174,10 +175,10 @@ bind stash n @sh -c "git stash drop %(stash) | \ #==================== # stage view #==================== -bind stage :/^@@ -bind stage :?^@@ -bind stage n :/^diff --(git|cc) -bind stage p :?^diff --(git|cc) +bind stage :/^@@ +bind stage :?^@@ +bind stage j :/^diff --(git|cc) +bind stage k :?^diff --(git|cc) #==================== # tree view @@ -223,8 +224,10 @@ bind log p :?^commit #==================== # diff view #==================== -bind diff n :/^diff --(git|cc) -bind diff p :?^diff --(git|cc) +bind diff :/^@@ +bind diff :?^@@ +bind diff j :/^diff --(git|cc) +bind diff k :?^diff --(git|cc) #==================== # help view -- cgit v1.2.3-70-g09d2