Changing repository
:sparkles: It is now possible to set a repository directly in the frontmatter with the repo
key.
Warning
- Your GitHub token must work for this repository
- The function that uploads multiple notes won’t send files to this “per-file” repository. Only the command
Upload single current active note
will work, with the autoclean if activated. You can disable it using the frontmatter!- The key works in this order:
username/repo/branch/autoclean
,username/repo/brach
,username/repo
, andrepo
. You can also use a YAML object like this:Globally, if you share only one file, all functions will be on the per-file repository instead of the global one.
Also, the settings will be the same as the global one, except for the repository settings such as image and folder.
:sparkles: You can also set multiple repositories in the frontmatter with the multipleRepo
key. It works like the repo
key, but you can set multiple repositories in a list format.
Example
In this behavior, the
autoclean
will be set tofalse
by default.
If you had configured repository in Manage other repo
you can use the shortRepo
key with the smartkey
. You can also set multiple configured repositories in a list format :
or
The key default
is reserved for the default repository. You can use it to send a file in your default repo and your other repo:
Note
is equivalent to
Frontmatter keys explanation
INFO
Yaml Object can be converted to literal string key using the
<key1>.<subkey>
format.
For example:can be written as:
Some settings can be overridden based on your frontmatter key (of the file send):
- For links conversion, using the
links
key, you can create a YAML object with:mdlinks
: to force converting to markdown links.convert
orlinks
: to remove the links and keep only the string (alt text or filename).internals
: Convert internal links to their counterpart in the website (in relative path). Disabled, links will be kept as is.nonShared
: Same as above, but for links pointing to unshared files. Disabled, links will be transformed to keep the filename. Note that you can uselinks: false
andmdlinks: true
outside the YAML object if you want to just use one option.
- Embed settings, using the
embed
key :send: false
to avoid sending the embedded files (not attachments!)remove
: Modify the aspect of the embeded files link. Can take the followed value:false
orkeep
: Leave as in Obsidian (default)true
orremove
: Remove the embeded link (replace to empty string the![[]]
or![]()
syntax)links
: Convert to markdown links (remove the!
before the link).bake
: Include the contents of the embed. Support block, heading, and entire file. Based on the plugin easy-bake. File are included as is, without markdown or html specificities.
char
: Add a character(s) before the embedded links. Used only if you set theremove
key tolinks
.
attachment
: allow per-file settings for attachments (images, pdfs, sound, video… Any attachment supported by Obsidian)send: false
to avoid sending the filesfolder
to change the default folder. Beware that changing this setting can have strange effects with autocleaning! You can, again, use a one-key setting usingattachmentLinks
for the folder andattachment: false
to avoid sending.
dataview
to override dataview settings.hardbreak
for markdown hard break.includeLinks
Allow sending file linked by simple links, like[[markdown]]
or[alias](markdown)
.baselink
: to change the base link for the copy links function. Note, using this key will disable the remove part settings. You need to use the objectcopylink
to edit the remove part, as follow:base
: to change the base linkremove
: To remove some part specific to this file.
path
: override all path settings and create a path from the root. Use/
or let it empty to set it to the root of the repository.
All of theses keys can be prepend by a smartkey (ie
smartkey.<key>
) to allow per-file-per-repository configuration.
Overriding PATH settings and behavior
path
: Same as before : override all path settings and create a path from the root. Will skip all other options.category
: Take thecategory
key from your settings (you can set the category key and also change it). Only work if thebehavior
(or the default behavior) is set to YAML.category.key
: Change the category name (for example:category.key: test
will use the propertytest
).category.value
: Alias ofdefaultName
key.
rootFolder
: Same as the root folder settings in File paths settings ;defaultName
: Default folder name for file reception, same as global setting. Only works foryaml
behavior.behavior
: Change the behavior betweenyaml
,fixed
, andobsidian
.
Quick references
Using yaml object
For multiple Repo :
Using simple name
For multiple Repo :
Default value is derivative from your settings : (settings.keys
refer to your settings)