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

[feature request] Allow page-specific rules and metadata placeholders #3

Open
kzhovn opened this issue Jun 5, 2022 · 1 comment
Open

Comments

@kzhovn
Copy link

kzhovn commented Jun 5, 2022

My usecase: in notes for projects that have an associated public github repo, I want to be able to link issues via the standard #issuenum syntax. I don't want this rule to fire anywhere else.

The implementation I was imagining was setting a cssclass for which the rule is active, and then allowing a rule to grab metadata via a placeholder like {{meta:FieldName}} (MetaEdit's API could help with this). The final rule would looks something like

cssclass: github-project
regex: #([0-9]+)
link: {{meta:repo-url}}/issue/($1)

I do something similar in URI Commands, though without setting a cssclass, and might be up for implementing this a little later if you think it's in scope.

@27escape
Copy link

27escape commented Jun 6, 2022

Being able to link to a file or directory within the current vault would be really useful to me too - thanks

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