Choosers Plugin

If you use different tools for selecting and getting the programming values for things such as fonts, colors or pathnames to directories/files somewhere in your file system, then the Choosers plugin will come in handy. After installing it (select the Plugins / Install… menu item and select the “Choosers” plugin from the resulting list), the Plugins menu will be populated with the new Choosers submenu which contains four menu options:

  • Color
  • Font
  • Directory
  • File

The Color item will display the standard color picker widget available on your particular platform. On MacOS and Windows, the color picker even contains an eye-dropper that will allow you to select any pixel color on your screen which can be super handy. After selecting the color, click the Choose button to copy the RGB color value to the clipboard.

The Font item will display the font picker widget which will allow you to select a font family, weight and size, including the ability to add underline and strikeout features to the font. The resulting font string value will be copied to the clipboard when the Choose button is clicked.

Font Chooser Window

The Directory and File items allow you to browse your file system for a given directory/file using open file browser available on your particular platform. Selecting the Open button will copy the pathname to the clipboard.

Just some handy plugin functionality to help make your programming workflows better.

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

Choosers Plugin

Vim Macro Recording

A quick tip for Vim mode users…

TKE has support for Vim’s macro recording feature when Vim mode is enabled. Vim macros are basically just a recording of some number of keystrokes that the user used while recording is enabled. These recorded macros can then be “played” at any time which will essentially replay the keystrokes within Vim, allowing you to do a lot of repetitive tasks quite quickly within the editor.

There is support for automatic recording (that is, you can repeat the last Vim command at any time just by pressing the ‘.’ key). You can also repeat the last Vim command-line (started by entering ‘:’ when in COMMAND mode), by entering the ‘@’ key followed by the ‘:’ key.

There is also support for recording to multiple macro “registers”. Each register is named by a single letter of the alphabet (i.e., a-z, A-Z as well as the doublequote (“) character). To begin recording keystrokes to a named register, simply enter ‘q’ (when in COMMAND mode) followed by the name of the register to use and then begin entering the keystrokes that you would like to store in the macro register. When you are done entering keystrokes, enter ‘q’ when in COMMAND mode. While you are recording, the information bar at the bottom of the main window will display the recording status and the name of the macro register being recorded into.

Main Window Status Bar Indicating Recording Status

 

To playback the recorded keystrokes of a register, enter ‘@’ when in COMMAND mode, followed by the name of the register to playback. The keystrokes will be played back immediately.

So if you are Vim user, you probably already know this, but here is the TKE tip for this week….

Vim macros are recordable and usable in any editing buffer within TKE. That means that you could record a macro in one editing buffer and replay that macro in another editing buffer. So if you find yourself performing the same types of tasks in multiple files, do the task once in one buffer and replay the macro in all of the other files. (Insert mind blowing explosion sounds here).

Sweet.

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

Vim Macro Recording