46

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?

Melebius
  • 11,431
  • 9
  • 52
  • 78
Ivan
  • 57,065
  • 2
    You could leave the preferences window open while you edit or alt+e>e>alt+w works too. –  Jul 21 '12 at 21:57

5 Answers5

50

In gedit 3.18 text wrapping can be turned on and off from the status bar.

enter image description here

freddybob
  • 1,373
13

Edit -> Preferences

under the view tab check enable text wrapping

enter image description here

mateen
  • 657
9

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.

Clausi
  • 4,957
  • 1
    Does it work in Gedit 3.10 versions? I tried to install it under ~/.local/share/gedit/plugins and gedit doesn't pick it up. – htellez Dec 28 '15 at 23:08
2

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)

rumtscho
  • 1,051
1

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.

Ubuntu
  • 19
  • 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 01 '14 at 03:12