smjonas / inc-rename.nvim

Incremental LSP renaming based on Neovim's command-preview feature.
MIT License
637 stars 8 forks source link

How to change startup mode from insert to normal? #58

Closed utrumo closed 1 month ago

utrumo commented 2 months ago

When I call the rename command, the pop-up window for renaming opens in insert mode.

Quite often I just have to go to the letter and replace it to fix the typo. In insert mode, using the arrows is very inconvenient.

How to change the mode to normal when a pop-up window appears?

I use this plugin with LazyVim with default config: https://www.lazyvim.org/extras/editor/inc-rename

smjonas commented 2 months ago

Currently, I don't think this is possible since the command preview feature of Neovim that inc-rename uses, only works in command line mode. So you are actually in command line mode the whole time, not insert mode. Maybe it is possible to navigate in the noice.nvim window? Not sure

hadynz commented 2 months ago

Agreed. It would be great if the pop-up supports normal and insert mode, with config of what the default mode is

erlangparasu commented 1 month ago

i need block all text by default, so the text can be replaced faster

smjonas commented 1 month ago

Agreed. It would be great if the pop-up supports normal and insert mode, with config of what the default mode is

i need block all text by default, so the text can be replaced faster

That's impossible to achieve currently as the command preview only works in command line mode.