Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added command, handler, keys for REPL history search.

  • Loading branch information...
commit e46cdbb116316aa192486d7d70e1721d9d54290d 1 parent 0fe0296
Gunnar Völkel authored
Showing with 134 additions and 1 deletion.
  1. +4 −1 ccw.core/plugin.properties
  2. +130 −0 ccw.core/plugin.xml
View
5 ccw.core/plugin.properties
@@ -82,7 +82,10 @@ ccw.ui.repl.history.previous.name=Load previous command from REPL's history into
ccw.ui.repl.history.previous.description=Load previous command from REPL's history into REPL input area
ccw.ui.repl.history.next.name=Load next command from REPL's history into REPL input area
ccw.ui.repl.history.next.description=Load next command from REPL's history into REPL input area
-
+ccw.ui.repl.history.search.previous.name=Load previous command starting with the text before the cursor from REPL's history into REPL input area
+ccw.ui.repl.history.search.previous.description=Load previous command starting with the text before the cursor from REPL's history into REPL input area
+ccw.ui.repl.history.search.next.name=Load next command starting with the text before the cursor from REPL's history into REPL input area
+ccw.ui.repl.history.search.next.description=Load next command starting with the text before the cursor from REPL's history into REPL input area
preferencePage.clojure.name=Clojure
preferencePage.general.name=General
View
130 ccw.core/plugin.xml
@@ -465,6 +465,18 @@
</command>
<command
categoryId="org.eclipse.ui.category.edit"
+ description="%ccw.ui.repl.history.search.previous.description"
+ id="ccw.ui.repl.history.search.previous"
+ name="%ccw.ui.repl.history.search.previous.name">
+ </command>
+ <command
+ categoryId="org.eclipse.ui.category.edit"
+ description="%ccw.ui.repl.history.search.next.description"
+ id="ccw.ui.repl.history.search.next"
+ name="%ccw.ui.repl.history.search.next.name">
+ </command>
+ <command
+ categoryId="org.eclipse.ui.category.edit"
description="%ccw.ui.edit.text.clojure.comment.toggle.description"
id="ccw.ui.edit.text.clojure.comment.toggle"
name="%ccw.ui.edit.text.clojure.comment.toggle.name">
@@ -837,6 +849,27 @@
sequence="M4+P">
</key>
<key
+ commandId="ccw.ui.repl.history.search.previous"
+ contextId="ccw.ui.context.repl"
+ platform="win32"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+ARROW_RIGHT">
+ </key>
+ <key
+ commandId="ccw.ui.repl.history.search.previous"
+ contextId="ccw.ui.context.repl"
+ platform="gtk"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+ARROW_RIGHT">
+ </key>
+ <key
+ commandId="ccw.ui.repl.history.search.previous"
+ contextId="ccw.ui.context.repl"
+ platform="carbon"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M4+ARROW_RIGHT">
+ </key>
+ <key
commandId="ccw.ui.repl.history.next"
contextId="ccw.ui.context.repl"
platform="win32"
@@ -865,6 +898,27 @@
sequence="M4+N">
</key>
<key
+ commandId="ccw.ui.repl.history.search.next"
+ contextId="ccw.ui.context.repl"
+ platform="win32"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+ARROW_LEFT">
+ </key>
+ <key
+ commandId="ccw.ui.repl.history.search.next"
+ contextId="ccw.ui.context.repl"
+ platform="gtk"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+ARROW_LEFT">
+ </key>
+ <key
+ commandId="ccw.ui.repl.history.search.next"
+ contextId="ccw.ui.context.repl"
+ platform="carbon"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M4+ARROW_LEFT">
+ </key>
+ <key
commandId="ccw.ui.edit.text.clojure.comment.toggle"
contextId="ccw.ui.clojureEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
@@ -2278,6 +2332,82 @@
</activeWhen>
</handler>
<handler
+ commandId="ccw.ui.repl.history.search.previous">
+ <class
+ class="ccw.util.GenericExecutableExtension">
+ <parameter
+ name="factory"
+ value="ccw.util.factories/handler-factory">
+ </parameter>
+ <parameter
+ name="handler"
+ value="ccw.repl.view-helpers/history-backward-search">
+ </parameter>
+ </class>
+ <enabledWhen>
+ <with
+ variable="activeContexts">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <equals
+ value="ccw.ui.context.repl">
+ </equals>
+ </iterate>
+ </with>
+ </enabledWhen>
+ <activeWhen>
+ <with
+ variable="activeContexts">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <equals
+ value="ccw.ui.context.repl">
+ </equals>
+ </iterate>
+ </with>
+ </activeWhen>
+ </handler>
+ <handler
+ commandId="ccw.ui.repl.history.search.next">
+ <class
+ class="ccw.util.GenericExecutableExtension">
+ <parameter
+ name="factory"
+ value="ccw.util.factories/handler-factory">
+ </parameter>
+ <parameter
+ name="handler"
+ value="ccw.repl.view-helpers/history-forward-search">
+ </parameter>
+ </class>
+ <enabledWhen>
+ <with
+ variable="activeContexts">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <equals
+ value="ccw.ui.context.repl">
+ </equals>
+ </iterate>
+ </with>
+ </enabledWhen>
+ <activeWhen>
+ <with
+ variable="activeContexts">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <equals
+ value="ccw.ui.context.repl">
+ </equals>
+ </iterate>
+ </with>
+ </activeWhen>
+ </handler>
+ <handler
commandId="ccw.ui.edit.text.clojure.comment.toggle">
<class
class="ccw.util.GenericExecutableExtension">
Please sign in to comment.
Something went wrong with that request. Please try again.