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.


    Workflow Question

    Editorial
    2
    4
    2918
    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.
    • rol46
      rol46 last edited by

      I create workflows to set tags as priorities. When I change a priority, I EXTEND to capture the whole line, then remove the old priority, then Replace what is left with the new priority at the end.

      But the tasks are initially indented by 1 tab character, and when the line is replaced, it is no longer indented. I am sure there is a simple fix for this, but I don't know what it is.

      Can anyone help?

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

        Can you share an example workflow that exposes this problem?

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

          I understand the problem differently now. Here is an example:

          Taskpaper File --
          Project:
          Task 1 @later

          There is a tab in front of Task 1

          1. Extend selection both ways start/end of line
          2. Find/Replace @later with (null)
          3. Find/Replace regular expression \s+ output (1 space)
          4. Replace Selected Text with Input @now

          Extra spaces can accumulate over time, so line 3 cleans that up. But line 3 is also replacing the tab with 1 single space, which is unfavorable behavior!

          There must be a way to fix this.

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

            I solved the problem by find/replace tab with # before doing the find/replace \s+, and after I got rid of excess space, I reverse the fine/replace.

            It's a good solution, and if there are 2 or more tabs, it correctly replaces them.

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