From 243e95f76e02ce15b37f4ae3cbafb1439a77e17a Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 16 Mar 2013 01:50:08 +0400 Subject: [PATCH 1/2] add Command-G to ext-searchbox fixes #1309 --- lib/ace/ext/searchbox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ace/ext/searchbox.js b/lib/ace/ext/searchbox.js index 64e3f6de..e2d97366 100644 --- a/lib/ace/ext/searchbox.js +++ b/lib/ace/ext/searchbox.js @@ -134,6 +134,12 @@ var SearchBox = function(editor, range, showReplaceForm) { sb.replaceBox.style.display = isReplace ? "" : "none"; sb[isReplace ? "replaceInput" : "searchInput"].focus(); }, + "Ctrl-G|Command-G": function(sb) { + sb.findNext(); + }, + "Ctrl-Shift-G|Command-Shift-G": function(sb) { + sb.findPrev(); + }, "esc": function(sb) { setTimeout(function() { sb.hide();}); }, From 485b24390263cbb4c6647de48fe9dad4dfc0d109 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 17 Mar 2013 21:01:40 +0400 Subject: [PATCH 2/2] remove one letter names from list of ruby builtinFunctions --- lib/ace/mode/ruby_highlight_rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/mode/ruby_highlight_rules.js b/lib/ace/mode/ruby_highlight_rules.js index 17b9ce36..44ff305f 100644 --- a/lib/ace/mode/ruby_highlight_rules.js +++ b/lib/ace/mode/ruby_highlight_rules.js @@ -77,7 +77,7 @@ var RubyHighlightRules = function() { "attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|" + "caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|" + "exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|" + - "gsub!|get_via_redirect|h|host!|https?|https!|include|Integer|lambda|link_to|" + + "gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|" + "link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|" + "p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|" + "raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|" + @@ -95,7 +95,7 @@ var RubyHighlightRules = function() { "validates_inclusion_of|validates_numericality_of|validates_with|validates_each|" + "authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|" + "filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|" + - "translate|localize|extract_locale_from_tld|t|l|caches_page|expire_page|caches_action|expire_action|" + + "translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|" + "cache|expire_fragment|expire_cache_for|observe|cache_sweeper|" + "has_many|has_one|belongs_to|has_and_belongs_to_many" );