Skip to content

Plugin for Gedit text editor that adds feature to converts tabs to spaces and spaces to tabs

Notifications You must be signed in to change notification settings

lfom/gedit-plugin-indent-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Indent Converter plugin for Gedit

Converts tabs to spaces and spaces to tabs in Gedit.

Adds two items to Tools -> Indent Converter menu:

  • Spaces to tabs: replaces all leading spaces with tabs in current document. It uses smart guess algorithm to guess the tab size used in the document. If that fails, uses tab size from gedit preferences.

  • Tabs to spaces: replaces all leading tabs with spaces (size is taken from current gedit preferences) in current document.

Installation

  1. Download latest source package.
  2. Copy indent-converter.plugin and indent-converter.py files to ~/.local/share/gedit/plugins/ (or /usr/lib/gedit/plugins/ for system-wide installation). Optionally, use make install to install files locally.
  3. Open (restart) Gedit.
  4. Go to Edit -> Preferences -> Plugins.
  5. Enable Indent Converter plugin.

Translation

Please, contribute your languages.

Fork text

forked from disfated/gedit-plugin-indent-converter

I just wanted to learn about Python and GTK integration, so I decided to update this plugin to newer Gedit using Python3.

To Do

  • Make it work in newer Gedit (tested on v3.34.0) using simple context menus
  • Add shortcuts and menu entries to the Tools menu
  • Add some commits from @bruno-schneider repo for easier install and i18n support

About

Plugin for Gedit text editor that adds feature to converts tabs to spaces and spaces to tabs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.5%
  • Makefile 6.5%