add support for floating window and popup
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- vim
- Domain
- tooling
Research direction
Start by comparing Vim's popup API with Neovim's floating-window API and review the linked vim-lsp and ZFVimPopup implementations. Define the scope of the proposed Popup and PopupManager modules, including positioning, z-index, multiple popups, and resize handling. Done should mean a documented cross-editor API with tests covering the agreed behavior.
Written by the indexing model from the issue text.
Description
It would be good if vital.vim has a popup api that works in both vim and neovim. There has been some PRs related to this in vim-lsp at https://github.com/prabirshrestha/vim-lsp/pull/510 and https://github.com/prabirshrestha/vim-lsp/pull/567. Another one i found was this https://github.com/ZSaberLv0/ZFVimPopup. Lot of other plugins also has to keep creating wrappers to solve this issue.
Besides just a wrapper around vim and neovim apis there are other high level apis that would be necessary for the popup such as controlling direction and zindex. For example I might want to show LSP hover information above the cursor but diagnostics below the cursor. If autocomplete popup menu is open I might want to show the popup at the right of the complete menu but if it is to the end of the screen i might want to show it to the left instead or if at the bottom of the screen i might want to show at the top. Or might even want to dock it similar as https://github.com/ncm2/float-preview.nvim. Might also want to listen to buffer/window resizes and resize accordingly.
Since some of these are quite complicated specially when dealing with multiple popup at the same time my thought was to have 2 modules.
Popup: This is a simple wrapper that is just bridges vim popup and neovim floating window apis.PopupManager: This is the bigger one which does the management of multiple popups.
- Dominant language
- Vim Script
- Stars
- 586
- Forks
- 64
- Avg merge
- 9h 24m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from vim-jp/vital.vim
-
Web.HTTP の非同期実行を行いたいPossibly taken @mikoto2000 claimed this 312 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Fix and feature: Add python setup in Github workflowMay be free again @tsuyoshicho claimed this 908 days ago, and no pull request is open. Open
-
Vim9.x: support change Vim 8.2/9.0 to Vim 9.0/9.1May be free again @tsuyoshicho claimed this 958 days ago, and no pull request is open. Open
-
feat: Bitwise.vim: bitwise shift operatorMay be free again @tsuyoshicho claimed this 1582 days ago, and no pull request is open. Open
-
Data.List: Deprecate function in string formMay be free again @ujihisa claimed this 2141 days ago, and no pull request is open. Open
All issues in vim-jp/vital.vim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
chipsalliance/verible#2644 ·
-
admission-deferred priority: medium status: ready work-class: scoped
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melodic-software/claude-code-plugins#10887 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
🔍 Triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
coollabsio/coolify#12373 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
ourjapanlife/findadoc-monorepo#170 ·
Maintainers usually reply within 1 day