Lets say I have this abbreviation:
RSPB
Can I make a command which, when I select ³RSPB² and hit a keyboard shortcut, will replace ³RSPB² with ³Royal Society for Protection of Birds²?
Thanks Ross
Just make a snippet with the tab trigger rspb
Set its contents to royal society... And sett the scope to the language(s) you wants it to appear in — Sent from Mailbox for iPad
On Tue, Mar 11, 2014 at 4:04 PM, Ross Ahmed rossahmed@googlemail.com wrote:
Lets say I have this abbreviation: RSPB Can I make a command which, when I select ³RSPB² and hit a keyboard shortcut, will replace ³RSPB² with ³Royal Society for Protection of Birds²? Thanks Ross
If this is in LaTeX, you can also edit the configuration file (LaTeX bundle
Edit Configuration File) and add a line:
rspb = 'Royal Society for Protection of Birds'; or even rs = 'Royal Society for Protection of Birds'; and in your text, use Control-Shift-period after typing rs. --gildas
On Tue, Mar 11, 2014 at 9:10 AM, Ross Ahmed rossahmed@googlemail.comwrote:
Lets say I have this abbreviation:
RSPB
Can I make a command which, when I select “RSPB” and hit a keyboard shortcut, will replace “RSPB” with “Royal Society for Protection of Birds”?
Thanks Ross
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi, The easiest way (afaik) is probably to create a snippet that replaces ‘rspb’ with 'Royal Society for Protection of Birds’ using a tab trigger. S.
On 11 Mar 2014, at 20:13, Gildas Hamel gweltaz@ucsc.edu wrote:
If this is in LaTeX, you can also edit the configuration file (LaTeX bundle > Edit Configuration File) and add a line: rspb = 'Royal Society for Protection of Birds'; or even rs = 'Royal Society for Protection of Birds'; and in your text, use Control-Shift-period after typing rs. --gildas
On Tue, Mar 11, 2014 at 9:10 AM, Ross Ahmed rossahmed@googlemail.com wrote: Lets say I have this abbreviation:
RSPB
Can I make a command which, when I select “RSPB” and hit a keyboard shortcut, will replace “RSPB” with “Royal Society for Protection of Birds”?
Thanks Ross
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- Gildas Hamel 331 Plateau Avenue Santa Cruz, CA 95060
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi all
I don¹t think I captured what I was actually after in my question my mistake. Heres another try:
I often have a list of birds like this
Bar-tailed Godwit Mallard Redshank Ringed Plover Turnstone
I need to convert them into their abbreviated codes, so the list needs to become:
BA MA RK RP TT
My current strategy is to just manually replace each bird name with their code. I was hoping to make 5 selections (multiple cursors, one cursor for each bird name), and convert them to their codes in one keystroke. Does this sound possible?
Thanks Ross
From: Stéphane THIL stephane.thil@univ-perp.fr Reply-To: TextMate users textmate@lists.macromates.com Date: Wednesday, 12 March 2014 08:26 To: TextMate users textmate@lists.macromates.com Subject: [TxMt] Re: Select word and replace with different word
Hi, The easiest way (afaik) is probably to create a snippet that replaces rspb¹ with 'Royal Society for Protection of Birds¹ using a tab trigger. S.
On 11 Mar 2014, at 20:13, Gildas Hamel gweltaz@ucsc.edu wrote:
If this is in LaTeX, you can also edit the configuration file (LaTeX bundle > Edit Configuration File) and add a line: rspb = 'Royal Society for Protection of Birds'; or even rs = 'Royal Society for Protection of Birds'; and in your text, use Control-Shift-period after typing rs. --gildas
On Tue, Mar 11, 2014 at 9:10 AM, Ross Ahmed rossahmed@googlemail.com wrote:
Lets say I have this abbreviation:
RSPB
Can I make a command which, when I select ³RSPB² and hit a keyboard shortcut, will replace ³RSPB² with ³Royal Society for Protection of Birds²?
Thanks Ross
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- Gildas Hamel 331 Plateau Avenue Santa Cruz, CA 95060
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 12 Mar 2014, at 21:37, Ross Ahmed wrote:
I often have a list of birds like this […] I need to convert them into their abbreviated codes […]
My current strategy is to just manually replace each bird name with their code. I was hoping to make 5 selections (multiple cursors, one cursor for each bird name), and convert them to their codes in one keystroke. Does this sound possible?
Since a lookup table is required to transform the bird names, there is no good way around writing code for this task.
But a simple command can do this, I attached an example. Double-click to install.
After that, you can press F3 to convert bird names in your selection or document (if there is no selection).
You can augment the list in the bundle editor and/or change the key equivalent.