Skip to content

refactor(nvim): static preview titles and delta preview fixes#93

Merged
aguil merged 2 commits into
masterfrom
refactor/nvim-static-preview-title
Jun 11, 2026
Merged

refactor(nvim): static preview titles and delta preview fixes#93
aguil merged 2 commits into
masterfrom
refactor/nvim-static-preview-title

Conversation

@aguil

@aguil aguil commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

Two related Telescope location-preview improvements:

  1. Static preview titles — reference rows are highlighted inside delta previews, so dynamic path:line border titles were redundant.
  2. Terminal job lifecycle — fixes E474 when filtering workspace symbols while a delta preview job is still running.

Commits

  • refactor(nvim): drop dynamic preview title for location pickers — remove dynamic_preview_title and dyn_title helpers; keep static Location/Grep Preview titles.
  • fix(nvim): stop delta preview terminal jobs before buffer fallback — track preview jobs, wait for delta render before declaring a line missing, and jobstop before clearing buftype.

Test plan

  • chezmoi apply and restart Neovim
  • grr on a changed file: preview title stays fixed, reference row highlighted in diff body
  • gW (workspace symbols): type in the filter — no preview errors; file-at-line fallback works when symbol line is outside diff hunks
  • Filter/type and j/k scroll in location pickers still behave as before

aguil added 2 commits June 10, 2026 21:22
Reference rows are now highlighted inside delta location previews, so
path:line in the preview border was redundant. Remove dynamic_preview_title
and the dyn_title helpers; keep static Location/Grep Preview titles.

Verify: grr on a changed file — preview title stays fixed while the
reference line remains highlighted in the diff body.
Workspace symbol filtering could hit E474 when falling back from a delta
terminal preview to a normal file buffer while the delta job was still
running. Track preview jobs, wait for render before declaring a line
missing, and jobstop before clearing buftype.

Verify: gW, type in the filter on symbols in changed files — no preview
errors and file-at-line fallback still works.
@aguil aguil force-pushed the refactor/nvim-static-preview-title branch from dce053f to 23546b7 Compare June 11, 2026 20:03
@aguil aguil changed the title refactor(nvim): drop dynamic preview title for location pickers refactor(nvim): static preview titles and delta preview fixes Jun 11, 2026
@aguil aguil merged commit 2697d66 into master Jun 11, 2026
1 check passed
@aguil aguil deleted the refactor/nvim-static-preview-title branch June 11, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant