fix: stop echoing the buffer's own name back into its winbar #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/winbar-no-echo"
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?
Checklist
Problem
The winbar sits beside the buffer's name, not instead of it, so anything it
repeats is a wasted column. Two views were repeating their own identifier:
Solution
Each winbar carries the state, a human label, and whichever identifier the name
does not already hold.
checks/{oid}CI {repo} │ {summary} │ {subject}pr/{n}CI {repo} │ {summary} │ {sha8} {title}run/{id}CI {repo} │ {summary} │ {sha8} {workflow}job/{id}LOG {repo} │ {sym} {job} │ {workflow}The two SHAs that stay are the ones their names lack: a
pr/orrun/bufferis named by a number, so the commit under test is new information. The run view
already followed this after #17, and the job view needed nothing.
{workflow}stays on the job line because job names repeat across workflows —Analyzealone does not identify it, andworkflow_nameis the workflow'sname:key rather than its filename.Dropping the SHA from the checks winbar is safe because every name the plugin
produces resolves to the full OID first, including
:CI master. A hand-typedci://…/checks/masterkeeps that spelling, but that form is documented asround-tripping a name the plugin gave you.