My favorites | Sign in
Project Logo
             
Show all Featured downloads:
autotab-0.6.tar.gz
Feeds:

What is it?

Auto Tab is a plugin for Gedit that auto-detects indent settings (width and tab/spaces) in source files and adjusts tabbing accordingly for each buffer on the fly. Useful for people who are working on multiple projects or with other people's code, as coding styles often vary and needs to be preserved. Note that Auto Tab does not reformat or change the source code to use your favorite tab length - this is for the developer that wants or needs to work with the source as-it-is.

Changelog

Auto Tab (0.6)  2009-09-27
  * Special case Makefiles so they always use tabs.
  * Fix proper counting of indentation, patch from danielfalk22 (issue #7)

Auto Tab (0.5)  2008-09-19
  * Bugfix release: Closes issues #4 and #5

Auto Tab (0.4)  2008-02-27
  * New, smarter algorithm courtesy of Lars Uebernickel.
  * Bugfix for Gedit 2.20 and above (fixes issue #2 and #3)
  * GPLv3

Auto Tab (0.3)  2007-03-30
  * Added a way for other plugins to tell Auto Tab to skip processing a 
    document with view.set_data("AutoTabSkip", True).

Auto Tab (0.2)  2007-03-23
  * Changed to use 'loaded' and 'saved' signals instead of update_ui.
  * Added Modelines plugin compatibility, if the Modelines plugin is active and
    has set tab settings they will be respected and displayed as-is.
  * Added CHANGELOG file.

Auto Tab (0.1)  2007-03-11
  * Initial release to http://code.google.com/p/gedit-autotab/

Installation

Done!

Usage

You should not need to do anything, the plugin should take care of adjusting the tab width and space/tab settings for each file as you edit them. The plugin assumes that either tabs, or spaces width a width of 2, 3, 4 or 8 is used. In the case of tabs, your local settings is used for the width to display.

There is an entry in the status bar showing what the currently detected status line is.

Other plugins

If the Modelines plugin is also activated, any modelines it reads will be respected (Auto Tab will just display those values instead, and skip guessing altogether for that file).

Other plugins can also disable Auto Tab for any view by simply doing:

view.set_data("AutoTabSkip", True)

Setting the value to False will enable Auto Tab again.

Bugs

Please report them in the issue tracker.









Hosted by Google Code