Editorial Workflows

MOVE UP

public 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: MOVE UP: move selected lines(s) up 1 row

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
nStart
Value
Sel. Range: Start
If… ?
Run the block if
nStart
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0
Set Variable ?
Variable Name
nEnd
Value
Sel. Range: End
Math ?
Expression
nEnd-nStart
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
nBlockChars
Set Variable ?
Variable Name
strBlock
Value
Selected Text
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Set Variable ?
Variable Name
nPrevStart
Value
Sel. Range: Start
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Set Variable ?
Variable Name
strPrevLine
Value
Selected Text
Select Range ?
Range (from:to)
nPrevStart:nEnd
Relative to
  • Entire Document
  • Current Selection
Replace Selected Text ?
Replacement Text
strBlock strPrevLine
Select Range ?
Range (from:to)
nPrevStart:nPrevStart+nBlockChars
Relative to
  • Entire Document
  • Current Selection
…End If