Adding PeepOpen Support
Posted: 26 April 2011 06:08 PM   [ Ignore ]
Newbie
Rank
Total Posts:  16
Joined  2009-04-16

PeepOpen is PeepCode’s implementation of a quick file finder, designed as a plugin for a variety of editors. The way it works, quoting from their help file:

PeepOpen implements a custom URL scheme and takes an editor name as a parameter. After a file is chosen with PeepOpen, the editor will be launched and the file will be opened with it.

peepopen://path/to/file/or/project?editor=MyEditor 

For example, if the TextMate application wanted to activate PeepOpen, it would run the following shell command:

open peepopen://path/to/file/or/project?editor=TextMate 

So, in theory I should be able to assign a shell script to a key for this, right? I presume I can do this with a Text Editor Action, but I’m somewhat clueless on how to do this—and one thing that I need to be able to do is get the current project directory, or at least something that will pass for that. (If that’s impossible I have some ideas on how it could be, well, faked, although they might be a little dubious…)

Profile