My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Description

This plugin provides configurable text selections based on single or multiple left mouse button clicks, i.e.,

single click, double click, triple click, quadruple click, quintuple click.

For example, a double click can be set to select names that include underscores, or a quadruple click can be set to select a paragraph.

Latest

2011-01-03

  • Version 1.3.0 is ready. This fixes Issues 7, 8, and 9.
  • For  Issue 8 , the configuration file is now stored in ~/.config/clickconfig, and the "Browse to configuration file" button opens Nautilus there. The Import button defaults to the old location so that you can import your previous settings. A more direct solution is to just enter this at the terminal:
  • cp -p ~/.gnome2/gedit/plugins/clickconfig/click_config_configs ~/.config/clickconfig/

Configuration

Regular expressions are used to specify types of text selections. Several presets are included. New selection types can be added just by typing a new name, editing the regex pattern, and clicking Add. The settings are saved in a configuration file in the plugins directory.

A set of selection type assignments for each of the five clicks can be saved with a name so that you can create different setups for different circumstances. And you can assign any of the languages that Gedit detects (for example, Python, C++, or PHP) to your configurations so that Click Config will automatically use rules appropriate for the detected language.

The plugin also creates a submenu within Gedit's Edit menu for accessing the configuration window or directly making a selection. This allows for hotkeys to be set for any of the defined selections.

To modify menu shortcut keys, you may have to enable the feature. In Ubuntu versions prior to Lucid Lynx 10.04, you can go to System > Preferences > Appearance and on the Interface tab check "Editable menu shortcut keys". In Lucid, the Interface tab has been removed, so you have to press Alt-F2, type gconf-editor, then navigate to /desktop/gnome/interface and check "can_change_accels".

Then, in Gedit, while you have the menu item highlighted, press the hotkey combination you want to have assigned to it, or press Backspace to clear the hotkey assignment.

Installation

  1. Download Click_Config-1.2.0.tar.gz.
  2. Extract the files into your ~/.gnome2/gedit/plugins directory:
  3. Restart Gedit
  4. Activate the plugin in Gedit Edit > Preferences > Plugins.

Origin

  • Coding in Python, and wanting to follow the naming conventions of PEP 8.
  • Wanting to use Gedit as my code editor but also easily select underscore_names.
  • Searching for an existing solution I found these thoughts:

Feedback and Support

Please use the issues list to report bugs. Use the Click Config Google group to post questions, comments, or suggestions, etc.

Upgrading from v1.0/v1.01 to v1.1+

The older version had files loose in the plugins folder (click_config_ui.py, etc.). If you installed that version, get rid of the old click_config files except for the click_config_configs file, which stores any configurations you made. To keep those settings, just drag the click_config_configs file into the clickconfig folder or use the Import button on the configuration window to add it to your new settings.

Powered by Google Project Hosting