Hello
I added new options, including sharing the entire vault and mobile.
Mobile is intended to be used with IOS shortcuts.
usage: obs2mk [-h] [--git | --mobile] [--meta] [--keep] [--config]
[--force] [--filepath FILEPATH | --ignore]
Create file in docs and relative folder, move image in assets, convert
admonition code_blocks, add links and push.
optional arguments:
-h, --help show this help message and exit
--git, --g, --G No commit and no push to git
--mobile, --shortcuts, --s, --S
Use mobile shortcuts fonction without push.
--meta, --m, --M Update the frontmatter with link
--keep, --k, --K Keep deleted file from vault and removed shared file
--config, --c, --C Edit the config file
--force, --d, --D Force conversion - only work if path not specified
--filepath FILEPATH, --f FILEPATH
Filepath of the file you want to convert
--ignore, --ignore-share, --no-share, --i, --vault
Convert the entire vault without relying on share
state.
Share the entire vault
Using the command --ignore will ignore the share state : you can share your entire vault using that, whatever the state is. By default, it will not overwrite file already exist (and not different), so the --force option can also be used.
usage: obs2mk [-h] [--git | --mobile] [--meta] [--keep] [--config] [--force] [--ignore]
Mobile option
The mobile option is similar to the git option but with some nuance. When used to publish a single file, you can use only the file name, without the path.
Be careful though, in case you have several files with the same name, the script will take the first file found.
This option can be used, especially with the “Shortcuts” application on IOS, to share a file directly from the share sheet.
One file usage : obs2mk --mobile --f "filename"
All file usage : obs2mk --mobile
Mobile supports all previous option, including --ignore.