Skip to content

How to remember previously inserted text across snippet expansions #1423

@oiiiiiiii

Description

@oiiiiiiii

Is there a way to remember what was inserted in a snippet node and have it as placeholder the next time the snippet is triggered? The restore node doesn't seem to work across expansions. What I want is something like that: I have a snippet that expands to

abc(|default_placeholder|)

where "|" marks the select mode selection. Now I type something so I get

abc(my_text)

Next time I trigger the snippet I would then like to have "myText" as a placeholder

abc(|my_text|)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions