philippe::niquille | irregular niche market thoughts

Leopard QuickLook tricks

Nov 29th 2007
No Comments
respond
trackback

Use Quick Look from within a shell
Add this code to your /Users//.bash_profile - credit goes to this blog. I really love the “qlt” function since it opens any filetype as clear text (ex. open .conf, nfo, whatever). Add additional filetypes by editing the config.

# Display files in Quick Look
function ql ()
{
(qlmanage -p “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}
# Display any filetype as plain text
function qlt ()
{
(qlmanage -p -c public.plain-text “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}

Extend Quicklook with Plugins
Personally I like the Zip and TextMate extensions, but there’s more (or build your own).

No Comments

Leave a Reply