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

Add Insert mode command and <Plug> keybind again #23

Open
w0rp opened this issue Feb 18, 2023 · 0 comments
Open

Add Insert mode command and <Plug> keybind again #23

w0rp opened this issue Feb 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@w0rp
Copy link
Member

w0rp commented Feb 18, 2023

An early test version of this plugin had an Insert mode command. We should add it back again, with the following additions.

  1. Running the command should make it easy to enter the prompt without "leaving" Insert mode.
  2. We should modify Neural to insert text where the user's cursor is in Insert mode, no matter where it moves to.
  3. We should detect the user leaving Insert mode and automatically cancel Neural's text input if the user does.

If we set it up this way, it will be very easy to just add some text to a Vim buffer. If we run into issues with entering text into command, we could make it so you type characters and press enter whilst in insert mode, and we replace that text with the results of the prompt. We also have the option of implementing insert mode prompting that way anyway if it turns out to be nice.

@w0rp w0rp added the enhancement New feature or request label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant