Skip to content

A gedit/Pluma/xed plugin to switch between document tabs using Ctrl+Tab and other common keyboard shortcuts

License

Notifications You must be signed in to change notification settings

jefferyto/gedit-control-your-tabs

Repository files navigation

Control Your Tabs, a plugin for gedit, Pluma, and xed

Switch between document tabs using Ctrl+Tab and other common keyboard shortcuts
https://github.com/jefferyto/gedit-control-your-tabs
v0.5.1-dev

All bug reports, feature requests, and miscellaneous comments are welcome at the project issue tracker.

Be sure to watch the project on GitHub to receive notifications for new releases.

Requirements

This plugin requires one of these text editors:

  • gedit 3.12 or later
  • Pluma 1.26.0 or later
  • xed 1.4.0 or later

The last version compatible with gedit 2 is v0.1.2, and the last version compatible with gedit 3.0–3.10 is v0.3.5.

Installation

  1. Download the latest release and extract.
  2. Copy the controlyourtabs folder and the controlyourtabs.plugin file into one of these paths (create if it does not exist):
    • gedit: ~/.local/share/gedit/plugins
    • Pluma: ~/.local/share/pluma/plugins
    • xed: ~/.local/share/xed/plugins
  3. Restart the text editor, then activate the plugin in the Plugins tab of the text editor’s Preferences window.

Packages

Usage

This plugin adds the following keyboard shortcuts:

Action Shortcut
Switch to next most recently used tab Ctrl + Tab
Switch to tab on the left Ctrl + Page Up
Switch to tab on the right Ctrl + Page Down
Move current tab left Ctrl + Shift + Page Up
Move current tab right Ctrl + Shift + Page Down

Hold down Ctrl to continue tab switching. Press Esc while holding Ctrl to cancel and return to the initial tab.

Preferences

  • Ctrl+Tab and Ctrl+Shift+Tab switch to tabs on the left and right

    Change Ctrl + Tab and Ctrl + Shift + Tab to switch to tabs on the left and right instead of in most recently used order.

Contributing

The code in controlyourtabs/utils comes from python-gtk-utils; changes should ideally be contributed to that project, then pulled back into this one with git subtree pull.

Credits

Inspired by:

License

Copyright © 2010-2013, 2017-2018, 2020, 2023-2024 Jeffery To [email protected]

Available under GNU General Public License version 3

Other plugins you may like

  • Ex-Mortis (gedit only)
    Reopen closed windows and optionally restore windows between sessions

  • Python Console
    Interactive Python console standing in the bottom panel

  • Tab Group Salute (gedit only)
    Switch between tab groups using Ctrl+<key above Tab>

About

A gedit/Pluma/xed plugin to switch between document tabs using Ctrl+Tab and other common keyboard shortcuts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages