Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Snippets inside snippets #311

Open
shadowsama25 opened this issue Dec 1, 2020 · 1 comment
Open

Snippets inside snippets #311

shadowsama25 opened this issue Dec 1, 2020 · 1 comment

Comments

@shadowsama25
Copy link

Summary

Hi, I don't know if it's a bug or a feature missing but when I load a snippet and I want to load another one inside, the previous markup ($1 $2 ...) are not working anymore. So, it would be great if we can load another custom snippets inside a current one without losing the mark. Thanks.

Motivation

Describe alternatives you've considered

Additional context

@levipmartin
Copy link

This would be nice! My issue with this is basically the opposite if I load a snippet and I type something inside that could trigger another snippet I lose the mark as well.

The issue seems related thus it might be a good idea to put this here as well.

For example:
In latex math mode, I type 'bb' to trigger: \mathbb{$1}$0 now my cursor is on position $1, I want to write the letter 'R' only.
Now my snippets suggest every snippet that starts with 'R' or 'r', this is okay, BUT if I press ESC to tell Atom that I don't want a snippet there I also lose the $0. If I decide to press tab I get the unwanted 2nd snippet expansion and lose $0.
If I just type bb and press tab twice it works. I'm in $1 and 2nd press jumps to $0.

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

No branches or pull requests

2 participants