view subtly.rb @ 16:da58e103db3b

Added more keys
author unexist
date Fri, 22 Jan 2010 02:28:14 +0100
parents 18b3fbf82cc4
children d8bc17ad2c63
line wrap: on
line source
#!/usr/bin/ruby
##
# @package subtly
#
# @file subtly
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly.rb,v 16 1264123694.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/%s"
})
b.uri = "http://www.google.de"
b.run