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
Canonical’s recipe for High Performance Computing
In essence, High Performance Computing (HPC) is quite simple. Speed and scale. In practice, the concept is quite complex and hard to achieve. It is not...
Web team – hack week 2023
Today, around 96% of software projects utilize open source in some way. The web team here at Canonical is passionate about Open source. We lead with an...
Vanilla 4.0 release
Last week we released a new major version of the Vanilla framework. Vanilla 4.0 introduces the elements of the new style used for a current rebranding of...