Code Monkey home page Code Monkey logo

gedit-plugin-indent-converter's Introduction

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

gedit-plugin-indent-converter's People

Contributors

disfated avatar iromli avatar juanm55 avatar lfom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.