Change newline type for the current document
https://github.com/jefferyto/gedit-newline-madness
v0.3.4
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. More importantly, APIs required by this plugin were removed in gedit 3.14.
As such, development of this plugin has come to an end. The last version of gedit that this plugin is compatible with is gedit 3.10.
v0.2.0 and higher requires gedit 3. The last version compatible with gedit 2 (2.29.5 and higher) is v0.1.0.
- Download the source code (as zip or tar.gz) and extract.
- Copy the
newline-madness
folder and the appropriate.plugin
file into~/.local/share/gedit/plugins
(create if it does not exist):- For gedit 3.6 and earlier, copy
newline-madness.plugin.python2
and rename tonewline-madness.plugin
. - For gedit 3.8 and later, copy
newline-madness.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 select a newline type for the current document, either:
- Select Edit > Change Line Endings; or
- Click on the line ending selector in the statusbar, between the tab width selector and cursor position information.
Note that changing the newline type cannot be undone with Undo
(yet).
The code in newline-madness/utils
comes from python-gtk-utils;
changes should ideally be contributed to that project, then pulled back
into this one with git subtree pull
.
Based in part on:
- Auto Tab by Kristoffer Lundén and Lars Uebernickel
- The gedit statusbar combo box widget
Copyright © 2010-2013 Jeffery To jeffery.to@gmail.com
Available under GNU General Public License version 3