jEdit
jEdit is one of the best, open source, text editor out there. Here are some macros and plugs.
- Macros
- Plugs
Macros
Recent Files
A macro to easily re-open a recent file. This is a modified version of Buffer_Switcher.bsh (written by Ollie Rutherfurd), to show recent files instead of open buffers.
Active Plugins to Buffer
This macro creates a new buffer an writes a list of currently active plugins to it. The list is formatted in DokuWiki's table syntax.
Create Scratch Buffer
BeanShell macro script to rapidly create temporary buffers in a specified directory, using a random name for the buffer. When you bind a shortcut to it (by example CS+n) this allows you to easily create a buffer to take notes and still save it without having to think about a name/location (just in case your computer crashes). By using the Delete_Buffer.bsh macro you can delete the buffer as easily as you created it. (i'm not entirely sure if "scratchbuffer" is a good name for this kind of buffer. Better names are welcome :))
Switch Project
A BeanShell macro script to easily switch between Projects (this macro requires the ProjectViewer plugin to work!). It is based on Buffer Switcher by Ollie Rutherfurth
Enter and Close Bracket
This is a useful macro when you bind it to ENTER. It will execute the regular 'insert enter and indent', except if the character before the cursor is a '{'. In that case the macro will also insert the closing bracket ('}') and place the cursor in between.
Plugs
Editmodes For SwitchBuffer
A dataprovider for the new SwitchBuffer, which is currently in beta and can be found here, to make it possible to change the editmode of a buffer, by using SwitchBuffer.
Vimposter (patched)
Vimposter provides vi/vim emulation for jEdit.
The Vimposter plugin is originaly written by Ollie Rutherfurd
The main difference between my patched version and the original version is an additional option to disable Vimposter when going into edit mode. This is usefull because the original Vimposter breaks some default jEdit-shortcuts while in editmode. By simply disabling Vimposter while in editmode you are using only jEdit itself and thus everything will work. To reenable Vimposter it is recommended to bind your 'Esc'-key to the 'Vimposter'-action. This way you can keep hitting 'esc' to go in command mode (which in this case is the same as simply enabling Vimposter).