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.


    Getting current paragraph

    Editorial
    2
    2
    2086
    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.
    • mcsquaredjr148
      mcsquaredjr148 last edited by

      Is it possible to get current paragraph's text without having to select it? Is it possible to get the current caret position?

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

        You can use the Get Selected Text action with the Entire Line(s) option to get the current paragraph. To get the caret position (as a 0-based index), you can use the Sel. Range: Start variable (in the Editor... section).

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