lib/textbringer/keymap.rb in textbringer-0.1.3 vs lib/textbringer/keymap.rb in textbringer-0.1.4

- old
+ new

@@ -83,11 +83,11 @@ (?\x20..?\x7e).each do |c| GLOBAL_MAP.define_key(c, :self_insert) end GLOBAL_MAP.define_key(?\t, :self_insert) GLOBAL_MAP.define_key(?\C-q, :quoted_insert) - GLOBAL_MAP.define_key("\C- ", :set_mark) + GLOBAL_MAP.define_key("\C- ", :set_mark_command) GLOBAL_MAP.define_key("\C-x\C-x", :exchange_point_and_mark) GLOBAL_MAP.define_key("\ew", :copy_region) GLOBAL_MAP.define_key(?\C-w, :kill_region) GLOBAL_MAP.define_key(?\C-k, :kill_line) GLOBAL_MAP.define_key("\ed", :kill_word) @@ -119,9 +119,10 @@ GLOBAL_MAP.define_key("\e:", :eval_expression) GLOBAL_MAP.define_key(?\C-u, :universal_argument) GLOBAL_MAP.define_key(?\C-g, :keyboard_quit) GLOBAL_MAP.define_key(?\C-s, :isearch_forward) GLOBAL_MAP.define_key(?\C-r, :isearch_backward) + GLOBAL_MAP.define_key("\e%", :query_replace_regexp) GLOBAL_MAP.define_key("\e!", :shell_execute) GLOBAL_MAP.handle_undefined_key do |key| if key.is_a?(String) && /[\0-\x7f]/ !~ key :self_insert else