From 2a73c0e9167373828763e1965fc6fedda9431509 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 22 Jan 2022 10:32:36 +0800 Subject: Add tig config --- .tigrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .tigrc diff --git a/.tigrc b/.tigrc new file mode 100644 index 0000000..904236d --- /dev/null +++ b/.tigrc @@ -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 -- cgit v1.2.3