Hi,
Just wondering how I submit some snippets for the PHP bundle? They're small, but I'm using them all the time.
( ${2:'$1'}=>${4:'$3'},$0 tab-triggered on (,
and the more general
, ${2:'$1'}=>${4:'$3'},$0 tab-triggered on ,,
They make typing hashed lists really very much quicker for me.
Or am I missing an altogether quicker way?
R
-- Richard Dyce MA (Cantab.) MBCS MIET
Hi Richard,
Thanks for your submission – I have in the past considered adding something for this, but at the time I didn't feel it was worth it as there isn't really much typing involved, and you have the variant of needing quotes or not. I'm curious why you are using the 2:1 => 4:3 tabbing order rather than 1:2 => 3:4?
I'll keep them around for a while and try to use them and see if it changes my mind.
Ciarán
On 18 May 2007, at 12:04, Richard Dyce wrote:
Hi,
Just wondering how I submit some snippets for the PHP bundle? They're small, but I'm using them all the time.
( ${2:'$1'}=>${4:'$3'},$0 tab-triggered on (,
and the more general
, ${2:'$1'}=>${4:'$3'},$0 tab-triggered on ,,
They make typing hashed lists really very much quicker for me.
Or am I missing an altogether quicker way?
R
-- Richard Dyce MA (Cantab.) MBCS MIET
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 18. May 2007, at 13:13, Ciarán Walsh wrote:
Thanks for your submission – I have in the past considered adding something for this, but at the time I didn't feel it was worth it as there isn't really much typing involved [...]
And also triggering snippets on punctuation can be a pain for users who like to tab-align their code (i.e. insert snippets after said punctuation).
For example I am inclined to remove the : tab trigger from the Ruby bundle. The only reason it is mildly bearable is that the de facto standard for Ruby is to use spaces instead of tabs.
On May 18, 2007, at 8:32 AM, Allan Odgaard wrote:
On 18. May 2007, at 13:13, Ciarán Walsh wrote:
Thanks for your submission – I have in the past considered adding something for this, but at the time I didn't feel it was worth it as there isn't really much typing involved [...]
And also triggering snippets on punctuation can be a pain for users who like to tab-align their code (i.e. insert snippets after said punctuation).
In this case I wouldn't think that would matter, would it? I mean, how often are you going to type "(,<tab>" or ",,<tab>" in normal code, let alone?
I agree with your general point, though. Just doesn't seem like with these specific snippets it would be an issue.
-dan