Quickly Run with a Ctrl+R Keyboard Shortcut in Gedit
Canonical
on 11 June 2010
Tags: Design , programming
It was a bit fiddly, but here's something that works:
In Gedit go to Tools=>Manage External Tools...
Then add this:

Here's the code:
#!/bin/sh
EHOME=`echo $HOME | sed "s/#/\#/"`
DIR=$GEDIT_CURRENT_DOCUMENT_DIR
while test "$DIR" != "/"; do
if [ -f "${DIR}/setup.py" ]; then
echo "Using quickly from ${DIR}" | sed "s#$EHOME#~#" > /dev/stderr
cd ${DIR}
quickly run
exit
fi
DIR=`dirname "${DIR}"`
done
echo "Couldn't find Quickly project folder!" > /dev/stderr
Hope this helps you too.
Talk to us today
Interested in running Ubuntu in your organisation?
Newsletter signup
Related posts
Decoding design: How design and engineering thrive together in open source
Open source thrives on engineering-driven processes. Fast feedback loops, terminal tools, Git workflows: they’re the lifeblood of how we build software in the...
Why web engineering is great
Hi, I’m Johann! I’m an engineering manager in Canonical’s web team. For the larger part of my 15 years of work experience as engineer, I’ve been working in...
From inspiration to impact: design students from Regent’s University London explore open design for their dissertation projects
Last year, we had the opportunity to speak at Regent’s UX Conference (Regent’s University London’s conference to showcase UX work by staff, students, and...