Selected Text to URL: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 8: Line 8:
Text selected in a message can be looked up on various websites and search engines by way of encoded URL strings. This functionality is the same in messages which are being composed, or which have been received.
Text selected in a message can be looked up on various websites and search engines by way of encoded URL strings. This functionality is the same in messages which are being composed, or which have been received.


At the bottom of the '''Edit''' menu are four entries:
At the bottom of the '''Edit''' menu are five entries:
* '''Google'''
* '''Google'''
* '''Dictionary'''
* '''Dictionary'''
* '''Thesaurus'''
* '''Thesaurus'''
* '''Translate'''
* '''Translate'''
* '''Wikipedia'''


The Dictionary and Thesaurus entries link to [http://dictionary.com dictionary.com] and [http://thesaurus.com thesaurus.com], respectively. (Both of which redirect to their respective subdomains at [http://reference.com reference.com].)
The Dictionary and Thesaurus entries link to [http://dictionary.com dictionary.com] and [http://thesaurus.com thesaurus.com], respectively. (Both of which redirect to their respective subdomains at [http://reference.com reference.com].)
Line 20: Line 21:
= Customizing =
= Customizing =


Each of the '''Selected Text''' entries have keyboard shortcuts assigned to them (Ctrl+3, Ctrl+4, etc.). While only four entries are included by default, there's actually space for a total of six. You can customize what each one does via hidden preference '''penelope.selectedTextURL1''', '''penelope.selectedTextURL2''', etc. (The hidden preferences dialogue is accessed via '''[[Documentation Conventions and Nomenclature|[Options/Prefs window]]] > Advanced >''' '''''Config Editor'''''.)
Each Reference Lookup engine  has a pre-assigned keyboard shortcut. While only five entries are included by default, there’s actually space for a total of six. The shortcuts are mapped to ''Ctrl''+3–5 and 7–9 (the last of these being unassigned by default). The reference lookup shortcuts are not contiguous because ''Ctrl''+6 is assigned to the spell checker.  


The format of the Selected Text entry is as follows:
You can customize what each one does via hidden preference '''penelope.selectedTextURL1''', '''penelope.selectedTextURL2''', etc. (The hidden preferences dialogue is accessed via '''[[Documentation Conventions and Nomenclature|[Options/Prefs window]]] > Advanced >''' '''''Config Editor'''''.)
 
The format of a Reference Lookup entry is as follows:
* the name of the menu item
* the name of the menu item
* a comma
* a comma
Line 30: Line 33:
<blockquote>Google,<nowiki>http://www.google.com/search?q=%s</nowiki></blockquote>
<blockquote>Google,<nowiki>http://www.google.com/search?q=%s</nowiki></blockquote>


And an entry for [http://wikipedia.org Wikipedia] might look like this:
And the entry for [http://wikipedia.org Wikipedia] looks like this:
<blockquote>Wikipedia,<nowiki>http://en.wikipedia.org/wiki/%s</nowiki></blockquote>
<blockquote>Wikipedia,<nowiki>http://en.wikipedia.org/wiki/%s</nowiki></blockquote>


You should test the syntactic validity of your URL's before adding them to your configuration.
You should test the syntactic validity of your URL&rsquo;s before adding them to your configuration.


The keyboard shortcuts are assigned by the application, and are not adjustable by the user.
The keyboard shortcuts are assigned by the application, and are not adjustable by the user.
Confirmed users
184

edits