Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

A gedit plugin to change newline type / line endings for the current document

License

Notifications You must be signed in to change notification settings

jefferyto/gedit-newline-madness

Repository files navigation

Newline Madness, a plugin for gedit

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.

No Longer Maintained

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.

Requirements

v0.2.0 and higher requires gedit 3. The last version compatible with gedit 2 (2.29.5 and higher) is v0.1.0.

Installation

  1. Download the source code (as zip or tar.gz) and extract.
  2. 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 to newline-madness.plugin.
    • For gedit 3.8 and later, copy newline-madness.plugin.
  3. Restart gedit, select Edit > Preferences (or gedit > Preferences on Mac), and enable the plugin in the Plugins tab.

Usage

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

Development

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.

Credits

Based in part on:

  • Auto Tab by Kristoffer Lundén and Lars Uebernickel
  • The gedit statusbar combo box widget

License

Copyright © 2010-2013 Jeffery To jeffery.to@gmail.com

Available under GNU General Public License version 3

About

A gedit plugin to change newline type / line endings for the current document

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages