Code Monkey home page Code Monkey logo

qlprettypatch's Introduction

QLPrettyPatch

QLPrettyPatch is a QuickLook generator for patch files.

Once installed, you can select patch file attachments in an email or patch files in Finder, hit spacebar and get a colorized/prettified representation of the patch.

From the Terminal, you can also run qlmanage -p /path/to/my.patch to open the patch in a QuickLook preview pane.

Example patch file QuickLook preview

Installation

There are two options for installation:

  1. To install a pre-built copy, head to the Releases page and download the latest QLPrettyPatch.qlgenerator.zip file. Unzip the archive, and copy QLPrettyPatch.qlgenerator to ~/Library/QuickLook/.
  2. To build your own copy, clone the project, open QLPrettyPatch.xcproj in Xcode and build the Install target. The build product will automatically be copied to ~/Library/QuickLook/QLPrettyPatch.qlgeneator.

Credits

QLPrettyPatch uses the incredibly useful PrettyPatch formatter, which is used by the patch review system on bugs.webkit.org.

If you find yourself sending emails with patch attachments and want to include a prettified version of the patch in the email body, you should take a look at my atnan/purdypatch command line tool. It uses the same underlying formatter as this QuickLook generator.

qlprettypatch's People

Contributors

atnan avatar

Watchers

 avatar

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.