Quickly toggle text wrapping from the View menu or Toolbar
https://github.com/jefferyto/gedit-toggle-text-wrapping
0.3.2
All bug reports, feature requests and miscellaneous comments are welcome at the project issue tracker.
In its current form, this plugin is not compatible with the new design of gedit 3.12 and later.
In gedit 3.14 and later, clicking the line/column number in the status bar opens a menu with several options, one of which is to toggle text wrapping for the current tab.
The last version of gedit that this plugin is compatible with is gedit 3.10.
0.3.0 and higher requires gedit 3; gedit 2 users should use 0.2.0 by Christian Hartmann.
- Download the source code (as zip or tar.gz) and extract.
- Copy the
toggletextwrapping
folder and the appropriate.plugin
file into~/.local/share/gedit/plugins
(create if it does not exist):- For gedit 3.6 and earlier, copy
toggletextwrapping.plugin.python2
and rename totoggletextwrapping.plugin
. - For gedit 3.8 and later, copy
toggletextwrapping.plugin
.
- For gedit 3.6 and earlier, copy
- Restart gedit, select Edit > Preferences (or gedit > Preferences on Mac), and enable the plugin in the Plugins tab.
To toggle text wrapping for the current document, either:
- Select View > Enable Text Wrapping;
- Click the checkmark button in the Toolbar; or
- Use the Ctrl+Shift+B keyboard shortcut.
Note that this only affects the current (active) document; text wrapping for documents in other tabs and/or windows will be unaffected, and the global text wrapping preferences will remain unchanged.
The code in toggletextwrapping/utils
comes from python-gtk-utils;
changes should ideally be contributed to that project, then pulled back
into this one with git subtree pull
.
Christian Hartmann:
Parts of this plugin are based on the work of Mike Doty mike@psyguygames.com
who wrote the infamous SplitView plugin. The rest is inspired from the Python
Plugin Howto document and the Python-GTK documentation.
Francisco Franchetti:
This plugin was developed for gedit 2 by Christian Hartmann at christian.hartmann@berlin.de.
Jeffery To:
Based on the work by Christian Hartmann and Francisco Franchetti :-)
Copyright © 2008-2009 Christian Hartmann christian.hartmann@berlin.de
Copyright © 2011 Francisco Franchetti nixahn@gmail.com
Copyright © 2013 Jeffery To jeffery.to@gmail.com
Available under GNU General Public License version 3