New in v0.5:
New in 0.2: lengthly results placed in scroll pane; handle error that occurs when results overflow native system's std out buffer.
See other ideas for Ruby editing macros.
]]>Use in combination with the Ruby edit mode v0.3 to solve most of your Ruby indenting needs!
TO INSTALL:
Last Update: Now for Linux, too: Invoke cd command only, if buffer directory really has changed. ]]>
Based on the following macros: Retain_Or_Remove_Lines. by Jia Zhiming, Grep_Buffer.bsh and Reverse_Grep_Buffer.bsh by Robert Fletcher ]]>
Similarly to the XML plugin, it can surround multiple selections with the string requested by the user (by default, an asterisk- "*"). To be accepted as valid markup, though, the string must be at the start or end of the word, so the macro inserts the string at the closest word boundary without shrinking the selection. The selection is preserved, making it easier to apply another markup command afterwards.
Unlike the Add_Prefix_and_Suffix.bsh macro, this one operates on selections, not selected lines.
]]>Version 0.3 takes the selection properly into consideration
Version 0.2 incorporates the GPL header to the macro.
]]>
/** * If the selection is set, then we will use it to determine the * selected text. Else we will use the {@link * Textarea.getCaretLine()} method. */]]>
For example: Index old items no longer present shopping list peaches apples calls to make call Larry call Moe call Curly After running UpdateIndex macro the file will be: Index shopping list calls to make shopping list peaches apples calls to make call Larry call Moe call CurlyIt works really well in conjunction with my WikiWord.bsh macro which can turn each header into an active link. ]]>
SelectPrevWord.bsh - like Select Previous Word (Eat Whitespace) but don't eat whitespace in front of the word.
BackspaceWord.bsh - like Delete Previous Word (Eat Whitespace) but don't eat whitespace in front of the word.
Using these for the shortcuts C-left, CS-left, and C-backspace gives you word movement that always stops at the beginning of words, but does not stop at the end of words. (For the 'Next' variants use the standard actions with (Eat Whitespace))
The Move_Selection_* macros allow you to ... well, move the current selection around. If you like you can bind them to complicated shortcuts and ruin your fingers. ;-)
(I use AS- plus the standard movement keys... e.g. ASC-left to move past one word on the left)
There is lots of ugly code duplication in these macros, but I guess it's ok as these should not be macros but builtin anyway. :-)
]]>Installation instructions:
Usage: