---
title: Quickly Run with a Ctrl+R Keyboard Shortcut in Gedit
description: I’m all about workflow, so the first thing I wanted to do when trying
  quickly was to make sure I could hit a keyboard shortcut to build and run from within
  my editor.It was a bit fiddly, but here’s something that works:In Gedit go to Tools=>Mana
  […]
url: https://canonical.com/blog/quickly-run-with-a-ctrlr-keyboard-shortcut-in-gedit
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Canonical](https://canonical.com/blog/author/canonical "More about Canonical")

11 June 2010

# Quickly Run with a Ctrl+R Keyboard Shortcut in Gedit

[Design](https://canonical.com/blog/tag/design)
[programming](https://canonical.com/blog/tag/programming)

---

Share the article
I'm all about workflow, so the first thing I wanted to do when trying [quickly](http://launchpad.net/quickly) was to make sure I could hit a keyboard shortcut to build and run from within my editor.

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.

[source: mikebuntu.blogger.com](http://mikebuntu.blogspot.com)

[Get in touch

Interested in running Ubuntu in your organization?](https://ubuntu.com/about/contact-us/form)

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

In submitting this form, I confirm that I have read and agree to
[Canonical's Privacy Notice](https://canonical.com/legal/data-privacy/contact)
and [Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

## Share on

---

## Related posts

[### From documentation to design thinking: lessons from Canonical’s Design Academy](https://canonical.com/blog/from-documentation-to-design-thinking-lessons-from-canonicals-design-academy)

Technical Authors at Canonical design experiences: they organize complex information, guide users through unfamiliar systems, and translate technical detail into something...

[Miguel Divo](https://canonical.com/blog/author/mdivo)

18 November 2026

[### Designing a better future: your guide to design contribution in Open Source](https://canonical.com/blog/designing-a-better-future-your-guide-to-design-contribution-in-open-source)

This guide covers why design matters in open source, and how designers can make a bigger impact in open source software.

[Leia Ruffini](https://canonical.com/blog/author/leiaru)

3 November 2026

[### From personas to archetypes: a living, shared understanding of the people we build for (Part 2 of 2)](https://canonical.com/blog/from-personas-to-archetypes-part-2)

This is the second of two posts on our archetypes, shared, machine-readable descriptions of the people we build for. The first covers why we needed them and what they are. This...

[Peter B. Polgár](https://canonical.com/blog/author/polgarp)

23 October 2026

[### From personas to archetypes: a living, shared understanding of the people we build for (Part 1 of 2)](https://canonical.com/blog/from-personas-to-archetypes)

Personas are easy to create but often ignored. This is the first of two posts about how we developed archetypes to keep our personas fresh at Canonical. These are shared,...

[Peter B. Polgár](https://canonical.com/blog/author/polgarp)

19 October 2026
