Surfingkeys icon indicating copy to clipboard operation
Surfingkeys copied to clipboard

Neovim does not populate text box on :wq

Open bloodgain opened this issue 2 years ago • 0 comments

Nvim does not populate the selected text box when exited with :wq

<Ctrl-Alt-I> brings up nvim as expected. Nvim continues to run headless when the pop-in is not visible, as verified by Task Manager. ;v also opens the nvim editor tab correctly

Hitting <CR> in insert mode on a one-line box will populate the text box. Entering :w (without q) will populate the text box.

Contrarily, when using the built-in vim, :wq populates the text box and closes the editor, while :w leaves the vim pop-in open.

It's certainly usable, and I'm quite happy it works at all, but it is inconsistent with the built-in vim, so I'm reporting it.

The only major problem is that if you forget and use :wq, you can lose the text you entered, since the nvim buffer will be reset/repopulated with what's in the text box when recalled. This is a more general issue, however, since swapping to another tab to copy some text causes the nvim pop-in to close without writing out to the text box (sometimes -- this is inconsistent). Luckily, it does maintain the undo tree, so you can usually recover most of your text with u after re-calling nvim.

Installation details: Surfingkeys 1.0.5 Google Chrome Version 99.0.4844.74 (Official Build) (64-bit) Windows 10

Neovim was set up using the instructions at https://github.com/brookhong/Surfingkeys/blob/master/src/nvim/server/Readme.md

bloodgain avatar Mar 19 '22 08:03 bloodgain