-
Notifications
You must be signed in to change notification settings - Fork 50
Ability to use "Documentation for Word" on selected text #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In the command you can put something like this at the top:
Then throughout the command use $term instead of $TM_CURRENT_WORD. You’re most welcome to submit a pull request for such change, and I On 11 Feb 2014, at 20:04, Etienne Samson wrote:
|
Thanks, that works nicely. I'll do a PR tonight after a bunch of testing. For the cleanup, unless you don't mind me rewriting everything in Ruby, I'm not sure my bash skills are up to the task ;-). |
No-one will object against converting the script to ruby. If you are actually up for it, here’s something copied from the
:default => query, :prompt => "Search documentation for word" What that does is to bring up a dialog if no word is found via the On 11 Feb 2014, at 20:50, Etienne Samson wrote:
|
Closing because it works with selections now. Apologies for not tackling the rewrite though. |
Just noticed it works because I have a delta. PR incoming ;-). |
I usually select functions instead of simply placing the caret inside of them. Since TM_CURRENT_WORD is empty when I do that, I have to drop out of my selection for it to work.
Would it be doable to use the selected text as well as the current word ?
The text was updated successfully, but these errors were encountered: