Useful gedit external tools
Check if gedit-plugins is installed.If not, install them as follows:
- Enable "Universe" repository
- Install gedit-plugins
- Activate "Embedded Terminal"
- Copy the tools files in the config folder
sudo add-apt-repository universe sudo apt-get update
Install gedit-plugs with the command:
sudo apt install gedit-plugins
Open gedit and then select Edit->Preferences->Plugins and check off Embedded Terminal
- n.b. Compulsory activated for "Run Script" and "Execute Current Line" tools
Copy the contents of the "tools" folder into the directory of the gedit tools configuration folder which is generally "~/.config/gedit/tools" (if not, create it)
Once gedit is open, it is possible to use the short-cuts (F5) or open from the drop-down menu Tools-> Extranl Tools-> Run Script
This command run the current document (script) in the Embedded Terminal. The script could be ".sh" (run with bash env) or ".py" (run with python env) or ".m" (run with matlab)
Once gedit is open, it is possible to use the short-cuts (ctrl+F5) or open from the drop-down menu Tools-> Extranl Tools-> Run Script External
This command run the current document (script) in an external gnome-terminal (bash env). The script could be ".sh" (run with bash env) or ".py" (run with python env) or ".m" (run with matlab)
Once gedit is open, it is possible to use the short-cuts (ctrl+E) or open from the drop-down menu Tools-> Extranl Tools-> Execute Current Line
This command run the current line selected in the document (script) in the Embedded Terminal. The script could be ".sh" (run with bash env) or ".py" (run with python env).