-
Notifications
You must be signed in to change notification settings - Fork 28
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
Adding annotations to user dictionary entries seems to be glitchy #235
Comments
reproduced. |
I think empty enter is the better way to cancel. |
The twice reason: The first cancel is adding an entry. |
I get the reason. It seems bug. But it is hard to fix... |
Reason. If you input annotation, the eskk is disabled to input |
If in |
I have workaround fixed. |
Great. Regarding the cancelling thing. It appears Then I press any of those: And for me the last state looks like it's asking for something else (after all, the cursor is still at the command bar), although in a weird way (empty prompt). Now I see, that at this point I can just continue typing. Without I'm not sure, but it might be just how |
Yes. I know the behavior. But I don't know it can be fixed. |
But it's introduced by |
Yes. I think it is langmap behavior. |
I've been doing it in my free time for a while now :) I'd like to find the cause so if you have any pointers... I've got a hunch that after |
I have not pointers unfortunately, |
The issue comes down to this:
function! F1()
call input('> ')
redraw
echo ''
return ''
endfunction
inoremap <expr> a F1()
Then press Coming back to Now, I'm not sure why it should be
P.S. How do you run the tests? |
It is to clear the You can test it by to remove the redraw and echo. |
The problem seem only neovim. So it cannot fix it in eskk.vim side. You should report the problem in neovim issues instead. |
I have disabled the clear command line in neovim. |
Let us see what P.S. I believe returning the cursor back to the buffer is more important than clearing the command line. But I must admit, that my solution to that doesn't look beautiful. Maybe together with |
Sorry for very late response... |
Thank you! |
To be honest, I hoped we could come up with a better solution. I can't help but feel that On a side note, @tyru, are the tests still runnable? How do I run them? |
I have said it is to clear the command line. |
I probably wasn't clear enough. Let's take
That is, Having that said, P.S. The |
OK. |
I have removed the redraw. |
That's me again :) Hopefully you haven't got tired of my issues.
I must admit, I don't have the need to add custom entries yet. It's just that this prompt pops up every now and then, and I don't really know what I'm supposed to do, other than pressing
Esc
/Ctrl-c
(somehow) twice. I didn't. Right now I think I get the hang of it for the most part. But it doesn't seem to always work properly.Disclaimer. I'm going to use (supposedly) imaginary words.
I type,
;asuri<Space>
, it asks me for the converted version, I type,;asu<Space>ri<CR>
. This way it works.Now let's try to add an annotation:
;asuri<Space>
,;asu<Space>ri<Ctrl-j>;annotation<CR>
. It adds the word all right, but when I pressEnter
,▽
is still in the buffer, and it doesn't seem like it finished properly. Am I doing it wrong? Missing something?On a side note, is there an easier (than double-
Esc
/Ctrl-c
) way to cancel adding an entry?The text was updated successfully, but these errors were encountered: