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

Named backrefmarkers #16

Open
joereynolds opened this issue Oct 9, 2017 · 0 comments
Open

Named backrefmarkers #16

joereynolds opened this issue Oct 9, 2017 · 0 comments

Comments

@joereynolds
Copy link

joereynolds commented Oct 9, 2017

Currently, the backrefmarkers are notated like so {{+~\1~+}} which roughly translates to

it will be replaced with the nth to last previous placeholder value, surrounded by quotes.

I think named backrefmarkers would be much more readable and quicker to create snippets.

For example, given this snippet file:

So your name is {{+name+}}?
How are you doing {{+name+}}?

In this case both instances of {{+name+}} should be replaced with the same value.

Given that this is syntax is already in use as placeholder text, perhaps this syntax could work instead;

{{+[name]+}}

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

1 participant