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

Wrong cursor position after inserting a snippet #62

Open
scruel opened this issue Jan 29, 2023 · 5 comments
Open

Wrong cursor position after inserting a snippet #62

scruel opened this issue Jan 29, 2023 · 5 comments

Comments

@scruel
Copy link

scruel commented Jan 29, 2023

Try the following snippet:

test : ##`$end$`$nl$

The cursor won't be placed as it should be.

By the way, the section about the difference between “Stop Symbol” and “Cursor end position mark” is a little vague, can you describe it in more detail? Thanks.

@antsam23
Copy link

Hi, if you want the cursor in a specific position you have to use the Stop Symbol feature. I've just tried it.

@scruel
Copy link
Author

scruel commented Jun 2, 2023

Hi, if you want the cursor in a specific position you have to use the Stop Symbol feature. I've just tried it.

$end$ is not the "stop symbol" you mentioned in your reply??
Also tried $tb$, it won't work as I excepted, the cursor will be placed before `` instead of be placed in it.

@antsam23
Copy link

antsam23 commented Jun 2, 2023

Hi, I show you an example:
html : ```html$nl$$tb$$nl$```
I type html and press my shortcut. It's important to repeat the dollar symbols when you concatenate multiple operators.

  1. add ```html in the first line
  2. insert a new line with $nl$
  3. set cursor position here with $tb$
  4. insert a new line with $nl$
  5. close my code block adding ```

@scruel
Copy link
Author

scruel commented Jun 3, 2023

@antsam23 Please do not fork an issue, your reply is not related...

@antsam23
Copy link

antsam23 commented Jun 3, 2023

I just wanted to help, and it works for me

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