Coder Social home page Coder Social logo

ulysses-clean-sheet's Introduction

Ulysses-Clean-Sheet

Ulysses III: Dirty sheets?

Sometimes, after copying from web-pages and pasting with Ulysses excellent "Paste from Rich Text", you get too few or too many blank lines. This script cleans and irons out the wrinkles. Test it out!

Does not change your original sheet, just opens a cleaned copy in the Inbox (iCloud)

Drag sheet from Ulysses III's sheet list to Ulysses-Clean-Sheet folder on Desktop.
Python script fixes blank lines and double spaces, and deliver clean sheet back in Inbox.

Use Hazel for smooth laundry service :)

Script setup in Hazel? Click here and here

Need RegEx Find & Replace?

Add two lines at top of sheet in UL codeblocks:
'' find:regex-pattern
'' repl:replace-pattern

Then drag sheet as above.

Attributes (in link, image, and video) and Attachments are left untouched.

Example:

Change to US date format (2014-05-09 -> 05/09/2014):
'' find:(\d{4})-(\d{2})-(\d{2})
'' repl:\2/\3/\1

For info on RegEx patterns, see: Python 3.3 RegEx

Note: Does either Clean Blank Lines or RegEx, not both in the same run.

ulysses-clean-sheet's People

Watchers

Max Seelemann avatar James Cloos avatar  avatar

Forkers

frankkooij

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.