refactor: route picker actions and :Forge commands through shared operations #148
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisites
Problem
Issue #145 proposes command parity for meaningful picker capabilities, but parity alone is not enough if the picker and command line take different implementation paths.
Today there is a risk that we will end up with:
If the new
:ForgeCLI is going to be canonical, picker workflows and commands should be thin frontends over the same underlying operations.Proposed solution
Add or extract a shared operation layer for semantic forge actions.
Principle
No meaningful forge capability should be picker-only, and no command should need a separate bespoke implementation path if the picker already performs the same semantic operation.
Candidate operations
At minimum, operations should exist for:
PR
Issue
CI
Release
Browse
What this is not
This is not about exposing picker mechanics as commands.
Not required:
Those remain UI behavior.
Implementation direction
Introduce a layer of shared operation functions or modules that:
:ForgesubcommandsThe picker can still provide richer interaction, but it should call the same semantic operations that commands call.
Acceptance criteria
Alternatives considered