-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Support for "[text](file.md)" link syntax #42
Comments
Hello, I am here to support this request as well, I am coming from using vimwiki and needed a good vizualization tool. I was a bit disappointed it's relying on non-standard markdown url syntax and its reliance on the metadata header at the top of the markdown file. Could the reliance on the metadata header be dropped ( at least as an option that can be enabled) and instead the id of the document be the same as the filename (without the .md extension)? |
@zadirion Thank you for echoing @mcaruel's request. I had not thought about it since my short reply but we're starting a new development cycle right now, so this is a good time to have the discussion. I'm in favor of supporting A few notes:
Sorry for the long answer, I take this topic very seriously and it's sometimes hard to condense. |
Thank you @infologie for this reply. I am happy to hear that there are Cosma updates ahead. I really believe it will be a very useful tool. I support the enforcement of YAML header. Not having these information is like storing a book in your library without a reference number or an author. The more I think about the necessary features to obtain an effective research tool where information can be retrieved, the more I come to believe that metadata is as important as the note content itself ! This discussion is related to your blog post : https://www.arthurperret.fr/blog/2022-06-15-liens-wiki-et-identifiants.html. There you mention the tryptic title - filename - unique id. I like the idea of using the unique id (UID) as the primary ingredient for internal link, because UIDs are immutable, unlike filenames. This is how Zettlr works. Somehow the standard markdown syntax, does not use a UID to identify the target of a link but the filename like in text or [[filename.md|text]]. This poses the question of the usefulness of UID in the system, and the interoperability between Cosma, Zettlr or just bare .md files in folders. As I mentioned above I tend to name my files using the UID. This is robust but not very "user friendly" when it comes to finding a note directly in your disk explorer (finder on MacOS). It the latter case, having readable filenames is useful, indeed. |
@infologie Regarding your statement about [[id]] being supported by vimwiki, apologies if there's any oversight on my part, but an This means in order to get a functional link as well as a functioning cosma graph, the id has to be duplicated and maintained both in the filename and inside the file, in the yaml header, right? If that is the case, does this mean existing vimwiki users that already have notes will not be considered a target audience for cosma? since going through the notes and changing file names to ids is not really a practical proposition. |
The confusion is probably on my end, I don't use vimwiki unlike you, I only skimmed through the online documentation. What I meant to say is that vimwiki supports a wiki-like double brackets
No, Cosma's only requirement is a YAML header with a So if you have for instance a note called |
@zadirion I almost forgot to address the last sentence of your message, which was just as important:
Our target audience is either people who already use Pandoc's Markdown, and are happy to find a tool that's mostly compatible with it, or people who are fine with adopting this syntax, whether for a single project or for long term use. We don't have the resources to address other use cases. edit: Maybe we should advertise this more clearly on the website. It does say at the top of the home page "if you have a personal wiki, Zettelkasten or digital garden…", suggesting Cosma will adapt to it, which may be misleading. |
Which part of Cosma is your request about?
Describe your request:
The documentation says that wikilinks should be written like this:
[[20201209111625|une fiche]]
.I have a question: does the note id
20201209111625
should be the same as the name of the file ? I usually name the file with the id so that note id20201209111625
always refer to20201209111625.md
.Is it possible to make this kind of links
[une fiche](20201209111625.md)
also work with cosma?A remark:
[[20201209111625|une fiche]]
using the extensionwikilinks_title_after_pipe
, but for some reason it does not handle well the case where the " title" (here " une fiche") is actually a reference such as @einstein-1905 : it just displays "@einstein-1905". However when using the syntax[@einstein-1905](20201209111625.md)
, the reference is rendered correctly by Pandoc and appears as a link to the20201209111625.md
file. These different markdown syntaxes are driving me crazy !!The text was updated successfully, but these errors were encountered: