23 Comments

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')

Use Generic Text Editor Icon

Ubuntus’ icon theme has a generic text editor icon that gets tied to gedit. To be able to use it with Geany do:

cp /usr/share/applications/geany.desktop ~/.local/share/applications/
sed -i 's/^Icon=.*$/Icon=accessories-text-editor/g' ~/.local/share/applications/geany.desktop
sed -i 's/=Geany/=Text Editor/g' ~/.local/share/applications/geany.desktop
nautilus ~/.local/share/applications/

From nautilus, drag geany.desktop to Launcher

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.
About these ads

About Todd Partridge (Gently)

Good times, good people, good fun.

23 comments on “gedit to Geany

  1. Try Leafpad. For a simple down-n-dirty text editor its very clean and light. I like Geany, especially when viewing structured (e.g. code and script) files, but for just taking a quick look at a text file (readmes, etc.) or just having a scratch pad for some notes, leafpad is fantastic.

  2. geany is not an ide

  3. geany is not an ide

    Geany is a “lightweight IDE”. The gist I just got from the developers site. If looking for a fully-integrated ide this is definitely is not for you.

  4. “To get Geany to behave and feel like gedit a number of setting changes will need to be made.”

    Why not use Gedit then? Also you did not mention any advantage you’ve found.

  5. Hey excellent website! Does running a blog such as this take a great deal of work?
    I have virtually no understanding of coding but I had been hoping
    to start my own blog soon. Anyways, should you have
    any suggestions or techniques for new blog owners please share.
    I understand this is off subject however I simply needed to ask.
    Many thanks!

  6. Hi there! Someone in my Myspace group shared this website with us so I came to give it a look.
    I’m definitely loving the information. I’m book-marking and
    will be tweeting this to my followers! Outstanding blog and amazing design
    and style.

  7. Hi there! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up
    losing many months of hard work due to no backup. Do
    you have any methods to stop hackers?

  8. Paragraph writing is also a fun, if you know
    after that you can write or else it is complex to write.

  9. hey there and thank you for your info – I’ve definitely picked up something new from right here. I did however expertise a few technical points using this site, as I experienced to reload the web site a lot of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Well I am adding this RSS to my e-mail and can look out for a lot more of your respective interesting content. Ensure that you update this again very soon.

  10. Hello Dear, are you in fact visiting this site regularly,
    if so then you will without doubt obtain pleasant experience.

  11. If you desire to take a great deal from this piece of writing then you have to apply these methods to your won webpage.

  12. Have you ever thought about creating an ebook or guest authoring on other websites?
    I have a blog centered on the same ideas you discuss and would love
    to have you share some stories/information. I know my
    visitors would appreciate your work. If you’re even remotely interested, feel free to shoot me an e mail.

  13. @vlad: If you want a list of advantages, you can start with some of the features that Todd turned off: virtual terminal emulation, line numbers, markers, compile/execute/build integration, advanced Find options. Plus some that he enabled, like stripping trailing whitespace.

    I could add a swag of others, like commenting/uncommenting; selecting/duplicating/deleting/transposing entire (or multiple) lines; converting between spaces and tabs in existing documents; easily-customisable keybindings; snippets; Recent Files list of up to size 50; jumping between function declarations and definitions; and plugins that give version control integration, tree-style file browsing, XML pretty-printing, web previews, optional non-intrusive project management…and it’s still only about 10MB and very fast.

  14. Today, I went to the beach with my kids.
    I found a sea shell and gave it to my 4 year

    old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and

    screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is

    entirely off topic but I had to tell someone!

  15. Good info, trying Geany now, thanks.

    Having a little trouble with theme colors (“colours” :^) having no effect. They appear in the menu, one can select a theme, restart the program, whatever, makes no diff. No change in appearance. Any tips?

  16. I have been surfing online more than 3 hours

    today, yet I by no means found any fascinating article like yours.
    It is pretty worth sufficient for me. Personally, if all
    website owners and bloggers made just right content material as you probably did, the internet might

    be much more useful than ever before.

  17. You are eligible for all services without having to sign a long term contract.
    Flute Lessons Singapore, Singapore’s premier flute school. After you have decided which HDTV format is right for you it is time to look at the tiny features and make sure the television you are thinking about buying has what you need.

  18. […] use geany as an IDE. I usually install geany and personalize it to look (almost) like gedit. I use this blog post but change some of it. Geany is better for coding in some ways, especially code folding […]

  19. Greetings! Quick question that’s totally off

    topic. Do you know how to make your site mobile friendly? My site looks weird when

    viewing from my iphone4. I’m trying to find a template or plugin that

    might be able to correct this issue. If you have any suggestions, please share.

    Thanks!

  20. I am really enjoying the theme/design of your website.
    Do you ever run into any

    web browser compatibility problems? A number of my blog audience have complained about my blog
    not working correctly

    in Explorer but looks great in Safari. Do you have any ideas to help fix this
    problem?

  21. I don’t even know the way I finished up right here,
    however I assumed this post was once great. I don’t understand who you are but
    definitely you’re going to a well-known blogger when you
    are not already. Cheers!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 52 other followers

%d bloggers like this: