changeset 7:18b3fbf82cc4

Added key config
author unexist
date Mon, 14 Dec 2009 00:33:43 +0100
parents c86846c6b2da
children da4347585d4f
files subtly.rb
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/subtly.rb	Mon Dec 14 00:33:30 2009 +0100
+++ b/subtly.rb	Mon Dec 14 00:33:43 2009 +0100
@@ -12,6 +12,15 @@
 require "subtly/browser"
 
 b = Subtly::Browser.new
-b.add_key(:OpenUri => "o")
-b.load("http://www.google.de")
+b.add_keys({
+  "o"   => :SubtlyUriOpen,
+  "O"   => :SubtlyUriEdit,
+  "p"   => :SubtlyUriPaste,
+  "i"   => :SubtlyModeInsert,
+  "b"   => :SubtlyBrowserBack,
+  "m"   => :SubtlyBrowserForward,
+  "ZZ"  => :SubtlyQuit,
+  "Esc" => :SubtlyModeCommand
+})
+b.uri = "http://www.google.de"
 b.run