Gedit Line Tools Plugin
This plugin provides advanced line editing capabilities to gedit. This plugin is a branch of the Apps/Gedit/AdvancedEditingPlugin.
Current Features
- Trim Line : Removes the text from the current cursor position to the end of the line
- Clear Line : Removes all the text from the current line
- Kill Line : Completely removes the current line
- Duplicate Line : Creates a duplicate of the current line
- Raise Line : Moves the current line up while moving the line above it down by one line
- Lower Line : Moves the current line down while moving the line below it up by one line
- Copy Line : Copies the current line to the clipboard
- Cut Line : Copies the current line to the clipboard, then completely removes it
- Paste Line : Pastes the clipboard at the current line moving the contents of the current line down
- Replace Line : Pastes the clipboard at the current line replacing the contents of the current line
- Line Bookmarks : Set bookmarks at any line using Shift+Control+Number and then return to it later by pressing Control+Number (Currently there is a GTK issue preventing me from setting menu accelerators as Shift+Control+Number, it must be done manually)
Using this plugin
Installation
Download both files and place them into ~/.gnome2/gedit/plugins. If the plugins directory does not exist, create it: mkdir -p ~/.gnome2/gedit/plugins. Activate the plugin via Edit->Preferences->Choose Plugin Tab.
Configuring Shortcuts
If you enable editing menu shortcuts, you can customize the shortcuts of this plugin by holding your mouse over the item in the gedit menu and then pressing backspace. After you do this, you will be able to input a new shortcut to the function so this plugin can best suit you.
Requested Features
- Add your requests
You say: If you enable editing menu shortcuts,... - so how can I do it? <-- this refers to another plugin: EditShortcuts
Pending Issues
- There is an issue when pasting/replacing a line when the contents of the clipboard is not a line
- There is an issue when pasting/replacing a line when the current cursor position has a greater index than the size of the pasted line (trivial)