PageRenderTime 48ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/TextTools/TextTools.html

#
HTML | 192 lines | 138 code | 52 blank | 2 comment | 0 complexity | 2ac78f2b8d35a1fd39ea9d15bc922734 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//SoftQuad//DTD HoTMetaL PRO 4.0::19971010::extensions to HTML 4.0//EN" "hmpro4.dtd"
  2. >
  3. <HTML>
  4. <HEAD>
  5. <TITLE>TextTools</TITLE>
  6. </HEAD>
  7. <BODY>
  8. <H1>[ TextTools ]</H1>
  9. <P>by mike dillon &lt;mdillon@jedit.org&gt;</P>
  10. <P>The TextTools plugin provides a set of plugin actions for manipulating text in a buffer.</P>
  11. <H3>TextTools actions</H3>
  12. <UL>
  13. <LI><A HREF="#Sort">Sort</A></LI>
  14. <LI><A HREF="#RevSort">Reverse Sort</A></LI>
  15. <LI><A HREF="#AdvSort">Advanced Sort (field sort)</A></LI>
  16. <!-- <LI><A HREF="#FieldSort">Field Sort</A></LI>
  17. -->
  18. <LI><A HREF="#DelDups">Delete duplicates</A></LI>
  19. <LI><A HREF="#Shuffle">Shuffle</A></LI>
  20. <LI><A HREF="#TransposeChars">Transpose Characters</A></LI>
  21. <LI><A HREF="#TransposeLines">Transpose Lines</A></LI>
  22. <LI><A HREF="#TransposeWords">Transpose Words</A></LI>
  23. <LI><A HREF="#ColumnInsert">Column Insert</A></LI>
  24. <LI><A HREF="#BlockHandling">Block Fill Insert</A></LI>
  25. <LI><A HREF="#BlockMove">Move Rectangular Selection</A></LI>
  26. <LI><A HREF="#ToggleLineComment">Toggle Line Comment</A></LI>
  27. <LI><A HREF="#ToggleRangeComment">Toggle Range Comment</A></LI>
  28. </UL>
  29. <P><STRONG><A NAME="Sort">Sort</A></STRONG> by mike dillon &lt;mdillon@jedit.org&gt;</P>
  30. <P>This action sorts all selected lines in lexicographic order. If no text is selected, it
  31. sorts the entire buffer. If the selection begins or ends in the middle of a line, the entire
  32. line is sorted.</P>
  33. <P>Since 1.10:</P>
  34. <P>If the selection is rectangular, only the selection will be evaluated for lexicographic
  35. sorting. The entire lines are sorted.</P>
  36. <P><STRONG><A NAME="RevSort">Reverse Sort</A></STRONG> by mike dillon &lt;mdillon@jedit.org&gt;</P>
  37. <P>Same as <A HREF="#Sort">Sort</A>, except the sorted lines are inserted in reverse order.</P>
  38. <P><STRONG><A NAME="AdvSort">Advanced Sort</A></STRONG> by Carmine Lucarelli &lt;carmine@jedit.org&gt;,
  39. extended by Rudi Widmann &lt;rudi.widmann@web.de&gt;</P>
  40. <P>Same as <A HREF="#Sort">Sort</A>, but with advanced options.</P>
  41. <P>You enter the options in a dialog where you can specify which fields to use and how those
  42. fields should be sorted.<BR>
  43. </P>
  44. <P>A field is specified by its left / right column.</P>
  45. <P>Note: In case of rectangular selection, the left / right columns are preset in the dialog</P>
  46. <P><STRONG>Important: If you press ok, the last entered field is not registered in the table. <BR>Therefore, press always TAB after the last cell you edit, or else your change will be ignored</STRONG>
  47. </P>
  48. <P>Globally you can specify </P>
  49. <UL>
  50. <LI>whether to delete duplicate entries in the data (duplicate means: entire lines are
  51. identical)</LI>
  52. <LI>Since 1.10: whether to sort entire lines or only the rectangular selection </LI>
  53. </UL>
  54. <P>For each of the fields you create, you can specify: </P>
  55. <UL>
  56. <LI> the start column (indexed starting at 1) </LI>
  57. <LI> the end column </LI>
  58. <LI> whether the field should be sorted in an ascending or descending order </LI>
  59. <LI> whether case should be ignored </LI>
  60. <LI> whether 'smart' number sorting should be done (selecting this option would place File2
  61. before File10 in the sort) </LI>
  62. <LI> whether whitespace at the start or end of the field should be ignored </LI>
  63. <LI> since 1.10: whether to delete lines with duplicate fields (duplicate means: the entries
  64. between the specified start/end columns are identical)</LI>
  65. </UL>
  66. <P><STRONG><A NAME="DelDups">Delete Duplicated </A></STRONG>by Rudi Widmann &lt;rudi.widmann@web.de&gt;</P>
  67. <P>Deletes duplicated lines, without sorting them. If no text is selected, it compares all
  68. lines of the buffer. If the selection begins or ends in the middle of a line, the entire line
  69. is compared.</P>
  70. <P>If the selection is rectangular, only the selection will be evaluated for comparision. The
  71. entire lines are deleted if the line parts of the selection are duplicated.</P>
  72. <P><STRONG><A NAME="Shuffle">Shuffle Lines</A></STRONG> by Carmine Lucarelli &lt;carmine@jedit.org&gt;</P>
  73. <P>Randomize the data, in effect 'unsorting' it.</P>
  74. <P><STRONG><A NAME="TransposeChars">Transpose Characters</A></STRONG> by mike dillon &lt;mdillon@jedit.org&gt;</P>
  75. <P>Transposes the characters on either side of the cursor. At the either end of a line, it
  76. transposes the two characters nearest the cursor.</P>
  77. <P><STRONG><A NAME="TransposeLines">Transpose Lines</A></STRONG> by mike dillon &lt;mdillon@jedit.org&gt;</P>
  78. <P>Transposes the current line with the preceding line. If there is no preceding line, the
  79. current line is transposed with the following line.</P>
  80. <P><STRONG><A NAME="TransposeWords">Transpose Words</A></STRONG> by mike dillon &lt;mdillon@jedit.org&gt;</P>
  81. <P>Transposes the nearest word to the cursor (which i'll call the &quot;pivot&quot; word) with
  82. one of the adjacent words. If there is a word before the pivot, the pivot will be transposed
  83. with that word; otherwise, it will be transposed with the following word. The intervening
  84. non-word sequence is left between the transposed words. All letters and digits, in addition to
  85. any character in the &quot;noWordSep&quot; Buffer property (which is typically defined by the
  86. Buffer's current mode), are considered word characters. All other characters are not. If a
  87. transposition takes place, the cursor is placed after the transposed sequence.</P>
  88. <P><STRONG><A NAME="ColumnInsert">Column Insert</A></STRONG> by Nathan Tenney &lt;eulernt@yahoo.com&gt;</P>
  89. <P>Inserts text in place of a rectangular selection. When invoked, a small dialog pops up for
  90. user input. When enter is pressed, the text is placed on each line of the selection, replacing
  91. any text selected. </P>
  92. <P><STRONG><A NAME="BlockFill">Block Fill / Insert</A></STRONG> by Rudi Widmann &lt;rudi.widmann@web.de&gt;</P>
  93. <P>Inserts text in a rectangular selection. When invoked, a dialog pops up, with following
  94. options:</P>
  95. <UL>
  96. <LI><B>overwrite</B>: <BR>
  97. (if checked): overwrite selection <BR>
  98. (not checked): insert at the left side of the selection</LI>
  99. <LI><B>Textfield</B> : enter the text you want to insert. If you specify a numeric,
  100. incrementing is possible</LI>
  101. <LI><B>Increment</B>: increase a numeric given in &quot;Textarea&quot; in every line with an
  102. increment. Note: increment is only possible in overwrite mode</LI>
  103. <LI><B>leading Zeros</B>: fill increment rightbound with leading zeros</LI>
  104. </UL>
  105. <P>If you select &quot;overwrite&quot; , the tool overwrites exactly the rectangular selection.
  106. This means:</P>
  107. <UL>
  108. <LI>If the length of the entered text / the calculated number exceeds the selection, the text
  109. is cut.</LI>
  110. <LI>If the length of the entered text is smaller as the selection, the text is filled with
  111. white spaces or zeros.. </LI>
  112. </UL>
  113. <P>If you don't select &quot;overwrite&quot;, the tool inserts the entered text at the left
  114. side of the rectangular selection. The length of the original selection is ignored.</P>
  115. <P>Note: If the (rectangular !) selection selects only one line, the selected columns are
  116. filled till end-of-file, extremly useful for numbering.</P>
  117. <P><STRONG><A NAME="BlockMove">Move Rectangular Selection</A></STRONG> by Rudi Widmann &lt;rudi.widmann@web.de&gt;</P>
  118. <P>Moves the selected text in all directions</P>
  119. <P><B><FONT SIZE="+1">Actions</FONT>:</B></P>
  120. <UL>
  121. <LI><B>rect move up </B>: move rectangular selection one row up</LI>
  122. <LI><B>rect move down</B>: move rectangular selection one row down</LI>
  123. <LI><B>rect move left</B>: move rectangular or range selection one column left</LI>
  124. <LI><B>rect move right</B>: move rectangular or range selection one column right</LI>
  125. </UL>
  126. <P>Supports multi selection </P>
  127. <P><STRONG><A NAME="ToggleLineComment">Toggle Line Comment</A></STRONG> by Robert Fletcher &lt;rfletch6@yahoo.co.uk&gt;</P>
  128. <P>Comments or uncomments a single line or a selected group of lines. Options govern the
  129. positioning of the comment symbol and the handling of already commented lines in a
  130. selection.</P>
  131. <P>Supports all edit modes with defined line comment symbols and works with embedded modes
  132. such as JavaScript within HTML.</P>
  133. <P><STRONG><A NAME="ToggleRangeComment">Toggle Range Comment</A></STRONG> by Robert Fletcher &lt;rfletch6@yahoo.co.uk&gt;</P>
  134. <P>Toggles the state of range comments in the selection. Any text currently commented
  135. out will become uncommented and vice-versa. If there is no selection the command
  136. acts on the entire line at the caret position.</P>
  137. <P>Supports all edit modes with defined range comment symbols and works with embedded modes
  138. such as JavaScript within HTML.</P>
  139. </BODY>
  140. </HTML>