Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
`which` for open files
Objective-C C Ruby
Tag: v0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
filepath.xcodeproj
CopyLaunchedApplicationsInFrontToBackOrder.c
CopyLaunchedApplicationsInFrontToBackOrder.h
DocumentPath.h
DocumentPath.m
README.md
filepath.m
filepath_Prefix.pch

README.md

filepath

which for open files

Do you drag file handles from app titlebars into your terminal a lot? And you consider yourself a hardened keyboard warrior and don't like using the mouse unless absolutely necessary?

Without filepath

Without filepath

Sure, you might say "I'd just type and tab complete that shit." But let's just imagine that file is really deep in the project hierarchy or just really damn annoying to autocomplete because there's a billion files with the same prefixes.

Now, let's take a look at your coding life with filepath.

With filepath

With filepath

"Holy shit, that's amazing!" you say, "But what about if I have more than one window? Which one does it choose?"

Choices

You get a choice! filepath is democratic like that.

Want it?

You can grab it from the downloads page or build it yourself, then slap it in any directory in your $PATH (I suggest /usr/local/bin).

I'll probably write a recipe for homebrew at some point.

This requires Snow Leopard (10.6) and if you somehow don't have Snow Leopard, upgrade already.

Bonus!

Alias it to fp for even less typing.

Why?

I like being efficient. I'd rather spend an hour or two writing a tool making me more efficient in the long run than waste two seconds every time I drag a file into the terminal.

Changelog

  • v0.1

First release.

Contribute

Fork and send me pull requests! You might be able to tell that I don't code Objective-C/C very often and so I'm happy to learn better ways of doing things.

License

(The MIT License)

Copyright © 2011 Jack "chendo" Chen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.