clarified actions and keyboard shortcuts --- requires to update jedit component;
authorwenzelm
Tue, 01 Apr 2025 21:37:02 +0200
changeset 82412 6ea8b99cd8d4
parent 82411 49ca1a40c04a
child 82413 a6046b6d23b4
clarified actions and keyboard shortcuts --- requires to update jedit component;
src/Pure/Admin/component_jedit.scala
src/Tools/jEdit/jedit_main/actions.xml
src/Tools/jEdit/src/isabelle.scala
--- a/src/Pure/Admin/component_jedit.scala	Tue Apr 01 20:59:01 2025 +0200
+++ b/src/Pure/Admin/component_jedit.scala	Tue Apr 01 21:37:02 2025 +0200
@@ -255,6 +255,10 @@
 isabelle-debugger.dock-position=floating
 isabelle-documentation.dock-position=left
 isabelle-export-browser.label=Browse theory exports
+isabelle.navigate-backwards.label=Navigate backwards
+isabelle.navigate-backwards.shortcut=AS+LEFT
+isabelle.navigate-forwards.label=Navigate forwards
+isabelle.navigate-forwards.shortcut=AS+RIGHT
 isabelle-output.dock-position=bottom
 isabelle-output.height=174
 isabelle-output.width=412
--- a/src/Tools/jEdit/jedit_main/actions.xml	Tue Apr 01 20:59:01 2025 +0200
+++ b/src/Tools/jEdit/jedit_main/actions.xml	Tue Apr 01 21:37:02 2025 +0200
@@ -2,14 +2,14 @@
 <!DOCTYPE ACTIONS SYSTEM "actions.dtd">
 
 <ACTIONS>
-	<ACTION NAME="isabelle.backward">
+	<ACTION NAME="isabelle.navigate-backwards">
 	  <CODE>
-	    isabelle.jedit.Isabelle.backward(view);
+	    isabelle.jedit.Isabelle.navigate_backwards(view);
 	  </CODE>
 	</ACTION>
-	<ACTION NAME="isabelle.forward">
+	<ACTION NAME="isabelle.navigate-forwards">
 	  <CODE>
-	    isabelle.jedit.Isabelle.forward(view);
+	    isabelle.jedit.Isabelle.navigate_forwards(view);
 	  </CODE>
 	</ACTION>
 	<ACTION NAME="isabelle.browser-info">
--- a/src/Tools/jEdit/src/isabelle.scala	Tue Apr 01 20:59:01 2025 +0200
+++ b/src/Tools/jEdit/src/isabelle.scala	Tue Apr 01 21:37:02 2025 +0200
@@ -84,8 +84,8 @@
 
   /* navigation */
 
-  def backward(view: View): Unit = PIDE.plugin.navigator.backward(view)
-  def forward(view: View): Unit = PIDE.plugin.navigator.forward(view)
+  def navigate_backwards(view: View): Unit = PIDE.plugin.navigator.backward(view)
+  def navigate_forwards(view: View): Unit = PIDE.plugin.navigator.forward(view)
 
 
   /* text structure */