cmd: stop opening pickers from Ex-mode commands #449
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#449
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?
Searched existing issues; I did not find an open issue for this. The closest prior work is #391, which introduced the current implicit
:Forge pr ciEx flow.Problem
The Ex command surface currently has paths that land in picker UI instead of a deterministic command action.
At minimum:
:Forge ciopens current-branch CI history, which is a picker-backed route.:Forge pr ciresolves the current PR and opens the nested PR checks picker.That coupling is surprising from Ex-mode. A
:Forge ...command should not silently jump into an interactive picker surface. If the operation is fundamentally picker-driven, it should stay on the picker/route/Lua UI surface instead of the Ex commandline.Proposed solution
Audit the Ex command surface and remove all command paths that dispatch into picker UI, whether directly via
pickers.*or indirectly via picker-backed routes.Specifically:
:Forge cifrom picker-backed current-branch CI history:Forge pr cifrom the PR checks pickerIf there is a useful non-interactive Ex replacement for some of these flows, add that explicitly. Otherwise, keep picker access behind mappings, routes, and Lua UI helpers rather than
:Forge ....Alternatives considered
:Forge ...commandline connections. This is acceptable if the repo still wants a programmable interactive surface, but the Ex commandline itself should stay non-picker.