This bundle allows you to conveniently preview dot files in a OSX QuickLook preview.
-
The dot binary is a pre-requisite. Install it from http://www.graphviz.org
-
To be sure install a symbolic link in your Terminal
ln -s `which dot` /usr/bin/dot
-
Download the current version of the plugin from the "Downloads" section
-
Copy the QuickLook plugin bundle with the
.qlgenerator
ending to the folder~/Library/QuickLook
(Create the folder, if it does not exist)
-
You should be able to preview your
.dot
or.gv
files using the space key in Finder. -
You also see a preview if your file is selected and if you are in column mode (`⌘+ 3).
-
You can use a simple
HelloWorld.dot
digraph G{ Hello -> World this -> is -> a -> test }
Git repository: git@github.com:besi/quicklook-dot.git
Debugging
defaults write -g QLEnableLogging YES
# Create preview from the command line
qlmanage -p ~/Dropbox/projects/OSX/quicklook-dot/sample.dot
- DOT on Wikipedia
- Graphviz DOT Gallery
- quicklook-dot was inpired by qlmarkdown