JRasmusBm / vim-peculiar

37 stars 0 forks source link

Can you please document the new prompt? #9

Open s1n7ax opened 3 years ago

s1n7ax commented 3 years ago

Doesn't seem to be working correctly on neovim. For example if I run <Plug>PeculiarV it directly trigger the command 1,2v//call peculiar#prompt() without taking the text object from the prompt.

JRasmusBm commented 3 years ago

I updated the prompt in #6 to allow for incsearch (see #5), it works just as before though. Try typing in the search and pressing enter. It should work just fine. (I am also on neovim)!

Thank you for your question, and sorry for the poor documentation of the change! 😇

JRasmusBm commented 3 years ago

Can you confirm that it is working? i.e.

  1. That after running the mapping and submitting a text object (by making a motion) you are prompted with l1,l2v//call peculiar#prompt() where l1 is the first line and l2 the last line of the text object.
  2. That your cursor is between the // so you can type a search
  3. That when you press enter, you get taken to the prompt with call peculiar#prompt() replaced with norm and the cursor at the end so you can type a command
  4. If you type a command and press enter, your command is against the matching lines

This is the new prompt for PeculiarG and PeculiarV. The change was made to allow for native vim incremental search highlighting. 😄