showing prefix char in command mode input view#506
Conversation
|
Oh this conflicts with search history. |
|
Also we might want to prevent the cursor being moved to the beginning when prefixChar is presented. |
|
Now all specs are passed. |
|
I resurrected this branch to evaluate it: https://github.com/bronson/vim-mode/commits/prefix-char It looks like #582 has blown it away. It would probably be easier to rewrite the patch than to resolve the merge conflicts. I don't understand why this was never reviewed. :( |
|
It would be nice if these features could be reviewed along with what https://github.com/lloeki/ex-mode is doing with the commands. I added a similar request to that package (lloeki/ex-mode#61) to add : to the start of the command input, as a visual indication of command input. If vim-mode and ex-mode merged together, then these requests would be better handled IMO. Vim uses / for search but :%s for search & replace, and both should ideally be handled together. It might also save a lot of work supporting things like search history commands. |
|
As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions! |
This patch adds a 'prefix' to the command mode input when necessary.
And currently only the
/motion is supported, any other motion we should support?When '/' is pressed, '/' is shown in the beginning of the input, and when '/' is removed, the motion is cancelled naturally.
But this is not perfect, since we can select & paste the prefix, which is not possible in vim. We might want to disable selection of the command mode input.
I think with this, we can easily support some command-line mode commands (
:commands)?