summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-03 18:15:12 -0500
committerWormHeamer2026-01-03 18:15:12 -0500
commitde55948f8cb3f24bf5c4cd65e9a5243966925493 (patch)
treedfedf3dc05f255c3797c88e9b729ce6f2f1d8294
parent9a4896c089d6678e5764122363ac0a47664deeba (diff)
split <Space>c into separate git add and git commit commands
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6e97d9b..b0c1431 100644
--- a/main.c
+++ b/main.c
@@ -1699,8 +1699,11 @@ void mode_key_normal(Editor *e, u32 c) {
case 'd':
shell_run_no_prompt("git diff --color=always % | less -cr");
break;
+ case 'a':
+ shell_run_no_prompt("git add %");
+ break;
case 'c':
- shell_run_no_prompt("git add % && git commit %");
+ shell_run_no_prompt("git commit");
break;
case 'S':
shell_run("git status");