Variable naming #59
Taitava
announced in
Notes (internal)
Replies: 1 comment 4 replies
-
Obsidian Core
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When deciding new variable names, I'd like to lean on names that other plugins, or Obsidian itself, already use. For example,
{{date:format}}
is the same that Obsidian's daily note core plugin uses in template files, and even the format part uses exactly the same syntax. I want this so that variables would be as seamless as possible to use for users when they use different parts of their Obsidian setup.I have to admit that I'm not so familiar with variables in other plugins. I created this topic so that this could contain a list of variable names that are used in core plugins and in community plugins. No matter what the variable is about or in which kind of plugin it's used in. I'd just like to have a comprehensive list.
You can conribute to this list by writing down a plugin name (with link to it's Github repository) and all of its variable names with short descriptions. Thank you very much, your help is appreciated!
Obsidian core plugins
{{content}}
{{date:FORMAT}}
{{fromTitle}}
{{newTitle}}
{{time}}
{{title}}
Search operators
block:
content:
file:
ignore-case:
line:
match-case:
path:
section:
tag:
task:
task-todo:
task-done:
Community plugins
Snippets plugin
This plugin happens to have many similar variable names as Shell commands (except
{{folder}}
).{{file_name}}
{{file_path}}
{{folder}}
{{vault_path}}
P.S. Now that I'm posting in the Notes category, I know that it's a locked category where only I can create new posts, but can for example @FelipeRearden test to write a comment here just so that I can see that others can comment here, please? If you can't comment here, please mention about it in some other discussion. Thanks! 🙂
Beta Was this translation helpful? Give feedback.
All reactions