omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. AlexKucera

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    AlexKucera

    @AlexKucera

    0
    Reputation
    551
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    AlexKucera Unfollow Follow

    Latest posts made by AlexKucera

    • Regex not working

      I'm trying to filter out lines that contain a date string so I can present them as a list.

      The lines that I am looking for are formatted as "YYYY-MM-DD — Sometext". When I filter lines for the exact date string it works fine. However, I have varying dates, obviously, so I came up with this simple RegEx "\d{4}.\d{2}.\d{2}...". Now nothing gets found. In fact, not even \d finds anything.

      What am I doing wrong? All the online RegEx testers I've tried say that my syntax is correct.

      posted in Editorial
      AlexKucera
      AlexKucera
    • Getting selection between two headers (or other bracketing symbols)

      I'm trying to build a workflow that allows me to extract the text between two headings into a new document. However, I have no idea how to automate the selection process.

      Right now I present a list of headings, where the user can select a heading that he wants to extract into a new document. That gets me the selection start. For the end of my selection, I currently present the same list and one simply clicks on the next heading.

      Ideally, I want to omit that second list and simply grab everything from the selection start to the next heading. I just have no idea how to get there. I assume a Python script is the way to go. No idea how to go about it though.

      posted in Editorial
      AlexKucera
      AlexKucera
    • RE: Getting selection between two headers (or other bracketing symbols)

      Got it to work with a Python script that does a re.search for a multiline RegEx and then outputting the resulting index with re.search.start().

      posted in Editorial
      AlexKucera
      AlexKucera
    • RE: Regex not working

      Thanks Ole. Works perfectly now. A hint in the manual would be nice.

      posted in Editorial
      AlexKucera
      AlexKucera
    • Open Workflow from another workflow only works sometimes

      Hi guys,

      I have a workflow that cleans up a string and turns it into a URL for my blog. I also have a workflow that turns a Markdown document into a blog post. I'd like to run the URL workflow from my post workflow to get the correct filename for my document. However, this does not seem to work reliably—or at all, really.

      I call the URL workflow as such: editorial://?command=create%20blog%20URL&input=[Input] with "Open in" set to Default App (I also tried in-app browser).

      The workflow is supposed to return the result on the clipboard, but that doesn't seem to work inside a workflow. When I run the URL workflow via x-callback from Drafts it performs as intended every time.

      Of course, the simple solution would be to just incorporate my URL workflow into my post workflow. But I'd rather have them separated as I like to call the URL workflow on its own at times. And keeping both in sync, if I were to duplicate it inside my post workflow, seems like asking for trouble.

      posted in Editorial
      AlexKucera
      AlexKucera
    • RE: Open Workflow from another workflow only works sometimes

      I see. Then I will have to rethink my approach. Thanks Moritz.

      posted in Editorial
      AlexKucera
      AlexKucera
    • RE: Snippet and Workflow management

      Probably something that could be built with Editorial on-board tools.

      posted in Editorial
      AlexKucera
      AlexKucera
    • RE: Snippet and Workflow management

      A simple Dropbox backup seems like a good solution. Kind of like podcatchers allow you to export everything as OPML. There could be a button that exports everything or everything that is not default to a single backup file or alternatively into a folder with one file per workflow for selective re-import.

      posted in Editorial
      AlexKucera
      AlexKucera