omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Support for double square bracket wikilinks to other txt files?

    Editorial
    3
    5
    2372
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SteveMoser
      SteveMoser last edited by

      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.

      Thoughts?

      1 Reply Last reply Reply Quote 0
      • emkay
        emkay last edited by

        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:

        1. Should should the editor follow link traversal (to ensure the preview matches the currently edited file - as now)
        2. 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.

        Martin

        1 Reply Last reply Reply Quote 0
        • TutorialDoctor
          TutorialDoctor last edited by

          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.

          You can also use HTML tags in markdown, along with javascript. Of course, I am sure Python can handle it too.

          I will see if I can get it started.

          1 Reply Last reply Reply Quote 0
          • TutorialDoctor
            TutorialDoctor last edited by

            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

            [file.md](editorial://open//file.md?root=local)

            If you wanted to use Dropbox

            [file.md](editorial://open//file.md?root=dropbox)

            Looks like I have to rethink how I am going to do this. This should make things easier.

            1 Reply Last reply Reply Quote 0
            • TutorialDoctor
              TutorialDoctor last edited by

              You can also run workflows from markdown links with:

              [Format](editorial://?command=Format)

              Where "Format" after "command" is the name of the workflow.

              That workflow could open a specified document.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors