Gedit plugin that allows the line ending style of documents to be quickly ascertained and changed
Shell Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a plugin for Gedit 3 that allows the line ending style of documents to be quickly ascertained and changed. It adds a small, dual-purpose combo box to the status bar which indicates the current document's line ending style and allows it to be changed:


System-wide installation

You will need root privileges. Alternatively, you can install the plugin for only yourself using the instructions below, in the "Local installation" section.

  • Download the v0.2 sources. You can either save & extract GitHub's automatically-generated tarball v0.2.tar.gz or clone the repository, verify my GPG signature of the v0.2 tag, and check out tags/v0.2.
  • In a terminal, cd into the directory containing the v0.2 sources.
  • Configure the package. For most systems, the following configure line will work:

    ./configure --prefix=/usr

    However, on 64-bit Fedora systems, you will need to override the libdir:

    ./configure --prefix=/usr --libdir=/usr/lib64
  • make && sudo make install

If users want the plugin enabled, they will need to enable it on the Gedit Preferences dialog.

Local installation

Local installation of the plugin is for when you don't have root access or you only want to install it for yourself.

  1. You may need to create some directories if you haven't installed Gedit plugins locally before:

    mkdir --parents ~/.local/share/gedit/plugins
  2. Save lineendingstyle.plugin and to ~/.local/share/gedit/plugins
  3. Re-start Gedit.
  4. From the Edit menu, select "Preferences".
  5. On the Plugins tab, scroll down to the entry for "Line Ending Style" and check the checkbox.
  6. Click Close.


  1. From the Edit menu, select "Preferences".
  2. On the Plugins tab, scroll down to the entry for "Line Ending Style" and uncheck the checkbox.
  3. Close Gedit.
  4. Delete lineendingstyle.plugin and from ~/.local/share/gedit/plugins.


  • It is not currently possible to undo changing the line ending style using Ctrl+Z. If you want to change the line ending style back, just change it to the old style of line endings using the combo box in the status bar.
  • If the current document is read-only, the line ending style combo box is disabled.
  • The plugin was originally inspired by Jeffery To's Newline Madness plugin for Gedit 2.


Copyright © 2012  Daniel Trebbien

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

Similar projects