smjonas / live-command.nvim

Easily create previewable commands in Neovim.
MIT License
508 stars 2 forks source link

Add support for `inccommand=split` #41

Open jedevc opened 3 weeks ago

jedevc commented 3 weeks ago

Heya! Huge thanks for this plugin :heart:

When setting inccommand=split (to visualize changes across an entire file), for some reason, it seems to remain empty, while other changes in the main screen continue to be visualized (with a custom G command that maps to g):

image

The split works at intended in builtin commands like :s:

image

I could be missing something super super basic, sorry! I did see back in https://github.com/smjonas/live-command.nvim/issues/7#issuecomment-1216412703, that only visible lines in the buffer were being visualized, which might explain this? But I'd expect that if inccommand=split was set, that I'm okay to accept to the performance penalty.

Again, thanks! :tada:

smjonas commented 3 weeks ago

Heya! Huge thanks for this plugin ❤️

Hey, first of all thanks <3

I would have to add support for inccommand=split as it does not work out of the box when using Neovim's previewable command feature. This shouldn't be too hard.