fix(buffer): keep conceal active in all modes and add %l EOL forge labels

Problem: `concealcursor` was missing `i` and `v`, so concealed text
(task IDs, forge tokens) leaked in insert and visual modes. Forge
labels only rendered for the first span when multiple refs existed.

Solution: set `concealcursor = 'nicv'` to keep conceal in all modes.
Add `%l` EOL format specifier that renders all forge spans with
independent highlights. Update default `eol_format` to include `%l`.
This commit is contained in:
Barrett Ruth 2026-03-15 13:19:32 -04:00
parent 1266eaedd8
commit 9830ab84a1
3 changed files with 33 additions and 18 deletions

View file

@ -901,12 +901,13 @@ Fields: ~
The view to use when the buffer is opened
for the first time in a session.
{eol_format} (string, default: '%c %r %d')
{eol_format} (string, default: '%c %r %d %l')
Format string for end-of-line virtual text.
Specifiers:
`%c` category icon + name (`PendingHeader`)
`%r` recurrence icon + pattern (`PendingRecur`)
`%d` due icon + date (`PendingDue`/`PendingOverdue`)
`%l` forge link label (`PendingForge`/`PendingForgeClosed`)
Literal text between specifiers acts as a
separator. Absent fields and surrounding
literals are collapsed automatically. `%c`
@ -1572,10 +1573,9 @@ Example: >
<
On `:w`, the forge reference stays in the description and is also stored in
the task's `_extra._forge_ref` field. The raw token is visually replaced
inline with a formatted label using overlay extmarks (same technique as
checkbox icons). Multiple forge references in one line are each overlaid
independently.
the task's `_extra._forge_ref` field. The raw token is concealed in the
buffer and a formatted label appears at the end of the line via the `%l`
EOL format specifier.
Format string: ~
*pending-forge-format*