diff options
author | Guangxiong Lin <[email protected]> | 2022-01-22 10:32:36 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-01-22 20:00:38 +0800 |
commit | 2a73c0e9167373828763e1965fc6fedda9431509 (patch) | |
tree | a18689d280ad4b834fb66abec8fe305ad1ae624f | |
parent | db20be0174b16c3c61714524473479fcbcd97bee (diff) | |
download | dotfiles-2a73c0e9167373828763e1965fc6fedda9431509.tar.gz dotfiles-2a73c0e9167373828763e1965fc6fedda9431509.tar.bz2 dotfiles-2a73c0e9167373828763e1965fc6fedda9431509.zip |
Add tig config
-rw-r--r-- | .tigrc | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +bind generic + !git commit --amend +bind generic 9 @sh -c "echo -n %(commit) | xclip -selection c" +bind generic T !git notes edit %(commit) +bind refs 3 !git rebase -i %(branch) + +# Search for previous diff (c)hunk and next diff header +bind stage 2 :?^@@ +bind stage D :/^diff --(git|cc) + +# Grep view +bind generic S view-grep + +# Copy current commit ID to the clipboard +bind generic I !git add -i %(file) + +# Navigation +bind generic g move-first-line +bind generic G move-last-line +bind main G move-last-line |