view bin/subtly @ 34:304f8997c7d2

Merged files
author unexist
date Fri, 22 Jan 2010 16:20:26 +0100
parents subtly.rb@bb259a0825a1 subtly.rb@826a6c76754e
children 3efacab12daa
line wrap: on
line source
#!/usr/bin/ruby
##
# @package subtly
#
# @file subtly
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly.rb,v 27 2010/01/22 14:57:49 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 = ARGV[0] || "http://www.google.de"
b.run

# vim:ts=2:bs=2:sw=2:et:fdm=marker