Skip to content

Options dialog for plugin, and bug fixes for multiple tabs and plugin unloading.#5

Open
mesilliac wants to merge 3 commits intokapouer:masterfrom
mesilliac:master
Open

Options dialog for plugin, and bug fixes for multiple tabs and plugin unloading.#5
mesilliac wants to merge 3 commits intokapouer:masterfrom
mesilliac:master

Conversation

@mesilliac
Copy link
Contributor

Each in a separate commit... the big change is the options dialog. Integrating with GSettings was difficult while maintaining the ability to just drop the plugin in the ~/.local/share/gedit/plugins directory, so i wrote a simple config file saver / loader to save the options. It saves config as ~/.config/gedit/autotab.

The options are currently:

  • Guess Document Indentation - turns the main functionality on or off
  • Convert Clipboard Text - turns the clipboard paste functionality on or off

In addition to this there were a couple bugfixes.

Bugfix one: The clipboard paste handler wasn't being properly disconnected when deactivating the plugin.

Bugfix Two: When multiple tabs were open the tab settings were being applied always to the active tab, in stead of the one actually being parsed. This resulted in various problems when the plugin was activated with multiple tabs open.

mesilliac added 3 commits May 7, 2017 08:36
Previously all updates were applying to the currently active view.
The dialog is integrated with gedit's plugin chooser.

Options are:
  * guess_tabs: whether or not to guess document indent settings.
  * convert_paste: whether to convert clipboard text indentation.
@kapouer
Copy link
Owner

kapouer commented May 7, 2017

Cool, i've installed your PR locally. If everything's all right i'll merge soon (but now i'm often using gnome-builder so it will take some days before i'm sure it works as expected).

@Cirromulus
Copy link

Fork works well for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants