Support for double square bracket wikilinks to other txt files?
I was wondering if support for double square bracket WikiLinks is in the road map. I enjoy keeping a markdown wiki with Gollum through Github or Bitbucket and with nvAlt on my desktop and they all support linking to other text files in the same folder or sub-folders by referencing the name of the txt, md, or markdown file between double square brackets.
This is a feature I would love.
I currently use my own workflow for a markdown HTML preview with links. However, I would rather use the standard Editorial preview (with its standard interface and custom markdown formatting). So it would be great if links were supported in the preview.
There is an issue that would have to be resolved though. The preview previews the current editor file, so there are two choices:
- Should should the editor follow link traversal (to ensure the preview matches the currently edited file - as now)
- Or should the link traversal be independent of the editor's file (that is how my HTML workflow works)
I prefer the second option as it allows me to browse my notes, but realise this doesn't fit with the current preview paradigm.
Either way, this feature would be great.
This can be done using an "Open Document" action and using RegEX to find any text with a particular extension and then opening the corresponding document.
I will see if I can get it started.
Someone named whyldkard made a workflow called Wiki Links.
What I have also discovered is that the following will open a local file with a markdown link
If you wanted to use Dropbox
Looks like I have to rethink how I am going to do this. This should make things easier.
You can also run workflows from markdown links with:
Where "Format" after "command" is the name of the workflow.
That workflow could open a specified document.