Print this page

Weblog

03/26/05

Gnome Terminal hacking


Category: General
Ever since I started using Linux I've been very fond of using commandline shells and thus also terminals. However, in the past few months I have grown quite happy with the Gnome desktop and Nautilus (even it's spatial mode). As I am still using terminals heavily, I have missed a feature that allows me to quickly open a Nautilus window for the directory I'm currently working with in the terminal. Yesterday I did a quick 30-minutes hack that adds this feature to the Gnome terminal. It adds two new menu items to the "File" menu:
  • "Browse CWD" - Opens the file browser in the current working directory
  • "Copy CWD to clipboard" - Copies the current working directory into the clipboard for easy insertion in other applications
The menu items can of course be assigned keyboard shortcuts for optimal usage :-) Today I refined the patch and made the program to launch configurable. The latter took a little longer as I both had to change the Glade file and add the preference to the terminal profile. The result is a little patch for gnome-terminal-2.10.0. I do apologize for the many changes in the gnome-terminal.glade2, but going through that file by hand is something I want to avoid, if possible. I have an Ubuntu package for those who might be interested. Do please try it out and give me some feedback.

Modified: Fri 12-Oct-12 04:25:52 PDT