<info> <name>Jim Campbell</name> <email>jwcampbell@gmail.com</email> <desc>Use a command-line interface for advanced editing</desc> </info>

The <app>Commander</app> plugin is a plugin for advanced <app>gedit</app> users that allows you to perform command-line actions on the current file. To enable the commander plugin, select <guiseq><gui>Edit</gui><gui> Preferences</gui><gui>Plugins</gui><gui>Commander</gui></guiseq>.

Once you have enabled the plugin, activate it by pressing <keyseq><key> Ctrl</key><key>.</key></keyseq>.

The last key in the above key combination is a period.

To Do This | Press This
See an overview of available commands | Tab + Tab
Find a word within the current file | / foo This will find the word foo.
Replace a word within the current file | // foo bar This will replace foo with bar.
Move the cursor to a certain line number in your file | go [line number] or just g [line number]
Toggle the bookmark indicator for the current line | bookmark or just b

Some commands, such as the <app>bookmark</app> command require that the appropriate plugin be installed and activated. If you do not have the appropriate plugin installed and activated, you will receive an error message.