-
Notifications
You must be signed in to change notification settings - Fork 298
Oni completions are not dot repeatable #2501
Comments
I think this is covered over in #1200, but it is getting more and more on my nerves. Its possible we just need to look into the nvim API a bit more and see if we can have macros replay msgpack calls, or have nvim core decode the msgpack call and have its contents as part of the macros. I'll closes this out for now. |
Would https://github.com/tpope/vim-repeat apply here? |
@vlcinsky Maybe? I'm already using it but maybe it needs to be integrated on Oni's side internally |
I don't think so @vlcinsky. To my knowledge (mainly from the other ticket, but also from a bit of the code), the issue is more that technically two types of input are happening, which macros, That is, normal keyboard input, as well as changes to the buffer via the neovim API. I'd assume that vim-repeat also has no knowledge of the neovim API (since its neovim specific) either, which is the main issue. We'd either need to:
Not too sure what the easiest fix for all this is to be honest...or how other nvim UIs have dealt with it/if they've encountered it. Its possible we just need to implement some of this sort of logic in the vimscript layer, but we are trying to not have too much of that. |
I wonder if potential other solution could be that rather than having oni's autocomplete menu completely sidestep vim's popup we could actually just populate the vim's completion menu with the language server results like This could also make way for having vim and oni completion combined (but differentiated), though this sort of a change would definitely need some input from @bryphe as he may not like the idea? |
Oni Version: 0.3.6
Operating System: MacOS 10.13.6
Issue:
When selecting a completion from the suggestion list, after autocompleting, it can't be dot repeatable
Expected behavior:
Autocomplete a word and dot repeat will insert the whole word again
Actual behavior:
The first word autocomplete and dot repeating will only insert the manually typed in portion of the completion
Steps to reproduce:
const fooBar;
foo
a suggestion will appear<Enter>
, fooBar will be completed..
and onlyfoo
will be repeated.The text was updated successfully, but these errors were encountered: