Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea for UI popup element #15

Open
IndianBoy42 opened this issue Aug 16, 2021 · 2 comments
Open

Idea for UI popup element #15

IndianBoy42 opened this issue Aug 16, 2021 · 2 comments

Comments

@IndianBoy42
Copy link

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

@RishabhRD
Copy link
Owner

Yeah can you refer the code here... We can work on it

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

No branches or pull requests

2 participants