gedit to Geany

I’ve decided lately to switch from gedit to Geany as the default editor. I had done this before and really liked it (I didn’t want to set it up again because I didn’t remember all the settings I had changed). Geany is more religious how it handles text and I can’t really define it better than that. All I remember is that there were some odd quirks when I adjusted to gedit like selecting text; also Geany just runs beautiful, real light. Geany is a actually an IDE (an integrated development environment) so it’s more than a text editor but it can be pruned down to feel like a basic text editor and it just runs very very nice.

Settings

To get Geany to behave and feel like gedit a number of setting changes will need to be made. To make changes open up the preferences (Edit > Preferences) and change these settings in the Tabs:

General : Startup

  • Uncheck: Load virtual terminal support

General : Miscellaneous

  • Check: Always wrap search

Interface : Interface

  • Uncheck: Show sidebar
  • DropDwn: Font size for Editor: Same as system

Interface : Toolbar : Customize Toolbar Button

  • Removed: Revert, Close
  • Added: Undo and Redo
  • Removed: Back and Forward Location (Unknown use)
  • Removed: Compile, Execute, and Build
  • Removed: Color Chooser
  • Removed: Goto, Jump to (Using Ctrl + L instead)
  • Removed: Quit

Editor : Features

  • Check: Line Wrapping
  • Uncheck: Code folding (I like to see all the text)
  • Check: Newline strips trailing spaces (I find it hard remembering empty spaces)
  • Set: Line breaking column to 80 (Good for readability, more oft use)

Editor : Indentation

  • Set: Width 2 (Two space tabs break up content well without learing the eye overly)
  • Type: Spaces (Spaces translate look as expected)

Editor : Display

  • Uncheck: Show line numbers (Don’t often need to know)
  • Uncheck: Show markers margin
  • Set: Long line marker > Column to 80
  • Set: Long line marker > Color to #98A8B6

Files

  • Check: Strip trailing spaces and tabs # For a consistent, expected feel
  • Check: Replace tabs by space

After setting these preferences remove the Message Pane by unchecking View > Show Message Window.

Automatic Save

gedit has a useful feature in one of its’ options of being able to autosave files at certain intervals. To get the same functionality in Geany do:

Tools > Plugin Manager

  • Check: Save Actions
  • Select: Preferences
  • Check: Auto Save: Enable & Save all open files
  • Check: Backup Copy: Enable

Geany as Default Text Editor

xdg-mime default geany.desktop $(grep MimeType /usr/share/applications/geany.desktop | sed 's/MimeType=//' | sed 's/;/ /g')

Change Colorscheme

Note: To get colorscheme support to work properly it may be necessary to install the latest version of Geany. If I understand correctly this is part the development (a.k.a. master?)‘ branch. Nightly builds for various systems can be found here.

Colorscheme support in Geany is still rudimentary. Thankfully a fellow named codebrain has done a lot of the work and it is easy. Much appreciate the work codebrain, thank you.

gny_cnf_dir=~/.config/geany                                                         # define config dir
[ ! -d $gny_cnf_dir ] && mkdir $gny_cnf_dir             # create config dir
cd $gny_cnf_dir
[ -d $gny_cnf_dir/colorschemes ] && \
mv $gny_cnf_dir/colorschemes{,_$(date +%F-%R)}          # backup original
git clone git://github.com/codebrainz/geany-themes.git  # get repository
mv $gny_cnf_dir/geany-themes $gny_cdf_dir/colorschemes

To Do

  • Remove line wrap arrows? – I learned how to do this before from a developer and lost it; afraid to ask again.

Another look at GNOME menu bar alternatives

Header

After reading a post yesterday that talked about replacing the Gnome’s built-in menu applet, I began thinking why not try out the replacements for my lead-weighted Gnome Menu Bar. One of the few expectancies I have of Gnome or any other UI is to respond nearly instantly to menu selections, and to have all common selections in one interface. Gnome Menu Bar has a hiccup to it so I’d thought I’d take a look at what else is being developed.

Reading Johan’s Blog it’s pointed out that there are really only two alternatives to Gnome’s Menu Bar: slab from Novell/Suse (aka Gnome Main Menu) and Gimmie.

Gimmie

Gimmie reminds me alot of an application called dragthing way back on Mac OS:

Gimmie can be used as a panel applet or a separate dock, but the dock I found obstructive and too big so I’m just covering the panel applet.

Gimmie comes by default colored like a Miami night club, “Hello ladies.” But I’m glad there’s an option to not always have it on. They still hover green, blue, pink… but no big deal I guess.

The People and Library tabs contain contacts and the documents most often used. I didn’t look into these very much as I have my own way of organizing ppl and files but they seem like they can be pretty handy.

The Programs tab is what I would most use Gimmie for and it’s categorized conviently like Gnome Menu Bar.

The Linux tab contains everything else, control panels, places, devices and media.

Gimmie has about everything I need and is fast though not as fast as I would like as the rollover effects hang a bit.

  • + quick responsive
  • + nice variation of features
  • – rollover slight drag
  • – big big
  • ? “Linux Tab”?
  • ? Tomboy Notes support?

Slab a.k.a Gnome Main Menu

Gnome Main Menu feels like a trimmed down version of Gimmie and works exactly as it was designed to do: a lighter replacement for Gnome’s Menu Bar. It does take the same load time though (5 to 10 seconds) but once it does it’s nice and responsive. Gnome Main Menu has no applications setup by default – favorites must be added manually. I was hoping applications would get added by the frequency they are used but no luck. So I added my favorites and found that its really nice to be able to start these applications as quickly as I did. Despite this feature being really useful it also becomes a crutch as any applications that are not favorites had to be opened through launching a second window. Gnome Main Menu also creates a folder called Documents in my home directory. Not good. I have my own way of organizing my documents so this didn’t make me happy.

GMM is good in the basics. I like GMM’s hover buttons that give one click behavior over Gimmies double click one. Also, GMM has no preferences which surprisingly didn’t’ disturb me at all as it was well configured.

  • + Light, fast, mean and trim.
  • + easy to learn and use
  • – big size
  • – Document folder – oh boy.

Conclusion

If I were to choose between the two, it would depend on my situation. Gimmie could be useful to beginners who could be sedated by finding most of what they need in the menu while GMM just works nice for basic (8-10) app users that don’t need the frills and likes the speed.

For now though… I’m sticking with Gnome’s Menu Bar. Though it doesn’t preload the menu and sometimes loses the cached icons its still the quickest way I can get to all the apps I need.

Quick Tip: Gnome Menu Bar has a built-in delay when sliding over categories. Add to or create a ~/.gtkrc-2.0 file and add:

vim ~/.gtkrc-2.0
gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0

for a lower menu delay (does cause a harmless gtk warning)

Gnome Color Chooser applicability chart

Gnome Color Chooser - Color ChartI wrote about configuring the Gnome Color Chooser last week and got my fixing eyes and fingers more into it. The degree to how customizable the Gnome desktop is really incredible if not a bit overbearing. So, I’ve made a reference chart too help me in the future to quicken the process.

For customizing, I use freakcode’s Si Pack here – customizations may vary depending on the theme used.

gnome-color-chooser-color-chart.png

Matched Colors

To carry the theme, these are the colors I matched.

In the Normal section:

I matched the hover fg to Entry hover fg.

In the Entry Fields section:

I matched selected bg to Normal selected fg, selected fg and alt.
selected fg to Normal hover bg.

The alt selected bg matches Normal hover fg.

And the disabled bg also matches the Normal disabled bg.

Sidenote

I’m testing vimpress to write and publish this post. I’ve been studying
this week on vim and this is all very very interesting.