Restore and display compose metadata from templates and fetched details #228
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#228
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?
Decision
forge.nvim should mirror the familiar
gitcommitediting model rather than trying to invent partial read-only regions inside a normal buffer.That means compose/edit buffers should continue to use a normal editable text buffer with a commented metadata/help block. That block is intentionally real buffer text, but it is semantically scaffolding rather than authored content.
In other words:
Philosophy / reasoning
This is more Vim-native and simpler than virtual UI or custom edit policing.
The precedent is strong: git commit buffers already present commented scaffold text in a normal editable buffer, and users understand that lines in the commented section are guidance/context rather than the real message payload.
Trying to make parts of a normal text buffer "read-only somehow" would add complexity without matching how Vim/Neovim normally models this kind of editing surface.
What should happen now
forge.nvim should restore and display all metadata it already discovers or fetches, placing it in the compose/edit comment block rather than removing it from the surface.
That includes, where available:
The metadata block should be treated as advisory/display context, not as a protected form region.
Required work
Backend research required
Before backend plumbing is finalized, we need a verified matrix for each supported forge:
This issue now tracks the product decision and the restore/display contract.