view subtly.rb @ 27:bb259a0825a1

Added SubtlyBrowserZoomIn and SubtlyBrowserZoomOut
author unexist
date Fri, 22 Jan 2010 14:57:49 +0100
parents 1a28b62792cf
children 304f8997c7d2
line wrap: on
line source
#!/usr/bin/ruby
##
# @package subtly
#
# @file subtly
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly.rb,v 27 1264168669.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,
  "y"   => :SubtlyUriYank,
  "i"   => :SubtlyModeInsert,
  "Esc" => :SubtlyModeCommand,
  "s"   => :SubtlyBrowserStop,
  "b"   => :SubtlyBrowserBack,
  "m"   => :SubtlyBrowserForward,
  "r"   => :SubtlyBrowerReloadCache,
  "R"   => :SubtlyBrowerReload,
  "+"   => :SubtlyBrowserZoomIn,
  "-"   => :SubtlyBrowserZoomOut,
  "gg"  => :SubtlyScrollTop,
  "G"   => :SubtlyScrollBottom,
  "ZZ"  => :SubtlyQuit,

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