-
Snap open on a Mac
Posted on March 3rd, 2009 5 commentsUPDATE - Gedit now has native OS X builds here, and snapopen 1.2 (from github) should work out of the box.
(Thanks to the great project MacPorts it is now possible to install gtk and gnome applications on your mac almost as easy as in Linux. The GUI tool Porticus makes it ‘point and click’).
With a brand new MacBook pro 17″ in my hands, I could not resist installing gedit and snap open to see how that would work:
Here it is:
There were some issues… and there are still some.
First of all: Get rid of that horrid default gtk theme that scares so many away from gtk apps. Install gtk-theme-switch from MacPorts and download a proper skin from www.gnome-looks.org. (This one is called ‘Leopardish’).
Installing the plugin was a bit tricky and I ended up putting my snapopen plugin files directly into
/opt/local/lib/gedit-2/plugins/
Furthermore, the ‘find’ command we all love, and my plugin relies heavily on, on Mac does not support the -iwholename flags, but instead the -ipath so that was easy.
Next issue was the keyboard shortcuts CTRL+ALT+o does not work out of the box. I switched to SHIFT+CTRL+o which works fine (I will fix this properly later).
Now it works… well almost:
The filebrowser integration seems to be quirky, and it often falls back to ‘wd’ (working dir).
I might do a ‘Mac’ version soon, so it will work here as well, although it would in the form of a ‘Mac-detect flag’ not a code fork.
Until next time…
Link to original (linux only) snapopen plugin
5 responses to “Snap open on a Mac”
-
atlithorn May 26th, 2009 at 18:29
Hi, can’t find any contact info, snap-open was taking forever on my machine and freezing gedit so I changed on_pattern_entry to call gobject.idle_add (callback on idle) and it works much better, send me an email if you want the changes, it was only a couple of rearranged lines
-
Hi,
That might work for the freezes, but what could the plugin possibly be doing? There are some performance hits when not properly restricted by the file browser sidebar, since the ‘find’ command used can take forwver on a large drive.Please also consider browsing http://github.com/FooBarWidget/gedit-snapopen-plugin/tree/master for an alternative way to index/find files, a Phusion Passenger author (Hongli Lai) has made some interesting changes… I haven’t tried them yet
-
AndrewBoldman June 5th, 2009 at 00:34
Hi, cool post. I have been wondering about this topic,so thanks for writing.
-
[...] snapopen working well on FreeBSD also. The only fix needed in the -ipath fix described on the Snapopen on a Mac [...]
-
Hello there!
Me again! (http://www.upperbound.net/2009/07/snapopen-on-freebsd/#comments)
I just installed the last version of snap-open, published yesterday (December 18) and now works perfect into gedit for MacOS.Thanks a lot!
Leave a reply
-


