-
Obsidian is a really popular note taking app which works on top of markdown files. It follows the same general philosophy as markor - work on plain text files in a native directory tree. As many users use Markor together with Obsidian, it would be nice to try to get them to play well together where possible and resonable. I am opening this discussion as a place to pull together
Just to make this clear I do not want to turn Markor into some sort of Obsidian client (and I am pretty sure @gsantner wouldn't agree anyway). For example, I see no need to support obsidian style links alongside regular markdown style links. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
How to imitate Obsidian's daily note feature: Markor will execute any JS code in a script tags when you switch to view mode I use the following code to open a file with today's date in the current folder. If the file does not exist it will be created. You can modify this to open a new file in the current folder with any programmatically generated name. If you want a new unique name you could use seconds or a UUID <script>
let anchor = document.createElement('a');
// This asinine approach is from https://stackoverflow.com/a/28149561
// offset in milliseconds
let offset = (new Date()).getTimezoneOffset() * 60000;
let iso = (new Date(Date.now() - offset)).toISOString()
let today = iso.split('T')[0]
let textNode = document.createTextNode("Today's worklog");
// Append the textNode as a child to anchor.
anchor.appendChild(textNode);
anchor.href = "./" + today + ".md";
anchor.style.fontSize = "x-large";
document.body.appendChild(anchor);
window.location.href = anchor.href
</script> |
Beta Was this translation helpful? Give feedback.
-
Like mentioned, yes I don't want to turn Markor in Obsidian software. While Obsidian also happens to use Markdown, it is commercial software and has a lot of vendor specific (Obsidian specific) functionalities that are not available with most other Markdown software/parsers/clients. Obsidian has their own non-open-source client software, maintains it on their own and can pay employees to do so. BUT yes of course collecting some relevant information here is a good idea 😄 . |
Beta Was this translation helpful? Give feedback.
-
Obsidian is quite plugin and sync friendly but I can imagine that would be a huge burden for Markor maintenance. I wonder if Markor could support some kind of an intent broadcast, so that we could get other software (like Tasker, Llama Automate) to listen and do 'something' based on that event. Example, we could listen for the "file saved" event and kick off a script to sync the files to github, gdrive, etc. This would remove the burden of becoming a sync tool or plugin tool on Markor, and the broadcast just serves as a handoff. I've been doing something similar with my own app. |
Beta Was this translation helpful? Give feedback.
Like mentioned, yes I don't want to turn Markor in Obsidian software. While Obsidian also happens to use Markdown, it is commercial software and has a lot of vendor specific (Obsidian specific) functionalities that are not available with most other Markdown software/parsers/clients. Obsidian has their own non-open-source client software, maintains it on their own and can pay employees to do so.
BUT yes of course collecting some relevant information here is a good idea 😄 .