From eebd1149c1b8aa27b239ba7faf238b6c8b76c968 Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 25 Feb 2019 17:57:33 +0800 Subject: update --- tigrc | 54 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 18 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 1eefc9d..276c314 100644 --- a/tigrc +++ b/tigrc @@ -1,9 +1,19 @@ +# ref: +# https://qiita.com/sfus/items/063797a1dd8fdc7d032f +# https://github.com/jonas/tig/wiki/Bindings + bind generic x :toggle id bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" +bind generic g move-first-line +bind generic G move-last-line +bind generic w :toggle ignore-case -bind main c !?git checkout %(commit) -bind main T !@git tag "%(prompt Enter tag name: )" %(commit) +bind main c ?git checkout %(commit) +bind main T @git tag "%(prompt Enter tag name: )" %(commit) bind main !?git rebase -i %(commit) +bind main M ?git merge %(commit) +bind main P ?git push +bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit) set main-view = \ date:default \ @@ -12,19 +22,27 @@ set main-view = \ commit-title:graph=v2,refs=true set blame-view = \ - date:default \ - author:abbreviated \ - file-name:no \ - id:yes,color \ - line-number:yes,interval=5 text - -bind status S !?git stash -bind status P !?git stash pop -bind status D !rm %(file) -bind status a !git commit --amend - -bind stash D !?git stash drop %(stash) -bind stash A !?git stash apply %(stash) - -bind refs d !?git branch -d %(branch) -bind refs c !?git checkout %(branch) + date:default \ + author:abbreviated \ + file-name:no \ + id:yes,color \ + line-number:yes,interval=5 text + +bind status s ?git stash +bind status p ?git stash pop +bind status D ?rm %(file) +bind status a ?git commit --amend + +bind stash D ?git stash drop %(stash) +bind stash a ?git stash apply %(stash) + +bind refs d ?git branch -d %(branch) +bind refs d ?git branch -D %(branch) +bind refs c ?git checkout %(branch) + +set ignore-case = true +set line-graphics = utf-8 +# set mouse = true + +color diff-header default magenta +color diff-chunk black yellow -- cgit v1.2.3-70-g09d2