PageRenderTime 262ms CodeModel.GetById 241ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/org/gjt/sp/jedit/actions.xml

#
XML | 1361 lines | 1128 code | 220 blank | 13 comment | 0 complexity | 3cac97cbbb248daedbd2fc740d8b9bec MD5 | raw file
   1<?xml version="1.0"?>
   2
   3<!DOCTYPE ACTIONS SYSTEM "actions.dtd">
   4
   5<!-- jEdit action table                                                      -->
   6<!-- Copyright (C) 2000, 2003 Slava Pestov                                   -->
   7
   8<!-- :tabSize=8:indentSize=8:noTabs=false:                                   -->
   9<!-- :folding=indent:collapseFolds=1:                                        -->
  10
  11<!-- Actions are the 'glue' that binds menu item selections and keystrokes   -->
  12<!-- to jEdit's APIs. For simplicity and compactness, they are written in    -->
  13<!-- the BeanShell scripting language.                                       -->
  14
  15<ACTIONS>
  16
  17<ACTION NAME="about">
  18	<CODE>
  19		new AboutDialog(view);
  20	</CODE>
  21</ACTION>
  22
  23<ACTION NAME="action-bar" NO_REPEAT="TRUE" NO_RECORD="TRUE" NO_REMEMBER_LAST="TRUE">
  24	<CODE>
  25		view.actionBar();
  26	</CODE>
  27</ACTION>
  28
  29<ACTION NAME="add-explicit-fold">
  30	<CODE>
  31		textArea.addExplicitFold();
  32	</CODE>
  33</ACTION>
  34
  35<ACTION NAME="add-buffer-to-favorites">
  36	<CODE>
  37		FavoritesVFS.addToFavorites(buffer.getPath(),VFS.DirectoryEntry.FILE);
  38	</CODE>
  39</ACTION>
  40
  41<ACTION NAME="add-dir-to-favorites">
  42	<CODE>
  43		FavoritesVFS.addToFavorites(buffer.getDirectory(),VFS.DirectoryEntry.DIRECTORY);
  44	</CODE>
  45</ACTION>
  46
  47<ACTION NAME="add-marker">
  48	<CODE>
  49		textArea.addMarker();
  50	</CODE>
  51</ACTION>
  52
  53<ACTION NAME="add-marker-shortcut" NO_REPEAT="TRUE" NO_RECORD="TRUE">
  54	<CODE>
  55		view.getInputHandler().readNextChar(
  56			buffer.getMarkerStatusPrompt("add-marker"),
  57			"buffer.addMarker(__char__,textArea.getCaretPosition());");
  58	</CODE>
  59</ACTION>
  60
  61<ACTION NAME="backspace">
  62	<CODE>
  63		textArea.backspace();
  64	</CODE>
  65</ACTION>
  66
  67<ACTION NAME="backspace-word">
  68	<CODE>
  69		textArea.backspaceWord();
  70	</CODE>
  71</ACTION>
  72
  73<ACTION NAME="backspace-word-std">
  74	<CODE>
  75		textArea.backspaceWord(true);
  76	</CODE>
  77</ACTION>
  78
  79<ACTION NAME="bottom-docking-area">
  80	<CODE>
  81		wm.getBottomDockingArea().showMostRecent();
  82	</CODE>
  83</ACTION>
  84
  85<ACTION NAME="buffer-options">
  86	<CODE>
  87		new BufferOptions(view,buffer);
  88	</CODE>
  89</ACTION>
  90
  91<ACTION NAME="center-caret">
  92	<CODE>
  93		textArea.centerCaret();
  94	</CODE>
  95</ACTION>
  96
  97<ACTION NAME="close-all">
  98	<CODE>
  99		jEdit.closeAllBuffers(view);
 100	</CODE>
 101</ACTION>
 102
 103<ACTION NAME="close-buffer">
 104	<CODE>
 105		jEdit.closeBuffer(view,buffer);
 106	</CODE>
 107</ACTION>
 108
 109<ACTION NAME="close-docking-area">
 110	<CODE>
 111		wm.closeCurrentArea();
 112	</CODE>
 113</ACTION>
 114
 115<ACTION NAME="close-view">
 116	<CODE>
 117		jEdit.closeView(view);
 118	</CODE>
 119</ACTION>
 120
 121<ACTION NAME="collapse-all-folds">
 122	<CODE>
 123		textArea.getDisplayManager().expandFolds(1);
 124	</CODE>
 125</ACTION>
 126
 127<ACTION NAME="collapse-fold">
 128	<CODE>
 129		textArea.collapseFold();
 130	</CODE>
 131</ACTION>
 132
 133<ACTION NAME="complete-word">
 134	<CODE>
 135		CompleteWord.completeWord(view);
 136	</CODE>
 137</ACTION>
 138
 139<ACTION NAME="copy">
 140	<CODE>
 141		Registers.copy(textArea,'$');
 142	</CODE>
 143</ACTION>
 144
 145<ACTION NAME="copy-append">
 146	<CODE>
 147		Registers.append(textArea,'$',"\n",false);
 148	</CODE>
 149</ACTION>
 150
 151<ACTION NAME="copy-append-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 152	<CODE>
 153		view.getInputHandler().readNextChar(
 154			Registers.getRegisterStatusPrompt("copy-append-string-register"),
 155			"Registers.append(textArea,__char__,\"\\n\",false);");
 156	</CODE>
 157</ACTION>
 158
 159<ACTION NAME="copy-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 160	<CODE>
 161		view.getInputHandler().readNextChar(
 162			Registers.getRegisterStatusPrompt("copy-string-register"),
 163			"Registers.copy(textArea,__char__);");
 164	</CODE>
 165</ACTION>
 166
 167<ACTION NAME="cut">
 168	<CODE>
 169		Registers.cut(textArea,'$');
 170	</CODE>
 171</ACTION>
 172
 173<ACTION NAME="cut-append">
 174	<CODE>
 175		Registers.append(textArea,'$',"\n",true);
 176	</CODE>
 177</ACTION>
 178
 179<ACTION NAME="cut-append-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 180	<CODE>
 181		view.getInputHandler().readNextChar(
 182			Registers.getRegisterStatusPrompt("cut-append-string-register"),
 183			"Registers.append(textArea,__char__,\"\\n\",true);");
 184	</CODE>
 185</ACTION>
 186
 187<ACTION NAME="cut-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 188	<CODE>
 189		view.getInputHandler().readNextChar(
 190			Registers.getRegisterStatusPrompt("cut-string-register"),
 191			"Registers.cut(textArea,__char__);");
 192	</CODE>
 193</ACTION>
 194
 195<ACTION NAME="delete">
 196	<CODE>
 197		textArea.delete();
 198	</CODE>
 199</ACTION>
 200
 201<ACTION NAME="delete-end-line">
 202	<CODE>
 203		textArea.deleteToEndOfLine();
 204	</CODE>
 205</ACTION>
 206
 207<ACTION NAME="delete-line">
 208	<CODE>
 209		textArea.deleteLine();
 210	</CODE>
 211</ACTION>
 212
 213<ACTION NAME="delete-paragraph">
 214	<CODE>
 215		textArea.deleteParagraph();
 216	</CODE>
 217</ACTION>
 218
 219<ACTION NAME="delete-start-line">
 220	<CODE>
 221		textArea.deleteToStartOfLine();
 222	</CODE>
 223</ACTION>
 224
 225<ACTION NAME="delete-word">
 226	<CODE>
 227		textArea.deleteWord();
 228	</CODE>
 229</ACTION>
 230
 231<ACTION NAME="delete-word-std">
 232	<CODE>
 233		textArea.deleteWord(true);
 234	</CODE>
 235</ACTION>
 236
 237<ACTION NAME="document-end">
 238	<CODE>
 239		textArea.goToBufferEnd(false);
 240	</CODE>
 241</ACTION>
 242
 243<ACTION NAME="document-home">
 244	<CODE>
 245		textArea.goToBufferStart(false);
 246	</CODE>
 247</ACTION>
 248
 249<ACTION NAME="edit-favorites">
 250	<CODE>
 251		VFSBrowser.browseDirectory(view,"favorites:");
 252	</CODE>
 253</ACTION>
 254
 255<ACTION NAME="end" NO_RECORD="TRUE">
 256	<CODE>
 257		textArea.smartEnd(false);
 258	</CODE>
 259</ACTION>
 260
 261<ACTION NAME="eval" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 262	<CODE>
 263		BeanShell.showEvaluateDialog(view);
 264	</CODE>
 265</ACTION>
 266
 267<ACTION NAME="eval-for-selected-lines">
 268	<CODE>
 269		BeanShell.showEvaluateLinesDialog(view);
 270	</CODE>
 271</ACTION>
 272
 273<ACTION NAME="eval-selection">
 274	<CODE>
 275		BeanShell.evalSelection(view,textArea);
 276	</CODE>
 277</ACTION>
 278
 279<ACTION NAME="expand-abbrev">
 280	<CODE>
 281		Abbrevs.expandAbbrev(view,true);
 282	</CODE>
 283</ACTION>
 284
 285<ACTION NAME="expand-all-folds">
 286	<CODE>
 287		textArea.getDisplayManager().expandAllFolds();
 288		textArea.scrollToCaret(false);
 289	</CODE>
 290</ACTION>
 291
 292<ACTION NAME="exit">
 293	<CODE>
 294		jEdit.exit(view,true);
 295	</CODE>
 296</ACTION>
 297
 298<ACTION NAME="expand-fold">
 299	<CODE>
 300		textArea.expandFold(true);
 301	</CODE>
 302</ACTION>
 303
 304<ACTION NAME="expand-one-level">
 305	<CODE>
 306		textArea.expandFold(false);
 307	</CODE>
 308</ACTION>
 309
 310<ACTION NAME="expand-folds" NO_REPEAT="TRUE"  NO_RECORD="TRUE">
 311	<CODE>
 312		view.getInputHandler().readNextChar(
 313			jEdit.getProperty("view.status.expand-folds"),
 314			"textArea.getDisplayManager().expandFolds(__char__);\n"
 315			+ "textArea.scrollToCaret(false);");
 316	</CODE>
 317</ACTION>
 318
 319<ACTION NAME="find" NO_RECORD="TRUE">
 320	<CODE>
 321		SearchDialog.showSearchDialog(view,textArea.getSelectedText(),SearchDialog.CURRENT_BUFFER);
 322	</CODE>
 323</ACTION>
 324
 325<ACTION NAME="find-next" NO_RECORD="TRUE">
 326	<CODE>
 327		SearchAndReplace.setReverseSearch(false);
 328		SearchAndReplace.find(view);
 329	</CODE>
 330</ACTION>
 331
 332<ACTION NAME="find-prev" NO_RECORD="TRUE">
 333	<CODE>
 334		SearchAndReplace.setReverseSearch(true);
 335		SearchAndReplace.find(view);
 336	</CODE>
 337</ACTION>
 338
 339<ACTION NAME="format-paragraph" NO_RECORD="TRUE">
 340	<CODE>
 341		textArea.formatParagraph();
 342	</CODE>
 343</ACTION>
 344
 345<ACTION NAME="global-options">
 346	<CODE>
 347		new GlobalOptions(view);
 348	</CODE>
 349</ACTION>
 350
 351<ACTION NAME="goto-line">
 352	<CODE>
 353		textArea.showGoToLineDialog();
 354	</CODE>
 355</ACTION>
 356
 357<ACTION NAME="goto-marker" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 358	<CODE>
 359		view.getInputHandler().readNextChar(
 360			buffer.getMarkerStatusPrompt("goto-marker"),
 361			"textArea.goToMarker(__char__,false);");
 362	</CODE>
 363</ACTION>
 364
 365<ACTION NAME="help">
 366	<CODE>
 367		new HelpViewer();
 368	</CODE>
 369</ACTION>
 370
 371<ACTION NAME="home" NO_RECORD="TRUE">
 372	<CODE>
 373		textArea.smartHome(false);
 374	</CODE>
 375</ACTION>
 376
 377<ACTION NAME="hypersearch" NO_RECORD="TRUE">
 378	<CODE>
 379		view.quickHyperSearch(false);
 380	</CODE>
 381</ACTION>
 382
 383<ACTION NAME="hypersearch-word" NO_RECORD="TRUE">
 384	<CODE>
 385		view.quickHyperSearch(true);
 386	</CODE>
 387</ACTION>
 388
 389<ACTION NAME="ignore-case">
 390	<CODE>
 391		SearchAndReplace.setIgnoreCase(!SearchAndReplace.getIgnoreCase());
 392	</CODE>
 393	<IS_SELECTED>
 394		SearchAndReplace.getIgnoreCase();
 395	</IS_SELECTED>
 396</ACTION>
 397
 398<ACTION NAME="indent-lines">
 399	<CODE>
 400		textArea.indentSelectedLines();
 401	</CODE>
 402</ACTION>
 403
 404<ACTION NAME="insert-literal">
 405	<CODE>
 406		view.getInputHandler().readNextChar(
 407			jEdit.getProperty("view.status.insert-literal"),
 408			"textArea.setSelectedText(String.valueOf(__char__));");
 409	</CODE>
 410</ACTION>
 411
 412<ACTION NAME="insert-newline">
 413	<CODE>
 414		textArea.userInput('\n');
 415	</CODE>
 416</ACTION>
 417
 418<ACTION NAME="insert-tab">
 419	<CODE>
 420		textArea.userInput('\t');
 421	</CODE>
 422</ACTION>
 423
 424<ACTION NAME="insert-newline-indent">
 425	<CODE>
 426		textArea.insertEnterAndIndent();
 427	</CODE>
 428</ACTION>
 429
 430<ACTION NAME="insert-tab-indent">
 431	<CODE>
 432		textArea.insertTabAndIndent();
 433	</CODE>
 434</ACTION>
 435
 436<ACTION NAME="invert-selection">
 437	<CODE>
 438		textArea.invertSelection();
 439	</CODE>
 440</ACTION>
 441
 442<ACTION NAME="join-lines">
 443	<CODE>
 444		textArea.joinLines();
 445	</CODE>
 446</ACTION>
 447
 448<ACTION NAME="keyboard-tester">
 449	<CODE>
 450		new GrabKeyDialog(view,null,null,jEdit.newFile(view));
 451	</CODE>
 452</ACTION>
 453
 454<ACTION NAME="last-action" NO_RECORD="TRUE" NO_REMEMBER_LAST="TRUE">
 455	<CODE>
 456		view.getInputHandler().invokeLastAction();
 457	</CODE>
 458</ACTION>
 459
 460<ACTION NAME="left-docking-area">
 461	<CODE>
 462		wm.getLeftDockingArea().showMostRecent();
 463	</CODE>
 464</ACTION>
 465
 466<ACTION NAME="line-comment">
 467	<CODE>
 468		textArea.lineComment();
 469	</CODE>
 470</ACTION>
 471
 472<ACTION NAME="line-end">
 473	<CODE>
 474		textArea.goToEndOfLine(false);
 475	</CODE>
 476</ACTION>
 477
 478<ACTION NAME="line-home">
 479	<CODE>
 480		textArea.goToStartOfLine(false);
 481	</CODE>
 482</ACTION>
 483
 484<ACTION NAME="match-bracket">
 485	<CODE>
 486		textArea.goToMatchingBracket();
 487	</CODE>
 488</ACTION>
 489
 490<ACTION NAME="memory-status">
 491	<CODE>
 492		jEdit.showMemoryDialog(view);
 493	</CODE>
 494</ACTION>
 495
 496<ACTION NAME="narrow-to-fold">
 497	<CODE>
 498		textArea.narrowToFold();
 499	</CODE>
 500</ACTION>
 501
 502<ACTION NAME="narrow-to-selection">
 503	<CODE>
 504		textArea.narrowToSelection();
 505	</CODE>
 506</ACTION>
 507
 508<ACTION NAME="new-file">
 509	<CODE>
 510		jEdit.newFile(view);
 511	</CODE>
 512</ACTION>
 513
 514<ACTION NAME="new-plain-view">
 515	<CODE>
 516		jEdit.newView(view,buffer,true);
 517	</CODE>
 518</ACTION>
 519
 520<ACTION NAME="new-view">
 521	<CODE>
 522		jEdit.newView(view);
 523	</CODE>
 524</ACTION>
 525
 526<ACTION NAME="next-bracket">
 527	<CODE>
 528		textArea.goToNextBracket(false);
 529	</CODE>
 530</ACTION>
 531
 532<ACTION NAME="next-buffer">
 533	<CODE>
 534		editPane.nextBuffer();
 535	</CODE>
 536</ACTION>
 537
 538<ACTION NAME="next-char">
 539	<CODE>
 540		textArea.goToNextCharacter(false);
 541	</CODE>
 542</ACTION>
 543
 544<ACTION NAME="next-fold">
 545	<CODE>
 546		textArea.goToNextFold(false);
 547	</CODE>
 548</ACTION>
 549
 550<ACTION NAME="next-line">
 551	<CODE>
 552		textArea.goToNextLine(false);
 553	</CODE>
 554</ACTION>
 555
 556<ACTION NAME="next-marker">
 557	<CODE>
 558		textArea.goToNextMarker(false);
 559	</CODE>
 560</ACTION>
 561
 562<ACTION NAME="next-page">
 563	<CODE>
 564		textArea.goToNextPage(false);
 565	</CODE>
 566</ACTION>
 567
 568<ACTION NAME="next-paragraph">
 569	<CODE>
 570		textArea.goToNextParagraph(false);
 571	</CODE>
 572</ACTION>
 573
 574<ACTION NAME="next-textarea">
 575	<CODE>
 576		view.nextTextArea();
 577	</CODE>
 578</ACTION>
 579
 580<ACTION NAME="next-word">
 581	<CODE>
 582		textArea.goToNextWord(false,false);
 583	</CODE>
 584</ACTION>
 585
 586<ACTION NAME="next-word-std">
 587	<CODE>
 588		textArea.goToNextWord(false,true);
 589	</CODE>
 590</ACTION>
 591
 592<ACTION NAME="open-file">
 593	<CODE>
 594		GUIUtilities.showVFSFileDialog(view,null,VFSBrowser.BROWSER_DIALOG,true);
 595	</CODE>
 596</ACTION>
 597
 598<ACTION NAME="overwrite" NO_RECORD="TRUE">
 599	<CODE>
 600		textArea.toggleOverwriteEnabled();
 601	</CODE>
 602	<IS_SELECTED>
 603		return textArea.isOverwriteEnabled();
 604	</IS_SELECTED>
 605</ACTION>
 606
 607<ACTION NAME="page-setup">
 608	<CODE>
 609		if(OperatingSystem.hasJava14())
 610			BufferPrinter1_4.pageSetup(view);
 611		else
 612			BufferPrinter1_3.pageSetup(view);
 613	</CODE>
 614</ACTION>
 615
 616<ACTION NAME="parent-fold">
 617	<CODE>
 618		textArea.goToParentFold();
 619	</CODE>
 620</ACTION>
 621
 622<ACTION NAME="paste">
 623	<CODE>
 624		Registers.paste(textArea,'$',false);
 625	</CODE>
 626</ACTION>
 627
 628<ACTION NAME="paste-deleted">
 629	<CODE>
 630		new PasteFromListDialog("paste-deleted",view,
 631			KillRing.getListModel());
 632	</CODE>
 633</ACTION>
 634
 635<ACTION NAME="paste-previous">
 636	<CODE>
 637		new PasteFromListDialog("paste-previous",view,
 638			HistoryModel.getModel("clipboard"));
 639	</CODE>
 640</ACTION>
 641
 642<ACTION NAME="paste-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 643	<CODE>
 644		view.getInputHandler().readNextChar(
 645			Registers.getRegisterStatusPrompt("paste-string-register"),
 646			"Registers.paste(textArea,__char__,false);");
 647	</CODE>
 648</ACTION>
 649
 650<ACTION NAME="plugin-manager">
 651	<CODE>
 652		PluginManager.showPluginManager(view);
 653	</CODE>
 654</ACTION>
 655
 656<ACTION NAME="plugin-options">
 657	<CODE>
 658		new PluginOptions(view);
 659	</CODE>
 660</ACTION>
 661
 662<ACTION NAME="prev-bracket">
 663	<CODE>
 664		textArea.goToPrevBracket(false);
 665	</CODE>
 666</ACTION>
 667
 668<ACTION NAME="prev-buffer">
 669	<CODE>
 670		editPane.prevBuffer();
 671	</CODE>
 672</ACTION>
 673
 674<ACTION NAME="prev-char">
 675	<CODE>
 676		textArea.goToPrevCharacter(false);
 677	</CODE>
 678</ACTION>
 679
 680<ACTION NAME="prev-fold">
 681	<CODE>
 682		textArea.goToPrevFold(false);
 683	</CODE>
 684</ACTION>
 685
 686<ACTION NAME="prev-line">
 687	<CODE>
 688		textArea.goToPrevLine(false);
 689	</CODE>
 690</ACTION>
 691
 692<ACTION NAME="prev-marker">
 693	<CODE>
 694		textArea.goToPrevMarker(false);
 695	</CODE>
 696</ACTION>
 697
 698<ACTION NAME="prev-page">
 699	<CODE>
 700		textArea.goToPrevPage(false);
 701	</CODE>
 702</ACTION>
 703
 704<ACTION NAME="prev-paragraph">
 705	<CODE>
 706		textArea.goToPrevParagraph(false);
 707	</CODE>
 708</ACTION>
 709
 710<ACTION NAME="prev-textarea">
 711	<CODE>
 712		view.prevTextArea();
 713	</CODE>
 714</ACTION>
 715
 716<ACTION NAME="prev-word">
 717	<CODE>
 718		textArea.goToPrevWord(false,false);
 719	</CODE>
 720</ACTION>
 721
 722<ACTION NAME="prev-word-std">
 723	<CODE>
 724		textArea.goToPrevWord(false,true);
 725	</CODE>
 726</ACTION>
 727
 728<ACTION NAME="print">
 729	<CODE>
 730
 731	if(OperatingSystem.hasJava14() &amp;&amp;
 732		!jEdit.getBooleanProperty("print.force13"))
 733		BufferPrinter1_4.print(view,buffer,false);
 734	else
 735		BufferPrinter1_3.print(view,buffer,false);
 736	</CODE>
 737</ACTION>
 738
 739<!-- not yet implemented -->
 740
 741<!-- <ACTION NAME="print-selection">
 742	<CODE>
 743		BufferPrinter.print(view,buffer,true);
 744	</CODE>
 745</ACTION> -->
 746
 747<ACTION NAME="quick-search" NO_RECORD="TRUE">
 748	<CODE>
 749		view.quickIncrementalSearch(false);
 750	</CODE>
 751</ACTION>
 752
 753<ACTION NAME="quick-search-word" NO_RECORD="TRUE">
 754	<CODE>
 755		view.quickIncrementalSearch(true);
 756	</CODE>
 757</ACTION>
 758
 759<ACTION NAME="range-comment">
 760	<CODE>
 761		textArea.rangeComment();
 762	</CODE>
 763</ACTION>
 764
 765<ACTION NAME="record-macro" NO_RECORD="TRUE">
 766	<CODE>
 767		Macros.recordMacro(view);
 768	</CODE>
 769</ACTION>
 770
 771<ACTION NAME="record-temp-macro" NO_RECORD="TRUE">
 772	<CODE>
 773		Macros.recordTemporaryMacro(view);
 774	</CODE>
 775</ACTION>
 776
 777<ACTION NAME="recent-buffer">
 778	<CODE>
 779		view.getEditPane().recentBuffer();
 780	</CODE>
 781</ACTION>
 782
 783<ACTION NAME="redo">
 784	<CODE>
 785		buffer.redo(textArea);
 786	</CODE>
 787</ACTION>
 788
 789<ACTION NAME="regexp">
 790	<CODE>
 791		SearchAndReplace.setRegexp(!SearchAndReplace.getRegexp());
 792	</CODE>
 793	<IS_SELECTED>
 794		SearchAndReplace.getRegexp();
 795	</IS_SELECTED>
 796</ACTION>
 797
 798<ACTION NAME="reload">
 799	<CODE>
 800		buffer.reload(view);
 801	</CODE>
 802</ACTION>
 803
 804<ACTION NAME="reload-all">
 805	<CODE>
 806		jEdit.reloadAllBuffers(view,true);
 807	</CODE>
 808</ACTION>
 809
 810<ACTION NAME="reload-modes">
 811	<CODE>
 812		jEdit.reloadModes();
 813	</CODE>
 814</ACTION>
 815
 816<ACTION NAME="remove-all-markers">
 817	<CODE>
 818		buffer.removeAllMarkers();
 819	</CODE>
 820</ACTION>
 821
 822<ACTION NAME="remove-marker" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 823	<CODE>
 824		buffer.removeMarker(textArea.getCaretLine());
 825	</CODE>
 826</ACTION>
 827
 828<ACTION NAME="remove-trailing-ws">
 829	<CODE>
 830		textArea.removeTrailingWhiteSpace();
 831	</CODE>
 832</ACTION>
 833
 834<ACTION NAME="replace-all" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 835	<CODE>
 836		SearchAndReplace.replaceAll(view);
 837	</CODE>
 838</ACTION>
 839
 840<ACTION NAME="replace-and-find-next" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 841	<CODE>
 842		if(SearchAndReplace.replace(view))
 843			SearchAndReplace.find(view);
 844	</CODE>
 845</ACTION>
 846
 847<ACTION NAME="replace-in-selection" NO_REPEAT="TRUE" NO_RECORD="TRUE">
 848	<CODE>
 849		SearchAndReplace.replace(view);
 850	</CODE>
 851</ACTION>
 852
 853<ACTION NAME="rescan-macros">
 854	<CODE>
 855		Macros.loadMacros();
 856	</CODE>
 857</ACTION>
 858
 859<ACTION NAME="right-docking-area">
 860	<CODE>
 861		wm.getRightDockingArea().showMostRecent();
 862	</CODE>
 863</ACTION>
 864
 865<ACTION NAME="run-other-macro">
 866	<CODE>
 867		Macros.showRunScriptDialog(view);
 868	</CODE>
 869</ACTION>
 870
 871<ACTION NAME="run-temp-macro" NO_RECORD="TRUE">
 872	<CODE>
 873		Macros.runTemporaryMacro(view);
 874	</CODE>
 875</ACTION>
 876
 877<ACTION NAME="save">
 878	<CODE>
 879		buffer.save(view,null,true);
 880	</CODE>
 881</ACTION>
 882
 883<ACTION NAME="save-all">
 884	<CODE>
 885		jEdit.saveAllBuffers(view);
 886	</CODE>
 887</ACTION>
 888
 889<ACTION NAME="save-as">
 890	<CODE>
 891		buffer.saveAs(view,true);
 892	</CODE>
 893</ACTION>
 894
 895<ACTION NAME="save-a-copy-as">
 896	<CODE>
 897		buffer.saveAs(view,false);
 898	</CODE>
 899</ACTION>
 900
 901<ACTION NAME="scroll-down-line">
 902	<CODE>
 903		textArea.scrollDownLine();
 904	</CODE>
 905</ACTION>
 906
 907<ACTION NAME="scroll-down-page">
 908	<CODE>
 909		textArea.scrollDownPage();
 910	</CODE>
 911</ACTION>
 912
 913<ACTION NAME="scroll-to-current-line">
 914	<CODE>
 915		if(!textArea.getDisplayManager().isLineVisible(
 916			textArea.getCaretLine()))
 917		{
 918			textArea.getDisplayManager().expandFold(
 919				textArea.getCaretLine(),true);
 920		}
 921		textArea.scrollToCaret(true);
 922		textArea.requestFocus();
 923	</CODE>
 924</ACTION>
 925
 926<ACTION NAME="scroll-up-line">
 927	<CODE>
 928		textArea.scrollUpLine();
 929	</CODE>
 930</ACTION>
 931
 932<ACTION NAME="scroll-up-page">
 933	<CODE>
 934		textArea.scrollUpPage();
 935	</CODE>
 936</ACTION>
 937
 938<ACTION NAME="search-in-open-buffers" NO_RECORD="TRUE">
 939	<CODE>
 940		SearchDialog.showSearchDialog(view,textArea.getSelectedText(),
 941			SearchDialog.ALL_BUFFERS);
 942	</CODE>
 943</ACTION>
 944
 945<ACTION NAME="search-in-directory" NO_RECORD="TRUE">
 946	<CODE>
 947		SearchDialog.showSearchDialog(view,textArea.getSelectedText(),
 948			SearchDialog.DIRECTORY);
 949	</CODE>
 950</ACTION>
 951
 952<ACTION NAME="select-all">
 953	<CODE>
 954		textArea.selectAll();
 955	</CODE>
 956</ACTION>
 957
 958<ACTION NAME="select-block">
 959	<CODE>
 960		textArea.selectBlock();
 961	</CODE>
 962</ACTION>
 963
 964<ACTION NAME="select-fold">
 965	<CODE>
 966		textArea.selectFold();
 967	</CODE>
 968</ACTION>
 969
 970<ACTION NAME="select-home" NO_RECORD="TRUE">
 971	<CODE>
 972		textArea.smartHome(true);
 973	</CODE>
 974</ACTION>
 975
 976<ACTION NAME="select-end" NO_RECORD="TRUE">
 977	<CODE>
 978		textArea.smartEnd(true);
 979	</CODE>
 980</ACTION>
 981
 982<ACTION NAME="select-line">
 983	<CODE>
 984		textArea.selectLine();
 985	</CODE>
 986</ACTION>
 987
 988<ACTION NAME="select-line-range">
 989	<CODE>
 990		textArea.showSelectLineRangeDialog();
 991	</CODE>
 992</ACTION>
 993
 994<ACTION NAME="select-paragraph">
 995	<CODE>
 996		textArea.selectParagraph();
 997	</CODE>
 998</ACTION>
 999
1000<ACTION NAME="select-word">
1001	<CODE>
1002		textArea.selectWord();
1003	</CODE>
1004</ACTION>
1005
1006<ACTION NAME="select-document-end">
1007	<CODE>
1008		textArea.goToBufferEnd(true);
1009	</CODE>
1010</ACTION>
1011
1012<ACTION NAME="select-document-home">
1013	<CODE>
1014		textArea.goToBufferStart(true);
1015	</CODE>
1016</ACTION>
1017
1018<ACTION NAME="select-line-home">
1019	<CODE>
1020		textArea.goToStartOfLine(true);
1021	</CODE>
1022</ACTION>
1023
1024<ACTION NAME="select-line-end">
1025	<CODE>
1026		textArea.goToEndOfLine(true);
1027	</CODE>
1028</ACTION>
1029
1030<ACTION NAME="select-marker" NO_REPEAT="TRUE" NO_RECORD="TRUE">
1031	<CODE>
1032		view.getInputHandler().readNextChar(
1033			buffer.getMarkerStatusPrompt("select-marker"),
1034			"textArea.goToMarker(__char__,true);");
1035	</CODE>
1036</ACTION>
1037
1038<ACTION NAME="select-next-bracket">
1039	<CODE>
1040		textArea.goToNextBracket(true);
1041	</CODE>
1042</ACTION>
1043
1044<ACTION NAME="select-next-char">
1045	<CODE>
1046		textArea.goToNextCharacter(true);
1047	</CODE>
1048</ACTION>
1049
1050<ACTION NAME="select-next-line">
1051	<CODE>
1052		textArea.goToNextLine(true);
1053	</CODE>
1054</ACTION>
1055
1056<ACTION NAME="select-next-marker">
1057	<CODE>
1058		textArea.goToNextMarker(true);
1059	</CODE>
1060</ACTION>
1061
1062<ACTION NAME="select-next-page">
1063	<CODE>
1064		textArea.goToNextPage(true);
1065	</CODE>
1066</ACTION>
1067
1068<ACTION NAME="select-next-paragraph">
1069	<CODE>
1070		textArea.goToNextParagraph(true);
1071	</CODE>
1072</ACTION>
1073
1074<ACTION NAME="select-next-word">
1075	<CODE>
1076		textArea.goToNextWord(true,false);
1077	</CODE>
1078</ACTION>
1079
1080<ACTION NAME="select-next-word-std">
1081	<CODE>
1082		textArea.goToNextWord(true,true);
1083	</CODE>
1084</ACTION>
1085
1086<ACTION NAME="select-none">
1087	<CODE>
1088		s = textArea.getSelectionAtOffset(textArea.getCaretPosition());
1089		if(s == null)
1090			textArea.selectNone();
1091		else
1092			textArea.removeFromSelection(s);
1093	</CODE>
1094</ACTION>
1095
1096<ACTION NAME="select-prev-bracket">
1097	<CODE>
1098		textArea.goToPrevBracket(true);
1099	</CODE>
1100</ACTION>
1101
1102<ACTION NAME="select-prev-char">
1103	<CODE>
1104		textArea.goToPrevCharacter(true);
1105	</CODE>
1106</ACTION>
1107
1108<ACTION NAME="select-prev-line">
1109	<CODE>
1110		textArea.goToPrevLine(true);
1111	</CODE>
1112</ACTION>
1113
1114<ACTION NAME="select-prev-marker">
1115	<CODE>
1116		textArea.goToPrevMarker(true);
1117	</CODE>
1118</ACTION>
1119
1120<ACTION NAME="select-prev-page">
1121	<CODE>
1122		textArea.goToPrevPage(true);
1123	</CODE>
1124</ACTION>
1125
1126<ACTION NAME="select-prev-paragraph">
1127	<CODE>
1128		textArea.goToPrevParagraph(true);
1129	</CODE>
1130</ACTION>
1131
1132<ACTION NAME="select-prev-word">
1133	<CODE>
1134		textArea.goToPrevWord(true,false);
1135	</CODE>
1136</ACTION>
1137
1138<ACTION NAME="select-prev-word-std">
1139	<CODE>
1140		textArea.goToPrevWord(true,true);
1141	</CODE>
1142</ACTION>
1143
1144<ACTION NAME="select-visible-home">
1145	<CODE>
1146		textArea.goToFirstVisibleLine(true);
1147	</CODE>
1148</ACTION>
1149
1150<ACTION NAME="select-visible-end">
1151	<CODE>
1152		textArea.goToLastVisibleLine(true);
1153	</CODE>
1154</ACTION>
1155
1156<ACTION NAME="select-whitespace-end">
1157	<CODE>
1158		textArea.goToEndOfWhiteSpace(true);
1159	</CODE>
1160</ACTION>
1161
1162<ACTION NAME="select-whitespace-home">
1163	<CODE>
1164		textArea.goToStartOfWhiteSpace(true);
1165	</CODE>
1166</ACTION>
1167
1168<ACTION NAME="shift-left">
1169	<CODE>
1170		textArea.shiftIndentLeft();
1171	</CODE>
1172</ACTION>
1173
1174<ACTION NAME="shift-right">
1175	<CODE>
1176		textArea.shiftIndentRight();
1177	</CODE>
1178</ACTION>
1179
1180<ACTION NAME="show-buffer-switcher">
1181	<CODE>
1182		editPane.showBufferSwitcher();
1183	</CODE>
1184</ACTION>
1185
1186<ACTION NAME="spaces-to-tabs">
1187	<CODE>
1188		textArea.spacesToTabs();
1189	</CODE>
1190</ACTION>
1191
1192<ACTION NAME="split-horizontal">
1193	<CODE>
1194		view.splitHorizontally();
1195	</CODE>
1196</ACTION>
1197
1198<ACTION NAME="split-vertical">
1199	<CODE>
1200		view.splitVertically();
1201	</CODE>
1202</ACTION>
1203
1204<ACTION NAME="stop-recording" NO_RECORD="TRUE">
1205	<CODE>
1206		Macros.stopRecording(view);
1207	</CODE>
1208</ACTION>
1209
1210<ACTION NAME="swap-marker" NO_REPEAT="TRUE" NO_RECORD="TRUE">
1211	<CODE>
1212		view.getInputHandler().readNextChar(
1213			buffer.getMarkerStatusPrompt("swap-marker"),
1214			"textArea.swapMarkerAndCaret(__char__);");
1215	</CODE>
1216</ACTION>
1217
1218<ACTION NAME="tabs-to-spaces">
1219	<CODE>
1220		textArea.tabsToSpaces();
1221	</CODE>
1222</ACTION>
1223
1224<ACTION NAME="tip-of-the-day">
1225	<CODE>
1226		new TipOfTheDay(view);
1227	</CODE>
1228</ACTION>
1229
1230<ACTION NAME="to-lower">
1231	<CODE>
1232		textArea.toLowerCase();
1233	</CODE>
1234</ACTION>
1235
1236<ACTION NAME="to-upper">
1237	<CODE>
1238		textArea.toUpperCase();
1239	</CODE>
1240</ACTION>
1241
1242<ACTION NAME="top-docking-area">
1243	<CODE>
1244		wm.getTopDockingArea().showMostRecent();
1245	</CODE>
1246</ACTION>
1247
1248<ACTION NAME="toggle-line-numbers">
1249	<CODE>
1250		textArea.getGutter().toggleExpanded();
1251	</CODE>
1252	<IS_SELECTED>
1253		return textArea.getGutter().isExpanded();
1254	</IS_SELECTED>
1255</ACTION>
1256
1257<ACTION NAME="toggle-line-separator">
1258	<CODE>
1259		buffer.toggleLineSeparator(view);
1260	</CODE>
1261</ACTION>
1262
1263<ACTION NAME="toggle-multi-select">
1264	<CODE>
1265		textArea.toggleMultipleSelectionEnabled();
1266	</CODE>
1267	<IS_SELECTED>
1268		return textArea.isMultipleSelectionEnabled();
1269	</IS_SELECTED>
1270</ACTION>
1271
1272<ACTION NAME="toggle-rect-select">
1273	<CODE>
1274		textArea.toggleRectangularSelectionEnabled();
1275	</CODE>
1276	<IS_SELECTED>
1277		return textArea.isRectangularSelectionEnabled();
1278	</IS_SELECTED>
1279</ACTION>
1280
1281<ACTION NAME="toggle-word-wrap">
1282	<CODE>
1283		buffer.toggleWordWrap(view);
1284	</CODE>
1285</ACTION>
1286
1287<ACTION NAME="update-log">
1288	<CODE>
1289		Log.flushStream();
1290	</CODE>
1291</ACTION>
1292
1293<ACTION NAME="undo">
1294	<CODE>
1295		buffer.undo(textArea);
1296	</CODE>
1297</ACTION>
1298
1299<ACTION NAME="unsplit">
1300	<CODE>
1301		view.unsplit();
1302	</CODE>
1303</ACTION>
1304
1305<ACTION NAME="unsplit-current">
1306	<CODE>
1307		view.unsplitCurrent();
1308	</CODE>
1309</ACTION>
1310
1311<ACTION NAME="vertical-paste">
1312	<CODE>
1313		Registers.paste(textArea,'$',true);
1314	</CODE>
1315</ACTION>
1316
1317<ACTION NAME="vertical-paste-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
1318	<CODE>
1319		view.getInputHandler().readNextChar(
1320			Registers.getRegisterStatusPrompt("vertical-paste-string-register"),
1321			"Registers.paste(textArea,__char__,true);");
1322	</CODE>
1323</ACTION>
1324
1325<ACTION NAME="view-registers">
1326	<CODE>
1327		new ViewRegisters(view);
1328	</CODE>
1329</ACTION>
1330
1331<ACTION NAME="visible-end">
1332	<CODE>
1333		textArea.goToLastVisibleLine(false);
1334	</CODE>
1335</ACTION>
1336
1337<ACTION NAME="visible-home">
1338	<CODE>
1339		textArea.goToFirstVisibleLine(false);
1340	</CODE>
1341</ACTION>
1342
1343<ACTION NAME="whitespace-end">
1344	<CODE>
1345		textArea.goToEndOfWhiteSpace(false);
1346	</CODE>
1347</ACTION>
1348
1349<ACTION NAME="whitespace-home">
1350	<CODE>
1351		textArea.goToStartOfWhiteSpace(false);
1352	</CODE>
1353</ACTION>
1354
1355<ACTION NAME="word-count">
1356	<CODE>
1357		textArea.showWordCountDialog();
1358	</CODE>
1359</ACTION>
1360
1361</ACTIONS>