This is something I have implemented myself for LSP Rename:
A popup window with no border, that shows up over an existing region of text (for lsp rename it starts at the beginning of the word we are on). It initially contains the same text as the region it is covering (maybe highlighted differently), and doesn't covering anything else. The user starts in normal mode (so that we can use cw to replace the whole word), but can edit the text inside the popup as they want. If the new text becomes bigger than the original then the window should expand, but it shouldn't shrink below the original size
Essentially a very unintrusive UI for changing some region of text and having a callback that can do something with the new region, perfect for LSP rename but possibly usable for other things
This is something I have implemented myself for LSP Rename:
A popup window with no border, that shows up over an existing region of text (for lsp rename it starts at the beginning of the word we are on). It initially contains the same text as the region it is covering (maybe highlighted differently), and doesn't covering anything else. The user starts in normal mode (so that we can use
cw
to replace the whole word), but can edit the text inside the popup as they want. If the new text becomes bigger than the original then the window should expand, but it shouldn't shrink below the original sizeEssentially a very unintrusive UI for changing some region of text and having a callback that can do something with the new region, perfect for LSP rename but possibly usable for other things