Hi,
I saw a blip from the old wiki about a smart typing question.
Often when I'm writing something, I'll enter something like:
blah(
At this point it completes the )
I hit ", it completes it, so I'm left with:
blah("_")
Where _ is the cursor point.
Obviously, this is great and how smart typing is intended to be used (btw, the smart typing upgrade in b5 works great). However, when I'm done typing:
blah("blahblah_")
I wish there was a quick way to jump to the end of the snippet. Right now I'm using the right arrow key, but it's inefficient because I have to take my hand of the keyboard.
Is there a way to make it go to:
blah("blahblah")_
More efficiently than using the right arrow key? Like when you're hitting the tab key for a snippet?
-- Thanks,
Jeremy Brown InfoSend, Inc. Systems Administrator
(714) 525-8600 x304 (714) 446-1482 Fax
CONFIDENTIALITY NOTICE: This email, including any attachments, contains information from InfoSend, Inc., which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this email in error, please notify the sender immediately by "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.
On Mar 30, 2005, at 4:50 PM, Jeremy Brown [InfoSend] wrote:
Is there a way to make it go to:
blah("blahblah")_
More efficiently than using the right arrow key? Like when you're hitting the tab key for a snippet?
cmd + right/left arrow will jump the cursor to the end/beginning of the line. I guess you could write a command that inserted a semi-colon at the end of a line automatically; I haven't tried it though. Smart typing Python code is a lot more fun than PHP :(
k
On Mar 31, 2005, at 1:02, kumar mcmillan wrote:
More efficiently than using the right arrow key? Like when you're hitting the tab key for a snippet?
cmd + right/left arrow will jump the cursor to the end/beginning of the line. I guess you could write a command that inserted a semi-colon at the end of a line automatically; I haven't tried it though. Smart typing Python code is a lot more fun than PHP :(
The C bundle contains 3 macros for this: cmd-return: go to end of line, make a return cmd-shift-return: go to end of line, set a ;, make a return cmd-option-return: go to end of line, set a ;
I've grown so fond of these macros that I even have a set for text.* that sets a . instead of a ;.
Allan Odgaard wrote:
The C bundle contains 3 macros for this: cmd-return: go to end of line, make a return cmd-shift-return: go to end of line, set a ;, make a return cmd-option-return: go to end of line, set a ;
I've grown so fond of these macros that I even have a set for text.* that sets a . instead of a ;.
Hah .. exactly what I'm talking about!
Nice ... -steve
On the topic of text, there is one thing which emacs handles really well.
Auto-fill mode hard wraps lines of text (on word endings) when you get past n chars in a line. Alt-Q re-linebreaks a whole paragraph so it fits nicely within n chars.
Any chance this could be done? Maybe it's already possible as a macro script or similar .. ?
I really like it when I need it.
cheers
-----Original Message----- From: Allan Odgaard [mailto:allan@macromates.com] Sent: Thursday, 31 March 2005 9:16 AM To: TM Users Subject: Re: [TxMt] Smart Typing Question - Go To End Of Line
On Mar 31, 2005, at 1:02, kumar mcmillan wrote:
More efficiently than using the right arrow key? Like when you're hitting the tab key for a snippet?
cmd + right/left arrow will jump the cursor to the end/beginning of the line. I guess you could write a command that inserted a semi-colon at the end of a line automatically; I haven't tried it though. Smart typing Python code is a lot more fun than PHP :(
The C bundle contains 3 macros for this: cmd-return: go to end of line, make a return cmd-shift-return: go to end of line, set a ;, make a return cmd-option-return: go to end of line, set a ;
I've grown so fond of these macros that I even have a set for text.* that sets a . instead of a ;.
______________________________________________________________________ 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 Mar 31, 2005, at 1:54, David Lee wrote:
On the topic of text, there is one thing which emacs handles really well.
David, please start a new thread when you change the topic. There's no reason to make this a followup to an existing thread, and by doing so, you degrade the usefulness of having threading in mail clients. I don't know if I need to list the advantages of having threading!?!
Auto-fill mode hard wraps lines of text (on word endings) when you get past n chars in a line. Alt-Q re-linebreaks a whole paragraph so it fits nicely within n chars.
There's currently no hard wrap in TextMate but you can re-wrap a paragraph using ctrl-F or ctrl-shift-F to have it with non-ragged right margin.
If you make a column selection and use any of these actions, it'll wrap the paragraph so that it fits inside the margins of the column selection. Like I have done for this paragraph! :)
hi
Am 31.03.2005 um 03:21 schrieb Allan Odgaard:
Auto-fill mode hard wraps lines of text (on word endings) when you get past n chars in a line. Alt-Q re-linebreaks a whole paragraph so it fits nicely within n chars.
There's currently no hard wrap in TextMate but you can re-wrap a paragraph using ctrl-F or ctrl-shift-F to have it with non-ragged right margin.
If you make a column selection and use any of these actions, it'll wrap the paragraph so that it fits inside the margins of the column selection. Like I have done for this paragraph! :)
There seems to be a little bug related to this feature: if you make a column selection of more than one paragraph and press Ctrl-F twice (or more often), all but the first paragraphs are indented by one character.
On Mar 31, 2005, at 16:09, Frank Schönmann wrote:
If you make a column selection and use any of these actions, it'll wrap the paragraph so that it fits inside the margins of the column selection. Like I have done for this paragraph! :)
There seems to be a little bug related to this feature: if you make a column selection of more than one paragraph and press Ctrl-F twice (or more often), all but the first paragraphs are indented by one character.
Ah, true -- thanks!
On 31 mars 05, at 00:50, Jeremy Brown [InfoSend] wrote:
Is there a way to make it go to:
blah("blahblah")_
More efficiently than using the right arrow key? Like when you're hitting the tab key for a snippet?
Option + right arrow puts the cursor at the start of the next word (after the ")") Cmd+right arrow or Ctrl+E puts the cursor at the end of the line.
This is true in all Cocoa apps, I think.
Fred B. wrote:
Option + right arrow puts the cursor at the start of the next word (after the ")") Cmd+right arrow or Ctrl+E puts the cursor at the end of the line.
This is true in all Cocoa apps, I think.
Aside from that though .. I think he means something akin to how Eclipse can do ...
It'll do all the smart typing w/ the putting the cursor in the smack dab in between quotes, parenthesis, etc ... but if I hit the semicolon, it jumps out of the quotes/parens whatever put it at the end of the line for me ...
Isn't that nice? ... I wonder if we could mimic something like that w/ textmate ... in jEdit I have a shortcut ... ctrl-; which jumps to the end of the line and drops a semicolon ... not as slick, but still helpful.
-steve