folke / flash.nvim

Navigate your code with search labels, enhanced character motions and Treesitter integration
Apache License 2.0
2.47k stars 33 forks source link

feat: enable multi window in vscode #230

Closed xiyaowong closed 1 year ago

xiyaowong commented 1 year ago

vscode-neovim supports nvim_set_current_win now. https://github.com/vscode-neovim/vscode-neovim/releases/tag/v0.5.0

folke commented 1 year ago

Awesome, thanks!

hustrjh commented 12 months ago

@xiyaowong Thanks a lot for your excellent work to implement this feature. I just found out that this feature may need some optimization. As one file which is split in two window with the same positon may create the same jump labels. Then I couldn't jump to another window.😂

Example: image

folke commented 12 months ago

What you're asking is not possible.

Extmarks are buffer-based, so you can't show different labels for each window.

The main use-case for multi-window is when you have two differernt files open in two or more windows.

hustrjh commented 12 months ago

@folke I got it. Thanks.