coda-cli icon indicating copy to clipboard operation
coda-cli copied to clipboard

Added Go to line number option

Open brutuscat opened this issue 14 years ago • 1 comments

Added Go to line number option using AppleScript as you do ;).

Currently it's done sending the shortcut's keystroke "shift+command+l" which is the default. Any idea how to do this if the shortcut is modified?

I did it so I can integrate ir with Ruby's Pry console edit-method command. The only real issue is that optparse doesn't allow single-char options, so the "standard" way of "go to line" of some editors (which is +LINE FILENAME) can't be done :S. So -l or --line then.

brutuscat avatar Oct 27 '11 10:10 brutuscat

Thanks for the patch.

This issue has come up before (see #2) but I'm reluctant to use any of the approaches I came up with. This gist was the closest to acceptable. It's similar to yours, but still works if the shortcut has been changed. It won't, however, work in different languages.

It looks like Coda only includes support for English, Dutch and Japanese, so it wouldn't be too difficult to modify it to work with the other two languages as well.

I'm hopeful that Panic will include more / better apis to allow a clean solution to this in 2.0. I suppose we'll see soon enough :)

bobthecow avatar Oct 27 '11 19:10 bobthecow