Editorial Workflows

OUTDENT line(s)

unlisted workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Removes a single tab at the start of each selected line.

(+ preserves multi-line selections for multiple OUTDENT operations)

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Set Variable ?
Variable Name
blnMulti
Value
0
Set Variable ?
Variable Name
strSeln
Value
Selected Text
If… ?
Run the block if
strSeln
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
blnMulti
Value
1
Set Variable ?
Variable Name
nSelnStart
Value
Sel. Range: Start
…End If
Generate Text ?
Text
strSeln
Find / Replace ?
Find
^\t
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Replace Selected Text ?
Replacement Text
Input
If… ?
Run the block if
blnMulti
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
1
Math ?
Expression
Sel. Range: End-nSelnStart
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
nSelnChars
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
nSelnChars
…End If