:e kills preview #57

Closed
opened 2026-03-11 23:48:10 +00:00 by barrettruth · 3 comments
barrettruth commented 2026-03-11 23:48:10 +00:00
No description provided.
barrettruth commented 2026-03-12 15:43:42 +00:00

this is because we only hook into BufUnload, triggered by :e, which just kills the previewer

this is because we only hook into `BufUnload`, triggered by `:e`, which just kills the previewer
barrettruth commented 2026-03-12 15:52:47 +00:00

is BufUnload the right event to hook into for close? consider all circumstances:

navigating to another buffer, removing it from the window, etc.

what's reasonabe default behavior?

is `BufUnload` the right event to hook into for close? consider all circumstances: navigating to another buffer, removing it from the window, etc. what's reasonabe default behavior?
barrettruth commented 2026-03-12 15:59:26 +00:00

should there be an option for this viewing (i.e. auto-clsoe when not VISIBILE vs auot-close on delete/wipeout?)

should there be an option for this viewing (i.e. auto-clsoe when not VISIBILE vs auot-close on delete/wipeout?)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/preview.nvim#57
No description provided.