Tech:Open Source/Basic Linux/Gedit

From Cyclopath

Jump to: navigation, search
up to: Tech:Open Source > Basic Linux

Contents

[edit] gedit

[edit] Activate preinstalled plugins

Some features (plugins) are installed but turned off by default. Click Edit->Preferences and click on plugins. Check the plugins you want.


[edit] Install plugin package

To get more plugins, including some good ones:

sudo apt-get install gedit-plugins


Bookmarks. Good for navigating around a lot of files.

File Broswer Pane. Easy file open from flashclient or pyserver folders.

Embedded Terminal.

Python Console.

With these and a few others, you almost have a ide.

[edit] Add *.as files to javascript code highlighting & file browsing pane

Add

<glob pattern="*.as"/>

to the

<mime-type type="application/javascript">

declaration in the

/usr/share/mime/packages/freedesktop.org.xml 

file and then run:

update-mime-database /usr/share/mime

[edit] ack

ack-grep is a very superior alternative to grep for source code searches. If you activate the embedded terminal in gedit (see above) you can do ack (or grep) files searches right in your editor.

Do not install the ack package in Ubuntu. ack is some Japanese char-code translator. Install ack-grep and make a link for ack

sudo apt-get install ack-grep
cd /usr/bin
sudo ln ack-grep ack

Now you can just type 'ack termtofind' in the cp, flashclient, or pyserver directories, whichevver your preference.

To avoid duplicate listings from the build directory, create a .ackrc file in your home dir and add:

--ignore-dir=build
Personal tools