I'm not sure what the TextMate terms for this are, so please bear with me (I'd have searched the help file more thoroughly, if I knew the right terms)
When, for example, creating a method declaration using m(tab) in the Objective-C bundle, you get this:
-(id) method:(id)aparameter;
(or something close to it).
The caret is on the first id, which is selected. So far, so good -- type in, and the "id" is replaced, as expected, with what you typed.
However, and this is probably something I just got used to with Eclipse, there doesn't seem to be a way to jump to, and select, the next replaceable field, for example the word "method", which is done by pressing 'tab' in Eclipse, navigating from field to field until all are set, with the last caret position being a specified insert position.
I'm not sure I'm explaining myself well, but I hope that what I describe is fairly clear.
So, is there a way to do this? If so, how? And, what is it called, so that I never have to ask this question again? ;)
On 2/9/2006, at 21:30, Chris Rose wrote:
[...] The caret is on the first id, which is selected. So far, so good [...] there doesn't seem to be a way to jump to, and select, the next replaceable field, for example the word "method", which is done by pressing 'tab' in Eclipse
Tab does it as well in TextMate.
It does, until you've typed a value into any of the fields, at which point it becomes just a plain ole' tab character again, at least in all of the examples I've tried.
Is this a bug, maybe?
On 9/3/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 2/9/2006, at 21:30, Chris Rose wrote:
[...] The caret is on the first id, which is selected. So far, so good [...] there doesn't seem to be a way to jump to, and select, the next replaceable field, for example the word "method", which is done by pressing 'tab' in Eclipse
Tab does it as well in TextMate.
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 3/9/2006, at 15:38, Chris Rose wrote:
It does, until you've typed a value into any of the fields, at which point it becomes just a plain ole' tab character again, at least in all of the examples I've tried.
So you press m⇥ and enter e.g. ‘void’ to overtype ‘id’ and pressing ⇥ (again) doesn’t select ‘method’?
Well, uh...
You know what? It didnt' yesterday, but it does today. Which probably changed when I nuked ~/Library/Application Support/TextMate due to a bug with the XCode bundle losing files (another issue, and my fault entirely, that one).
Sorry to ask a stupid, solved question :/ Thanks for the input.
On 9/3/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 3/9/2006, at 15:38, Chris Rose wrote:
It does, until you've typed a value into any of the fields, at which point it becomes just a plain ole' tab character again, at least in all of the examples I've tried.
So you press m⇥ and enter e.g. 'void' to overtype 'id' and pressing ⇥ (again) doesn't select 'method'?
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
It seems to enter a tab character instead of moving you on to the next field if you do anything other than type characters (such as use the cursor keys or delete a character). That catches me out occasionally.
I've always wished the tab character was a different key than the one for moving between fields.
Ed
On 9/3/06, Chris Rose chris@offlineblog.com wrote:
Well, uh...
You know what? It didnt' yesterday, but it does today. Which probably changed when I nuked ~/Library/Application Support/TextMate due to a bug with the XCode bundle losing files (another issue, and my fault entirely, that one).
Sorry to ask a stupid, solved question :/ Thanks for the input.
On 9/3/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 3/9/2006, at 15:38, Chris Rose wrote:
It does, until you've typed a value into any of the fields, at which point it becomes just a plain ole' tab character again, at least in all of the examples I've tried.
So you press m⇥ and enter e.g. 'void' to overtype 'id' and pressing ⇥ (again) doesn't select 'method'?
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
-- Chris R. ====== Not to be taken literally, internally, or seriously.
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
Ed, I suspect that's what happened to me, come to think of it -- I'm a fast, but inaccurate typist, so I tend to correct myself a lot.
Allan, would this be something that could be configured or changed?
On 9/4/06, Ed Singleton singletoned@gmail.com wrote:
It seems to enter a tab character instead of moving you on to the next field if you do anything other than type characters (such as use the cursor keys or delete a character). That catches me out occasionally.
I've always wished the tab character was a different key than the one for moving between fields.
Ed
On 9/3/06, Chris Rose chris@offlineblog.com wrote:
Well, uh...
You know what? It didnt' yesterday, but it does today. Which probably changed when I nuked ~/Library/Application Support/TextMate due to a bug with the XCode bundle losing files (another issue, and my fault entirely, that one).
Sorry to ask a stupid, solved question :/ Thanks for the input.
On 9/3/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 3/9/2006, at 15:38, Chris Rose wrote:
It does, until you've typed a value into any of the fields, at which point it becomes just a plain ole' tab character again, at least in all of the examples I've tried.
So you press m⇥ and enter e.g. 'void' to overtype 'id' and pressing ⇥ (again) doesn't select 'method'?
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
-- Chris R. ====== Not to be taken literally, internally, or seriously.
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
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 5/9/2006, at 0:47, Chris Rose wrote:
Ed, I suspect that's what happened to me, come to think of it -- I'm a fast, but inaccurate typist, so I tend to correct myself a lot.
Allan, would this be something that could be configured or changed?
What exactly is the request? That one doesn’t leave “snippet mode” when the caret goes outside the placeholder? This is not something I would change (first versions did stay in “snippet mode” longer, and it was mainly a disadvantage)
On 9/5/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 5/9/2006, at 0:47, Chris Rose wrote:
Ed, I suspect that's what happened to me, come to think of it -- I'm a fast, but inaccurate typist, so I tend to correct myself a lot.
Allan, would this be something that could be configured or changed?
What exactly is the request? That one doesn't leave "snippet mode" when the caret goes outside the placeholder? This is not something I would change (first versions did stay in "snippet mode" longer, and it was mainly a disadvantage)
My request would be that using the backspace key doesn't take you out of snippet mode. If you type text, then delete the last character (for instance) it should continue with the snippet. (Admittedly I could just learn to use undo instead of backspace. Undo doesn't seem to take you out of snippet mode, and will even return you to it if you have left it).
Additionally, I feel that whilst you are in snippet mode, the snippet should be highlighted in some way. As soon as you leave snippet mode, the highlight should go away.
I have a rule of thumb, that anytime you are in a mode, you should be able to tell that you are in a mode and roughly what mode you are in.
Ed
On 5/9/2006, at 10:34, Ed Singleton wrote:
[...] My request would be that using the backspace key doesn't take you out of snippet mode.
As long as what you delete is something you wrote yourself, or was the default value for the placeholder, you *will* stay in snippet mode.
[...] Additionally, I feel that whilst you are in snippet mode, the snippet should be highlighted
I have commented on this in the past: this is planned, but I want to do this via dynamic scopes, thus it won’t be possible before these are introduced.