view subtly.rb @ 17:d8bc17ad2c63

Updated google jump and default url
author unexist
date Fri, 22 Jan 2010 13:08:51 +0100
parents da58e103db3b
children 80c19b39f3f6
line wrap: on
line source
#!/usr/bin/ruby
##
# @package subtly
#
# @file subtly
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly.rb,v 17 1264162131.0-3600 unexist $
#
# This program can be distributed under the terms of the GNU GPL.
##
 
require "subtly/browser"

b = Subtly::Browser.new
b.add_keys({
  # Keys
  "o"   => :SubtlyUriOpen,
  "O"   => :SubtlyUriEdit,
  "p"   => :SubtlyUriPaste,
  "i"   => :SubtlyModeInsert,
  "b"   => :SubtlyBrowserBack,
  "m"   => :SubtlyBrowserForward,
  "gg"  => :SubtlyScrollTop,
  "G"   => :SubtlyScrollBottom,
  "ZZ"  => :SubtlyQuit,
  "Esc" => :SubtlyModeCommand,

  # Jumps
  "g_"  => "http://www.google.de/search?q=%s"
})
b.uri = "http://www.subtle.de"
b.run