Permalink
Commits on Feb 3, 2014
  1. Add instructions for installing the GSettings schema without root access

    Cherry picked @93d052a, then modified two links.
    committed Feb 3, 2014
Commits on Jan 19, 2014
  1. Update the README with instructions for Gedit 3.8+

    Also mention that the system must have the GtkSource-3.0 typelib installed.
    committed Jan 19, 2014
Commits on Sep 22, 2013
  1. Fix an issue with the "Restore whitespace" preference

    Only restore trailing whitespace on the current line if it was removed.
    
    Bug reported by Jürgen Hermann.
    
    Refs #2
    committed Sep 22, 2013
  2. Fix for CRLF line endings

    As reported by Dávid Tóth, the plugin could delete non-whitespace if the
    file uses CRLF line endings
    
    Added a negative lookahead so that the end-of-line regexp will greedily
    consume '\r\n' rather than the '\r' only.
    committed Sep 22, 2013
Commits on Apr 13, 2013
  1. Add a preference for restoring trailing whitespace after saving

    Suggested by Ricardo Graça
    
    Fixes #2
    committed Apr 13, 2013
Commits on Dec 8, 2012
  1. Scroll to the end when restoring blank lines

    Fixes #6
    Daniel Trebbien committed Dec 8, 2012
  2. Convert to a GeditViewActivatable plugin

    This simplifies the plugin code quite a bit and also gives the plugin
    direct access to the GtkTextView instance.
    Daniel Trebbien committed Dec 8, 2012
  3. Improve restoring trailing whitespace on 'saved'

    Also restore blank lines leading up to the line with the whitespace-to-be-
    restored.
    Daniel Trebbien committed Dec 8, 2012
  4. Fix `EOL_WHITESPACE_RE'

    The end-of-line pattern needs to include the end of string, $, as an
    alternative.
    
    Omission of the $ alternative was preventing trailing whitespace on the
    last line from being trimmed.
    Daniel Trebbien committed Dec 8, 2012
  5. Minor refactoring & add comments

    Daniel Trebbien committed Dec 8, 2012
  6. Use regular expressions to trim trailing whitespace

    This is a lot faster than the previous approach of iterating through the
    document.
    
    Idea adapted from Jon Leighton's Trailsave plugin:
    https://github.com/jonleighton/gedit-trailsave
    Daniel Trebbien committed Dec 8, 2012
Commits on Dec 2, 2012
  1. Add back trailing whitespace up to the cursor after saving

    Fixes #2
    Daniel Trebbien committed Dec 2, 2012
  2. Minor refactoring

    Daniel Trebbien committed Dec 2, 2012
  3. Fix deprecation warnings

    get_data() and set_data() are deprecated in PyGObject 3.3.
    https://bugzilla.gnome.org/show_bug.cgi?id=641944
    Daniel Trebbien committed Dec 2, 2012
Commits on Feb 8, 2012
  1. Shorten the file names

    Following the de facto naming convention.
    committed Feb 8, 2012
  2. Call `GObject.Object.__init__(self)`

    Like the Python plugin "how to" samples
    
    http://live.gnome.org/Gedit/PythonPluginHowTo
    committed Feb 8, 2012
Commits on Feb 5, 2012
  1. Merge branch 'master' of github.com:dtrebbien/gedit-trim-trailing-whi…

    …tespace-before-saving-plugin
    committed Feb 5, 2012
  2. Add debugging code

    committed Feb 5, 2012
Commits on Feb 1, 2012
  1. Update README.md

    committed Feb 1, 2012
Commits on Jan 25, 2012
  1. Add a README

    committed Jan 25, 2012
  2. Switch back to GPL 2 or later

    I am relicensing my changes to Osmo Salomaa's code, under the original
    license. This is to correct a potential licensing snag. Gedit itself is
    licensed under GPL 2 or later. It might technically be unlawful to
    distribute Gedit together with this plugin were it licensed under GPL 3
    or later.
    committed Jan 25, 2012
Commits on Feb 13, 2011
  1. Change the Loader from "Python" to "python".

    Versions of Gedit prior to 2.24.1 treat the "Loader" line
    case-sensitively, only recognizing Python extensions if the Loader is
    exactly "python".
    committed Feb 13, 2011
Commits on Feb 12, 2011
  1. Update the copyright line.

    committed Feb 12, 2011
  2. Fix an error that occurs when saving new buffers.

    When saving new buffers, the language property of the `GeditDocument` is
    `None`. Before attempting to get the language ID, first make sure that
    `doc.get_language()` is not `None`.
    committed Feb 12, 2011
  3. Update the copyright lines.

    committed Feb 12, 2011
  4. Add a mode line.

    committed Feb 12, 2011
Commits on Dec 26, 2010
  1. * src/trim-trailing-whitespace-before-saving.py

      (on_document_saving): Do not trim trailing whitespace if the highlighting
        mode is "diff".
    committed Dec 26, 2010
Commits on Dec 25, 2010
Commits on Dec 22, 2010
  1. Rename the plugin.

    committed Dec 22, 2010
Commits on Dec 21, 2010