This plug-in will allow user to jump to the definition of the identifier selected and highlight it.
Note: A part of this plug-in based on the work of Masatoshi Tsushima
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
-
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.
-
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
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.
- 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.