Hi!
I'm new to TextMate - and so there came up some questions which I've gathered here. Thanks in advance for any tip! Bye, Tom
How can I open the file at the cursor directly from inside the editor?
Can TM hilight the matching brackets? (I'm using "pastels on dark" color scheme; if thats important...)
How do I make the cursor follow when I've scrolled some pages with Ctrl-CursorUp/Down? "Standard-behaviour" is that the cursor stays where I've started.
How do I find the next match (for the same criteria) when searching incrementally with Ctrl+S?
Is there a simple calculator in TM?
I prefer bookmarks that I can access directly, e.g. something like ^1 for line 40, ^2 for line 88 etc - instead of F2. Can I have that with TM?
Thomas Mai wrote:
How can I open the file at the cursor directly from inside the editor?
You'll have to explain. Are you talking about a complete file path? In what language file?
Can TM hilight the matching brackets? (I'm using "pastels on dark" color scheme; if thats important...)
When you arrow past the final bracket, the starting bracket is highlighted. You can also select everything inside a pair of brackets with Edit → Select → Enclosing Brackets.
How do I make the cursor follow when I've scrolled some pages with Ctrl-CursorUp/Down? "Standard-behaviour" is that the cursor stays where I've started.
see [here](http://macromates.com/blog/archives/2005/07/05/key-bindings-for-switchers/)
How do I find the next match (for the same criteria) when searching incrementally with Ctrl+S?
press ⌃S again
Is there a simple calculator in TM?
There are a few, but you can certainly make your own if they don't do enough. Take a look through the bundles. (hint, there's a "math" bundle)
I prefer bookmarks that I can access directly, e.g. something like ^1 for line 40, ^2 for line 88 etc - instead of F2. Can I have that with TM?
You could probably make some commands for such a thing.
-Jacob
Hi Jacob,
thanks for your help!
How can I open the file at the cursor directly from inside the editor?
You'll have to explain. Are you talking about a complete file path? In what language file?
I'm coding in PHP, JavaScript, CSS and HTML and, yes, a complete file path can be part of the file name. What I mean is: Let's say there's something like "require 'shared/ session.inc.php';" in my code. Now I'd like to move the cursor above the filename, press any shortcut, and - voilà - TextMate opens the file.
Can TM hilight the matching brackets? (I'm using "pastels on dark" color scheme; if thats important...)
When you arrow past the final bracket, the starting bracket is highlighted. You can also select everything inside a pair of brackets with Edit → Select → Enclosing Brackets.
Ah ja, I expected that - but that does not "really" work in my TM copy. Some short, one-time-only flashing can be seen when I move the cursor from left to right over the closing bracket. But... I guess there should be more ;)
Bye, Tom
On 2007/05/11, at 12:40, Thomas Mai wrote:
Can TM hilight the matching brackets? (I'm using "pastels on dark" color scheme; if thats important...)
When you arrow past the final bracket, the starting bracket is highlighted. You can also select everything inside a pair of brackets with Edit → Select → Enclosing Brackets.
Ah ja, I expected that - but that does not "really" work in my TM copy. Some short, one-time-only flashing can be seen when I move the cursor from left to right over the closing bracket. But... I guess there should be more ;)
Yes.. I too think it is much too quick.. Very easy to go unnoticed. Is it configurable?
André Cruz
On 11. May 2007, at 13:48, André Cruz wrote:
Some short, one-time-only flashing can be seen when I move the cursor from left to right over the closing bracket. But... I guess there should be more ;)
Yes.. I too think it is much too quick.. Very easy to go unnoticed. Is it configurable?
Not configurable -- I haven’t looked at it for 2.x yet, but I plan to…
On 11 May 2007, at 12:40, Thomas Mai wrote:
Let's say there's something like "require 'shared/ session.inc.php';" in my code. Now I'd like to move the cursor above the filename, press any shortcut, and - voilà - TextMate opens the file.
The PHP bundle includes a “Jump to Included File” command which can do this, in fact if you configure your PHP include path then it can even search for the file in there. Check out the bundle help – from Bundles → PHP → Help – for more info.
Hi Ciarán,
The PHP bundle includes a “Jump to Included File” command which can do this, in fact if you configure your PHP include path then it can even search for the file in there. Check out the bundle help – from Bundles → PHP → Help – for more info.
that command is missing in my bundles. Could you post it here?
Bye, Tom
that command is missing in my bundles. Could you post it here?
It should be included. Is your version of TextMate up to date?
Yes, I think so. It's 1.5.5 (1368)
I've searched all bundles manually and via Ctrl+Apple+T - but no "Jump to..." existing. Then I've download a Trial version, extracted the commands and used them to update my bundles - no success.
Hm...
On 11. May 2007, at 19:17, Thomas Mai wrote:
that command is missing in my bundles. Could you post it here?
It should be included. Is your version of TextMate up to date?
Yes, I think so. It's 1.5.5 (1368)
Use Preferences → Software Update and switch to Cutting-Edge. Then you’ll get r1383.
The command Ciaren speaks about is from 2007-03-08 -- r1368 is from 2007-03-04, so missed it by four days.
that command is missing in my bundles. Could you post it here?
It should be included. Is your version of TextMate up to date?
Yes, I think so. It's 1.5.5 (1368)
Use Preferences → Software Update and switch to Cutting-Edge. Then you’ll get r1383.
The command Ciaren speaks about is from 2007-03-08 -- r1368 is from 2007-03-04, so missed it by four days.
That's it - now my copy can jump too :)
Thanks a lot, Tom
On 11 May 2007, at 21:17, Thomas Mai wrote:
that command is missing in my bundles. Could you post it here?
It should be included. Is your version of TextMate up to date?
Yes, I think so. It's 1.5.5 (1368)
Use Preferences → Software Update and switch to Cutting-Edge. Then you’ll get r1383.
The command Ciaren speaks about is from 2007-03-08 -- r1368 is from 2007-03-04, so missed it by four days.
That's it - now my copy can jump too :)
Thanks a lot, Tom
Sorry about that, it's been there some time now so I'd assumed it had been in a release.
On May 10, 2007, at 6:37 PM, Thomas Mai wrote:
How can I open the file at the cursor directly from inside the editor?
Not sure what you mean. A file selected in the Finder? In TextMate's project drawer?
Can TM hilight the matching brackets? (I'm using "pastels on dark" color scheme; if thats important...)
When you type a closing bracket, the opening bracket will flash, but it happens quick and in many cases, the match is off-screen, which doesn't help you much. An alternative that a lot of us use is to place the cursor inside the brackets somewhere (but not inside any sub-brackets) and hit ⇧⌘B (Edit → Select → Enclosing Brackets). If you want to jump to the beginning or end of the resulting selection, just hit ← or →.
How do I make the cursor follow when I've scrolled some pages with Ctrl-CursorUp/Down? "Standard-behaviour" is that the cursor stays where I've started.
This has been answered in the past, but I don't remember because it never bothered me. If you search the list archives, you should find it.
How do I find the next match (for the same criteria) when searching incrementally with Ctrl+S?
Hit ⌃S again (and again and again if needed).
Is there a simple calculator in TM?
Check out the Math bundle. Most operations can be called with ⌃⇧C.
I prefer bookmarks that I can access directly, e.g. something like ^1 for line 40, ^2 for line 88 etc - instead of F2. Can I have that with TM?
Not that I know of, but someone else can chime in if they have any ideas.
--- Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
On May 11, 2007, at 8:26 AM, Rob McBroom wrote:
When you type a closing bracket, the opening bracket will flash, but it happens quick and in many cases, the match is off-screen, which doesn't help you much. An alternative that a lot of us use is to place the cursor inside the brackets somewhere (but not inside any sub-brackets) and hit ⇧⌘B (Edit → Select → Enclosing Brackets). If you want to jump to the beginning or end of the resulting selection, just hit ← or →.
opt-ctr B is even better, as you can grab larger and larger sub- brackets by repeating.
Jenny