Provide the user with the choice between:
"title" (default) - Title only
"uuid" - UUID only
"uuid-title" - Title prefixed by UUID
"title-uuid" - Title suffixed with UUID
We were previously only returning a uuid if the user wanted to include
them in their filenames, which meant that they couldn't be included in
the template itself.
* Allow media picker to yank relative image links
* Make stylua happy
* Fix for image paste as well
* Try to get more consistent relative path behavior
* Supply absolute paths to make_relative_path
* Add relative link handling for InsertImgLink
* fix: note title ending removed when it matches parts of extension
By using [] we provide a character set rather than a direct match with ().
Lua patterns don't allow N-captures with (), so we continue executing
the pattern until there are no more substitutions being executed.
fixes#118
* fix: refactor extension stripping from title
Don't worry about n-capture, once is enough.
Turned it into a fn so it can be used elsewhere.
refs #118
Added the function `CleanPath()` to clean up Windows paths for setting up home. Still some other issues (primarily with reading links) that need to be ironed out.
The function CleanPath() cleans up the file paths for Windows users. Removes all content of the path up to the first `\\`, which should fix the issues related to Windows file paths.
- Old file properly deleted after renaming no matter where we are in the
zettelkasten tree.
- Workaround links with `#heading` and `#^paragraph` by only looking for
the first elements of the link. Ideally it should be a proper regex