Deletion script request

Hi all,

I would like to create buttons (scripts) that would:

• delete everything in a draft from the cursor to the end of a draft

• delete everything from the beginning of a draft to the cursor

• delete the current line/paragraph

Thank you,
Tim
15,584 days

I think these do what you want and put the cursor in a reasonable place when they’re done. For safety, I’ve set them up so they don’t do anything if text is selected.

Delete from here to end: https://actions.getdrafts.com/a/13u

Delete from here to beginning: https://actions.getdrafts.com/a/13v

Delete this line: https://actions.getdrafts.com/a/13w

2 Likes

Those all work great. Thank you very much!

Tim
15,584 days

Icons included, too!