m4xshen/autoclose.nvim

ADD new move

Closed this issue · 8 comments

NEX-S commented

For example:

#include "stdio.h|"               press  "                    #include "stdio.h"|
#include <stdio.h|>             press  >                   #include <stdio.h>|
etc...

This feature was added in the latest commit 3d3ddb8. Thank you for the feedback.

NEX-S commented

seems it's not working in ' " I dont know why :(

NEX-S commented

btw I have tested it out, I found normal r will add additional spaces in the end of line. Maybe we need to use <right> to let cursor move to right and avoid using nomal r to implement this feature?

Fix these bugs in c283288. Feel free to give me more feedback.

NEX-S commented

thanks! It's lot more light than nvim-autopairs, now I can finally get rid of that plugin :D

wish you have a good day sir :)

NEX-S commented

oh, I find something weird,
in the cases that has been already matched like [ [ ] " " " ' ' ' (() { { }, we dont want autoclose.nvim to delete both signs for us
for example:

|  <------- Cursor
#include "stdio.h"|"

as we can see, "stdio.h"|" have a pair that already matched ( "stdio.h"|), if we press <BS> at |, it will delete the both sign for us.
In this cases, we might not wish to delete both sign :D

Oh... I see. Could you please open a new issue? This is different to the previous issues.

NEX-S commented

okay