Ubuntu/Debian/Mint news and tutorials | Linux stuff
facebook.png
twitter.png
feed.png
Quick Tip
Find Files Containing a Text Pattern
find . -iname "*.txt" -exec grep -l "hello" {} +
Quick Tip
Create a Bootable USB from an ISO Image
sudo dd if=/path/to/image.iso of=/dev/sdX bs=4096k
Replace /dev/sdX with your USB device, for example, /dev/sdb.
Quick Tip
Disable Overlay Scrollbars in GNOME
gsettings set com.canonical.desktop.interface scrollbar-mode normal
Changes should occur instantly. The overlay scrollbars should now be replaced with normal scrollbars. This method works for Ubuntu 12.10 and above.
Categories
Linux Cheat Sheet
Have a look at our Linux Cheat Sheet for quick one-liners, commands and tips.

Medit is a somewhat simple text editor with all the usual features you would expect from it: it has support for tabs, syntax highlighting, indentation and more.

medit01

Tab support is one of the features, and you can switch between tabs using the Alt+Left or Alt+Right keys.

Options to quickly comment or uncomment code are also available in the Edit menu.

You can split the current window horizontally or vertically:

split

In the Tools menu there are two quick options to sort lines or to sort and eliminate double entries (Sort | Uniq). These tools can be configured and more can be added via the Preferences window (see below).

The Preferences window offers some rich configuration options for the interface and general behavior. Over Gedit, the options are more abundant in Medit.

config01

config02

And here’s a powerful feature, which allows you to write your own tools directly in Medit:

config03

Plugins are also supported in Medit, and several come bundled by default:

plugins

Some other features include shortcuts configuration, search and replace, bookmarks, text wrapping.

Overall, I think you can find Medit as the perfect replacement for Gedit, in that it blends well in GNOME and it comes with more features and powerful configuration tools. The ability to write your own tools (in various languages) directly in the Preferences window is a nice touch and a productive feature.

Installing Medit in Ubuntu 14.04

Trusty comes with version 1.1.1, and the PPA doesn’t have the latest release, so you can compile and install it from source by following the next easy steps.

First, install the dependencies:

sudo apt-get build-dep medit

Next, download the source tarball from SourceForge (direct link here), save it somewhere on your hard drive and uncompress it:

tar -xjf medit-1.2.0.tar.bz2

Now change the current working directory to medit-1.2.0 and issue the following commands to compile and install it:

./configure
make
sudo make install

Or, you can install it as normal user by specifying a prefix:

./configure --prefix=$HOME/usr
make
make install

In this case, the program will be installed as $HOME/usr/medit, so you may add $HOME/usr to your $PATH variable.

Share this!Share on RedditShare on StumbleUponShare on FacebookTweet about this on TwitterShare on TumblrShare on Google+

Leave a Comment

Sponsors
Online Readers
Advertise on TuxArena