Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A programmable GTK+ QuickSilver clone for software developers.

branch: master
README.md

ginvoke

A programmable GTK+ QuickSilver clone for software developers.

Status

Beta

Overview

QuickSilver and Gnome Do are nice and all, but tools like this are just begging to be easily extensible.

Executor does a great job of this on Windows, but those of us in Gnome/GTK+ land are left wanting.

ginvoke will address this gap.

Prerequisites

  • Python 2.7+ (may work with as early as 2.4, but untested)
  • PyGTK

Installation

# DEBIAN/UBUNTU/MINT USERS ONLY
wget http://tomlee.co/projects/ginvoke/dist/ginvoke_0.4.4-1_all.deb
sudo dpkg -i ginvoke_0.4.4-1_all.deb

# OTHER USERS: use PyPI to install ginvoke
pip install ginvoke

This will install the ginvoke script on your system.

Make sure you set up a global keyboard shortcut that points to your ginvoke script

Once that's done, create a .ginvokerc file in your $HOME directory:

# /home/tom/.ginvokerc

commands.add("terminal", run, "gnome-terminal", "--working-directory=${args[0]}")
commands.add("google", run, "chromium-browser", "http://www.google.com/?q=${u(' '.join(args))}")

Usage

Once you've created your .ginvokerc, you can use these commands within ginvoke.

terminal will open a new gnome-terminal window in the given directory:

terminal /var/www

google will perform a Google search using the given keywords:

google github

.ginvokerc is a fully fledged Python script, so you can write your own actions too:

def cmd_print(context, args):
    print args[0]

commands.add("say", cmd_print, "${' '.join(args)}")

The "say" command will now print its arguments to the command line. Try it out!

say hello world

ginvoke will also pick up executables on your $PATH at startup.

Lastly, you can use ginvoke to perform simple arithmetic:

1 + 2

License

This software is licensed under the terms of the GPL v3 License.

Support

Please log defects and feature requests using the issue tracker on github.

About

ginvoke was written by Tom Lee.

Follow me on Twitter or LinkedIn.

Something went wrong with that request. Please try again.