rss feed Twitter Page Facebook Page Github Page Stack Over Flow Page

Adding a folding text icon in gEdit

Fortunately, jefferyto created a great plugins that allow to wrap/unwrap text with a click of a button.

Install "gedit-toggle-text-wrapping"

First, let's download and extract the plugin


Then, lets create the plugin folder

mkdir -p ~/.local/share/gedit/plugins

Now, we need to copy the right file based on the version of gEdit.

gedit --version

IF the version if 3.6 or less:

cp toggletextwrapping.plugin.python2 ~/.local/share/gedit/plugins/toggletextwrapping.plugin

IF the version is 3.8 or newer:

cp toggletextwrapping.plugin ~/.local/share/gedit/plugins/toggletextwrapping.plugin

Copy the plugin

cp -r toggletextwrapping ~/.local/share/gedit/plugins

Activate plugin

Restart gedit

Now, navigate to "Edit -> Preferences

Select the "plugins" tab and check the "Toggle Text Wrapping".

to wrap or unwrap text, you can either click on the Green Check or by using the keyboard shortcut: Ctrl+Shift+B