Skip to content

feat: offer to stage everything when committing with nothing staged - #3

Merged
owlnai merged 1 commit into
refactor/tab-only-draftingfrom
feat/stage-all-prompt
Nov 11, 2026
Merged

owlnai merged 1 commit into
refactor/tab-only-draftingfrom
feat/stage-all-prompt

Conversation

@owlnai

@owlnai owlnai commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Written by an AI agent on behalf of @owlnai. @owlnai has reviewed it.

This is the second layer of three and sits on the Tab-only drafting layer. Pressing Enter in the commit box with nothing staged only showed an error, so you had to leave the box, stage, and come back. A drafted message often describes every change anyway: with nothing staged, the draft is written from the unstaged diff.

What changed

Enter with nothing staged now asks:

  • ⏎ stages everything (git add -A, which includes untracked files) and commits.
  • s goes back to the file list and keeps the message.
  • esc cancels.

The question takes priority over status messages, so a second Enter never answers it unseen. In a narrow pane it drops its red nothing staged · label so all three choices fit. Leaving the commit box clears the question. With no changes at all, it says nothing to commit.

Evidence

Same scratch repo (one modified file, one untracked file), same 47-column Rex pane, with a message typed and Enter pressed. "Before" is main. These are real rex capture lines.

Before:

 nothing staged: space stages a file, a stages …

After:

 ⏎ stage all 2 & commit · s pick · esc cancel

After pressing ⏎ again:

 ✓ working tree clean
 recent
 4d08fa4 feat: test 0s
 ...
 committed 4d08fa4

s returned to the list with the message kept, and c ⏎ asked again. Before the priority fix, a status message from s hid the question, and the next Enter committed. That's how I found the bug. The branch builds with no new warnings.

ELI5

If you try to save your work without picking which files to save, it now offers to save all of them instead of just saying no.

@owlnai
owlnai added this pull request to stack #4 November 11, 2026 04:48
@owlnai
owlnai merged commit 0b2c6d3 into main Nov 11, 2026
8 checks passed
@owlnai owlnai mentioned this pull request Nov 11, 2026
@owlnai
owlnai deleted the feat/stage-all-prompt branch November 11, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant