Skip to content

Draft: Add stash options to staging panel #5683#5827

Open
nlvratna wants to merge 1 commit into
jesseduffield:masterfrom
nlvratna:feature/5683-staging-panel-stash
Open

Draft: Add stash options to staging panel #5683#5827
nlvratna wants to merge 1 commit into
jesseduffield:masterfrom
nlvratna:feature/5683-staging-panel-stash

Conversation

@nlvratna

Copy link
Copy Markdown

Prototype for Issue #5683: Add stash options to staging panel

Note: I have read CONTRIBUTING.md and understand that this project does not merge community PRs. As suggested in the contributing guidelines, I am opening this as a Draft PR to share a working prototype for anyone who might find it useful for their own forks, or in case the logic is helpful for a future official implementation.

What this does

This maps the standard stash options menu to the staging_controller.go local keybindings. It solves the issue by allowing users to trigger stash actions (like stashing only staged changes) directly from the Staging panel without needing to press Esc to drop back to the Files panel first.

Implementation Details

  • Reused the existing stashOptions menu from the files controller.
  • Mapped to the standard stash keybinding within the staging context.
  • Verified locally that it successfully triggers git stash push --staged when selecting the staged changes option.

@nlvratna
nlvratna marked this pull request as ready for review July 17, 2026 13:11
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