Skip to content
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

Autopair ignores an escaped character and pairs a quotemark. #11

Open
gregorias opened this issue Apr 5, 2023 · 1 comment
Open

Autopair ignores an escaped character and pairs a quotemark. #11

gregorias opened this issue Apr 5, 2023 · 1 comment

Comments

@gregorias
Copy link

Reproduction steps

  1. Write echo 'Let\'* (* stands for the cursor).
  2. Type '.
  3. Autopairs pairs the quotemark and the state ends up as echo 'Let\''*'.

Expected behavior

The shell should end up as echo 'Let\''*.

@lumynou5
Copy link

lumynou5 commented Jun 2, 2023

I expect it doesn't skip the closing symbol like (keys pressed -> character inputted):

  1. 'Let\ -> 'Let\*'
  2. ' -> 'Let\'*' instead of 'Let\'*

I think rather than your suggestion this makes a better experience of typing escaped quote marks, since it doesn't need to move the cursor to type more ('Let\''* + left -> 'Let\'*').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants