Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 of 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?

share|improve this question
1  
You could leave the preferences window open while you edit or alt+e>e>alt+w works too. –  user78485 Jul 21 '12 at 21:57

3 Answers 3

up vote 8 down vote accepted

Have a look at this Text-Wrap-Plugin: http://hartmann-it-design.de/gedit/TextWrap/

I have not tested it myself, but it may serve yout needs.

share|improve this answer

There 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)

share|improve this answer

For gEdit v3

Use the Text Wrap plugin on live.gnome.org/Gedit/Plugins/ :

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.

share|improve this answer
    
Eesh. Somehow I downvoted this. I definitely didn't mean to. And I did it too long ago to fix? Meanwhile, all links are broken. –  Amanda Mar 1 at 3:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.