feature request: cursor position
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
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
U r welcome, thanks a lot 4 attention!
This would be great @inquisitiveSoft have you had any more thoughts about this?
@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 never done any plugin development got any tips to get started?
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 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?
@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.