-
Notifications
You must be signed in to change notification settings - Fork 373
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
[Feature request] Escape next press #335
Comments
' should already skip completion in a word. Can you |
Exactly my thoughts. Here's the output of
Perhaps there's some option that I didn't set. Here's my current config:
Also, I found the |
Looks like I got confused by which repo did what. I've added a buffer variant to my fork, which should work. (Note that there's a bit of config migration). As a side-note, The '-completion problem is a bit more of a mystery though, because it should work. Can you |
I'm changing to that fork immediately then :)
Nice feature! Didn't knew about that one, as I always move outside of the brackets manually (with a custom insert mode keybind to move the cursor). Gonna start using the "move outside" bindings more then.
Interestingly, there isn't:
|
... That's because I did yet another dumb. I meant |
Bad on my part actually! I've just tested the apostrophe feature, and it works correctly, so What most likely happened is that I was using a different auto closing plugin not long ago, and I thought this problem happened here when actually it happened on that other plugin. My bad! |
No worries! Mistakes happen :) I have to see how my workload balances out, but I'll try to take a look at the temporary toggle this evening. I'll mention this issue in the applicable commit when I get that far though. |
Needs tests and a couple minor tweaks for automatically disabling, but should be good. And in case the feature suggester reads this commit, sorry it took a couple days, my workload didn't balance out nicely :')
This is now available (experimentally, for now) on the master branch, using Need to make a few more changes, but I expect to deploy it to stable either later today or tomorrow. |
Already tested for a bit, and it seems to be working very well. Thanks for the feature! |
In most situations, I want
auto-pairs
to do exactly what it does: complete the pair for me. However, in some situations I actually want it to simply type the character.As an example, if I type
Sam's car
, I will end up with "Sam's car'
", forcing me to manually delete the last apostrophe. In the same vein, when I want to make a "[ ]
" for neorg's todo list, I always end up with double spaces in the middle, again forcing me to delete it. There's also the off chance that I want to type another closing bracket inside of()
, instead of moving to the outside.In these situations, I don't necessarily want to toggle off
auto-pairs
. In the first case, I don't want it to complete the apostrophe, but I may want it to complete some brackets later. In the second one, I actually want it to complete the square bracket, just not the space.It'd be nice if there was an option in which you could set a keybinding, say
<c-e>
, and it'd escape the next character forauto-pairs
. So, for example, typingSam<c-e>'s car
would result in "Sam's car
", typing[<c-e><space>
would result in "[ ]
", and typing(<c-e>)
would result in "())
".The text was updated successfully, but these errors were encountered: