Depending on nature of the text, sometimes line wrapping is convenient, sometimes it is just confusing. And every time I need to switch this (pretty frequently) I have to do to View - Preferences - Enable text wrapping - Close - four clicks, not mentioning all the hand, eye and thought motion. Can this be done a quicker way?
Most text editors have this two clicks away (in a menu) at maximum, some have it on a toolbar or a hot key, but I couldn't find any quick way in Gedit. Maybe there is a hot key I don't know?
15 Answers
In gedit 3.18 text wrapping can be turned on and off from the status bar.
2Edit -> Preferences
under the view tab check enable text wrapping
Have a look at this Text-Wrap-Plugin:
I have not tested it myself, but it may serve yout needs.
1There is no such shortcut that I know of, and the gedit documentation confirms it.
There is a way in Gnome to add your own shortcuts, but it is meant for menu options. I don't think it will work with a function which is activated by checking a checkbox in the preferences. If you still want to try it, follow this:
Activate this feature * Run gconf-editor and go to /desktop/gnome/interface/ * Check the 'can_change_accels' option * no need to restart anything, just close gconf-editor Change menu shortcuts in your apps * Start your application : Shotwell here * Place your mouse on the menu you want to change * Press the key combination : you'll see your shortcut appear in the menu
(Instruction written by Bubblegum)
For gEdit v3
Use the Text Wrap plugin on :
Text Wrap
A remake of the Text Wrap plugin from gedit 2. I changed the name to toggletextwrap because it seems textwrap is already in the name space somehow. Files: toggletextwrap.plugin and toggletextwrap.py
Install it using @fossfreedom's instructions on How do I install a plugin for gEdit v3?, specifically this answer.
1