Open-with-Application icon indicating copy to clipboard operation
Open-with-Application copied to clipboard

feature request: cursor position

Open Pitometsu opened this issue 10 years ago • 8 comments

First of all, thank you a lot for great plugin. But could u add ability to share cursor position from current file, for example, with emacs emacs +$CURSOR_LINE:$CURSOR_COLUMN $PATH_TO_FILE

Pitometsu avatar Apr 03 '15 03:04 Pitometsu

Hi Netsu, Thats a neat idea.. I'll have a think about how it could best fit in terms of UI. Thanks for the suggestion h

inquisitiveSoft avatar Apr 19 '15 20:04 inquisitiveSoft

U r welcome, thanks a lot 4 attention!

Pitometsu avatar Apr 19 '15 21:04 Pitometsu

This would be great @inquisitiveSoft have you had any more thoughts about this?

jmjones5 avatar Mar 04 '16 16:03 jmjones5

@jmjones5 I looked into adding support for executing command-line scripts which would be a flexible way to do the same thing, but it didn't really go anywhere as it's not really a feature I need. I'm not saying it won't happen.. but I'm not in a hurry. You're very welcome to add it yourself if you like? :-)

inquisitiveSoft avatar Mar 04 '16 16:03 inquisitiveSoft

@inquisitiveSoft never done any plugin development got any tips to get started?

jmjones5 avatar Mar 16 '16 19:03 jmjones5

Hi @jmjones5, I've had a little go at adding this feature, and it's getting pretty close. These changes are in a the feature-PerformScripts branch.

The remaining step is to substitute in the right $CURSOR_LINE and $CURSOR_COLUMN variables. AJKOpenWithPlugin.m:259 is the place to start, and I'd recommend installing another plugin to help with the development called PluginConsole. It adds a button which you can toggle to see the result of the PluginLog calls.

If you have the time to give it a go I don't think it should be too hard, otherwise I'll likely add it over the weekend. Some indeterminate time after that it would be nice if it also supported other Terminal emulators like iTerm, too. :-)

inquisitiveSoft avatar Mar 17 '16 08:03 inquisitiveSoft

@inquisitiveSoft did your plans go smoothly? I was curious so I tried cloning the repository and found there was no branch feature-PerformScripts. Did you push up that branch to remote?

jmjones5 avatar Apr 17 '16 01:04 jmjones5

@inquisitiveSoft hello there! Did you have time to implement this, or, maybe, it require some help/PRs? I would be glad to help with something if necessary.

Pitometsu avatar Oct 01 '16 20:10 Pitometsu