-
Hello world!
Posted on February 16th, 2009 9 commentsThis must be the title of my first blog post. Just this week I said Hello to (in no particular order),
- xsl templates (<xsl:value-of select=”$hello_world”/>) thats didn’t suck?!,
- to hudson, a happy reunion, “every Batman should have a butler :-)”
- to ubuntu jaunty on my laptop - very nice
- and to Rails footnotes plugin. Where have you been?
- And lastly of course..
HELLO Wordpress. Installed it and started typing. The coming days will hopefully change this ‘defaulty’ sites appearance and content.
For those of you just looking for my ‘Snap Open’ plugin for Gedit (Linux text editor), you can find it here
9 responses to “Hello world!”
-
Hello mads. Subscribe to your brand new blog. I guest it will be interesting to read. Find it by your gedit plugin. Actually i am newbie ubuntu user.
-
Hey your snap open plugin is nothing short of awesome. I just installed it and expect using it to open files will quickly develop into a habit.
I’m having one problem– it doesn’t seem to like my folders with spaces. For example I have “/home/me/Projects/Foo Bar/foo.txt…” and when I try to open it I get something along the lines of “Cannot CD into directory …Foo%20Bar…”. Is this a problem on my end? It seems to be working fine with other directories.
Thanks again for making all our lives easier.
-
Hi Steve,
I can see from my code, that I have not taken this into account. I’ve tried modifying the ‘find’ command used and added proper escaping. This works for finding the files, but the gedit open command later fails. I will look into the issue, but have been busy trying out my plugin on a Mac (more on this later). A workaround until then is symlinking
(or just plain renaming). You are welcome to try thec code on for yourself. Look at the methods: on_pattern_entry(for the find command), and_open_file(for the opening stuff). They are both in~/.gnome2/gedit/plugins/snapopen/__init__.py -
Newbie users are welcome, and Ubuntu/Debian should make you feel at home in no time
-
Thanks for the tip for Rails Footnotes. Really useful
Do you have any considerations in committing the Footnotes plugin into new projects?
I noticed on our current work project that response times rose by 450%
Before:
Completed in 101ms (View: 72, DB: 9) | 200 OK [http://localhost/boards/main/backlog]After:
Completed in 457ms (View: 299, DB:
| 200 OK [http://localhost/boards/main/backlog]still in development mode, though.
-
… btw for those who don’t speak smiley language: DB:
means DB: 8 followed by )… and congrats with your new blog
-
Hi Jesper,
Yes, Rails footnotes takes out some development juice, but if that is a problem, just modify your environment file. Also check the loader.rb file.
Example:
Footnotes::Filter.notes = [:session, :cookies, :params, :filters, :routes, :queries, :log, :general]Read all about it on the github site, here.
-
Russell Dickenson August 25th, 2009 at 03:59
I have two questions about the gedit Snap Open plugin, which I really find useful.
1 - I don’t quite understand what you mean by “file browser integration”. Perhaps I’m looking in the wrong spot, but I just don’t understand if this is a configuration option within gedit, or something else entirely.
2 - Could the folder from which the search starts be changed, so that if a file is open, the search begins from that file’s folder, and if no file is open, perhaps default to the user’s home directory? I often work on files on a removable drive, and if I try to “Snap Open” a file in the same folder as a file that’s already open, Snap Open is searching files in my home directory.
While I wait for a reply (and that’s not meant to be a slur on you at all), I might trying hacking at the plugin myself.
Russell Dickenson
Australia -
Hi Russell,
First of all, you are welcome to hack on it. As for your questions:
If you open the file browser side pane (part of standard gedit), you will know what I mean: The file browser shows a file tree.
(http://4.bp.blogspot.com/_GCbh8lju5Fo/R9RkExHyQoI/AAAAAAAAAEI/b-awJD2RE-g/s320/gedit_file.png)It remembers the last location you were in.
Snap open will suggest files from that subtree.To change the subtree, just open any file (use the standard open dialog and browse to your remavable drive. When a file is open, you can right click the file browser pane, and choose to set the root to that files parent folder.
Now snap open will suggest files from there.Hope that helps.
Mads
Leave a reply

