Skip to content

Fix folded line navigation and floating window conflict with opencode.nvim#156

Open
saya-ashen wants to merge 15 commits intoFluxxField:masterfrom
saya-ashen:master
Open

Fix folded line navigation and floating window conflict with opencode.nvim#156
saya-ashen wants to merge 15 commits intoFluxxField:masterfrom
saya-ashen:master

Conversation

@saya-ashen
Copy link
Copy Markdown

This PR includes two main improvements:

  • It fixes motion behavior around folded lines, so navigation now handles closed folds correctly and behaves more consistently with Neovim’s native movement.
  • It resolves conflicts with opencode.nvim by ensuring smart-motion only closes its own floating windows instead of affecting floating windows created by other plugins.

saya-ashen and others added 15 commits February 10, 2026 13:13
Removed code that opens folds at the target position if no operation is pending.
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Co-authored-by: saya-ashen <40572061+saya-ashen@users.noreply.github.com>
Treat closed folds as single jumpable lines in line collector
- tag smart-motion floating windows after mounting history browse UI
- close only plugin-owned floating windows during cleanup
- add coverage to ensure unrelated floating windows stay open
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.

3 participants