skywind3000 / skywind3000/vim-quickui
When preview window gets closed (rather than autoclose), the popup should disappear
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 1.2k
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
The preview window would usually get auto-closed, but in some cases it is not "automatically" closed when a user move their focus onto it (#9) and close manually, or when any other vim functions/commands are executed that close the preview window --- there remains only a floating window that draws the border without the content which is already closed.
Since the border window is not focusable and there is no way to close this popup border window, it would remain forever. Using a sort of autocmd (WinClose, etc. --- but not sure), we need to make sure they are cleaned up when the main preview window is lost.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the main preview window and its border window are created and cleaned up, focusing on the preview-window lifecycle described in the issue. Investigate whether a WinClose autocmd can detect loss of the main preview window. Done means manually closing the preview or running another command no longer leaves the border window visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100