Skip to content

pallabpain/goto-definition-gedit3

Repository files navigation

Go-To Definition Plugin for Gedit 3

This plug-in will allow user to jump to the definition of the identifier selected and highlight it.

Demo 1

Note: A part of this plug-in based on the work of Masatoshi Tsushima

Requirements

The plugin requires exuberant-ctags to be installed on the system.

To install Exuberant Ctags on Ubuntu, use the following command:

	sudo apt-get install exuberant-ctags

The plug-in was developed and tested for Gedit 3.14

Installation

  • Download the archive on your computer

  • Extract the files.

  • Open a terminal window and navigate to the extracted folder.

  • Type sh install.sh and hit Enter and you're good to go.

Usage

  • Go to the menu and click on Select Root Folder (this can be your project folder which contains all your related files)

  • Open any file which belongs to your Root Folder (or Project folder) and right click on any identifier. If the context menu shows the Go-To Definition option, then click on it and it will take you to the definition of the identifier.

  • Alternatively you can press Ctrl+F1 on the identifier and it will do the same.

  • Keep refershing the tags after making changes in your project.

Keyboard Shortcuts

  • To select root folder: Ctrl + Alt + O
  • To check your current root folder: Ctrl + Alt + C
  • To check your current root folder: Ctrl + Alt + R
  • To go to the definition of an identifier: Ctrl+F1

Languages Supported

This plug-in supports all the languages supported by Exuberant Ctags. But, full fledge functionality may not be available for all. It should work well for C, Python, C++, Ruby. Although the plug-in is being tested exhaustively and it will soon work for all supported languages.

Known Issues

  • When selecting from multiple matches, the numeric keypad's Enter key doesn't work
  • Certain kinds of tags are not generated by ctags. Hence, navigating to those isn't possible.

If you come across any issue, then please report it.

About

Jumps to the definition of an identifier and highlights it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published