From 87787defd831ea2d8d242f2e4ef371ff0b5e8512 Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Wed, 4 Oct 2023 10:52:15 +1100 Subject: [PATCH 1/2] The command is called "git prev-hunk", not "git previous-hunk". --- rc/tools/git.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/git.kak b/rc/tools/git.kak index 3d6d57ae..d830b6c8 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -60,7 +60,7 @@ define-command -params 1.. \ init log next-hunk - previous-hunk + prev-hunk show show-branch show-diff From 9286a7ee4997970a11ce45472432ae223cd5f556 Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Wed, 4 Oct 2023 10:53:20 +1100 Subject: [PATCH 2/2] Make "git next-hunk" hint about how it works. --- rc/tools/git.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/git.kak b/rc/tools/git.kak index d830b6c8..8b26cd4c 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -225,7 +225,7 @@ define-command -params 1.. \ shift if [ $# -lt 1 ]; then - echo "fail 'no git hunks found'" + echo "fail 'no git hunks found, try \":git show-diff\" first'" exit fi