launching textpad from cygwin
This is a simple bash function that I use pretty often. It comes in handy when I’m navigating a tree of source code in a cygwin bash shell, and want to edit a file in TextPad. You can just put this line in your .bashrc file, and make sure the directory where TextPad.exe lives is in your $PATH environment variable:
function tp() { textpad $(cygpath --mixed $1) & }
This allows me to do things like:
$find . -name '*Foo*.java'
which returns results like:
./src/com/spugbrap/foo/bar/TestFooImpl.java
./servlet/com/spugbrap/baz/FooDispatcher.java
Then I can just copy one of those full (but relative) paths to the clipboard, and paste it into a command that looks like this:
$tp ./servlet/com/spugbrap/baz/FooDispatcher.java
Now, regardless of where the root of this relative path exists on the file system, it will open that file in TextPad.
The only limitation that I run into with this is that it only lets you specify one file to open. It could probably be modified to handle multiple files pretty easily, but this hasn’t bothered me enough to deal with yet.

