view bin/subtly @ 46:0f9e756631e1

Fixed typo brower -> browser
author unexist
date Sun, 24 Jan 2010 14:51:58 +0100
parents b1354c094d9b
children 878a40d32d22
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

# Add keys
b.add_keys({
  "o"   => :SubtlyUriOpen,
  "O"   => :SubtlyUriEdit,
  "p"   => :SubtlyUriPaste,
  "y"   => :SubtlyUriYank,
  "i"   => :SubtlyModeInsert,
  "Esc" => :SubtlyModeCommand,
  "s"   => :SubtlyBrowserStop,
  "b"   => :SubtlyBrowserBack,
  "m"   => :SubtlyBrowserForward,
  "r"   => :SubtlyBrowserReloadCache,
  "R"   => :SubtlyBrowserReload,
  "f"   => :SubtlyBrowserFollow,
  "+"   => :SubtlyBrowserZoomIn,
  "-"   => :SubtlyBrowserZoomOut,
  "/"   => :SubtlyFindForward,
  "\\"  => :SubtlyFindBackward,
  "gg"  => :SubtlyScrollTop,
  "G"   => :SubtlyScrollBottom,
  "ZZ"  => :SubtlyQuit,

  # Jumps
  "g_"  => "http://www.google.de/search?q=%s",

  # Javascript
  "t"   => "alert('test')"
})

# Set proxy
#b.proxy = "http://localhost:8118"

# Set default page
b.uri = ARGV[0] || "http://www.google.de"

b.run

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