Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Gedit plugin that allows the line ending style of documents to be quickly ascertained and changed
Shell Python
Branch: master
Failed to load latest commit information.
m4 Add .gitignore files based on the svn:ignore properties
po Bump the development version to v0.2.1a
src Bump the development version to v0.2.1a
.gitignore Add .gitignore files based on the svn:ignore properties
LICENSE.txt Relicense under GPL 2 or later
Makefile.am
Makefile.in Release version 0.2
README.md Update README.md for version 0.2
config.guess initial commit
config.rpath initial commit
config.sub initial commit
configure Bump the development version to v0.2.1a
configure.ac Bump the development version to v0.2.1a
install-sh initial commit
missing initial commit

README.md

Introduction

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:

Screenshot

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 lineendingstyle.py 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.

Uninstallation

  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 lineendingstyle.py from ~/.local/share/gedit/plugins.

Notes

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

License

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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
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

Something went wrong with that request. Please try again.