I have noticed that block folding behaves differently in 10.7 when using HTML bundle in PHP environment.
The code below behaves in 10.6.8 as it should, folding properly, but in 10.7 it has somehow begun to take notice of the "array(" and starting to mess up the rest of the folding.
<?php
class dummy {
private $var = array(
"key" => "value"
);
function function1() {
}
function function2() {
}
}
?>
> In my opinion, the full screen of the app pages is well implemented. It is
> almost like write room. Is it possible to have a similar implementation of
> the Lion full screen in Textmate?
It's possible to hack full-screen functionality into 1.5:
in Terminal type:
plutil -convert xml1
/Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
mate /Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
Search for 'NSWindowBacking' key/value pair and after these entries,
insert the following:
<key>NSWindowCollectionBehavior</key>
<integer>128</integer>
Quit TextMate, and in terminal type:
plutil -convert binary1
/Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
I'm still working out if this is a good idea or not.
Andy.
Hello,
Thanks for the replay. I figured it out. By using this:
{name = 'variable.ksp';
match = '(\$)[a-z_]\w*';
},
{name = 'entity.ksp';
match = '(\%)[a-zA-Z_]\w*';
it works well but is there a way that I could have the $ and % a different color? Currently when I change the color in the theme for the variable and entity it changes the color of the whole word including the variable and array symbols ($ and %). It would be nice if I could have different colors for those as signifiers of what they are in the code.
Is there a way to do that? How can I change the scope for only the symbols($ or %) and not the words after?
Thanks for your time and answer.
Best,
John
This will get you started...
http://manual.macromates.com/en/scope_selectors
Adam Merrifield
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Email: info(a)seydoggy.com
Office: 519-489-6033
Cell: 519-574-9788
On 2011-08-01, at 20:57, Walter Lee Davis <waltd(a)wdstudio.com> wrote:
> The PHP bundle does the first of these, you might want to look at that for insight. Im not sure how you would do the second one, but you may spot a different construct in there that would help you figure this out.
>
> Walter
>
> On Aug 1, 2011, at 4:59 PM, John Relosa wrote:
>
>> Hello,
>> I post this question a while back but had no answer... Is it one of those RTFM question or did it slip through the cracks? Can someone point me to the right direction if so on how to accomplish such t a thing??
>> Thank you in
>> advance.
>>
>> Best
>> John
>> ----------------------------------------------------
>> I've seen some bundles do that but I can't figure out the way to accomplish this.
>>
>> In the language that I am working on I have variables and arrays etc...
>> Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front?
>>
>> Something like
>>
>> declare $variable
>> declare %array[]
>>
>> so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?.
>>
>> Thank you.
>>
>> Best,
>> John
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 39, Issue 2
***************************************
Hello,
I've seen some bundles do that but I can't figure out the way to accomplish this.
In the language that I am working on I have variables and arrays etc...
Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front?
Something like
declare $variable
declare %array[]
so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?.
Thank you.
Best,
John
I did a fresh install of Lion on my Mac. As a result, I had to reinstall
TxMate (1.5.10 (1631)) as well.
First, the irritating bug regarding keyboard input from a Ruby program is
still not fixed in TxMate Version 1.5.10 (1631). I know there's a
workaround, and I'm using it. But still, this thing has been irritating for
over a year and a half, is there anyway to roll that workaround into the
next version of TxMate?
Second, the shortcut (Ctrl - Cd - N) to start a new project doesn't seem to
work, is this a known problem?
Is there a keyboard shortcut to switch the 'Select Bundle Item' window
(control+command+t) from 'Item title' to 'Key equivalent' and back? This is
usually accomplished by using the mouse to click the magnifying glass.
However I'd prefer to not use the mouse if I can help it.
Anyone?
Thanks
Brandon
I looked into Doodim, it doesn't support even Snow Leopard from what I
remember, and they said they lost the source code. Oopsie. If you get it
working, please let us know.
Brandon
Hello,
I post this question a while back but had no answer... Is it one of those RTFM question or did it slip through the cracks? Can someone point me to the right direction if so on how to accomplishsuch t a thing??
Thank you in advance.
Best
John
----------------------------------------------------
I've seen some bundles do that but I can't figure out the way to accomplish this. In the language that I am working on I have variables and arrays etc...
Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front? Something like declare $variable
declare %array[] so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?. Thank you. Best,
John
Hi,
... I'm new to the list, so please forgive me if this is a big "yes-we-all-know-that-already".
I have replaced my old machine with a new big iMac and upgraded to Lion. Now I have the console log filled all over the place with tons of messages like this one:
28.07.2011 6:18:29.046 PM TextMate NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
I checked the file /Applications/TextMate.app/Contents/Resources/Info.plist:
$ pwd
/Applications/TextMate.app
$ find . -type f -exec grep -il cfbundletyperole {} \;
./Contents/Resources/Info.plist
$ cd Contents/Resources/
$ pwd
/Applications/TextMate.app/Contents/Resources
$ grep -i cfbundletyperole *
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
My installed TextMate is version 1.5.10 (1631).
So, all is "Editor" as the NSDocumentController requested. What's wrong here? Does anybody have an idea? What can I do?
Thanks very much in advance.
--
cul8er
Paul
paul.foerster(a)gmx.net
Hey everyone. Apologies if this has been covered to death, but I use
TextMate to do PHP development, and I'm frustrated by the autoindentation: I
use spaces instead of tabs and the autoindent will put N number of spaces
for the empty line rather than just a new line.
Is there either an addition to the PHP bundle or a standalone bundle itself
that can clean this up for me?
--
Wells Oliver
wellsoliver(a)gmail.com
In my opinion, the full screen of the app pages is well implemented. It is
almost like write room. Is it possible to have a similar implementation of
the Lion full screen in Textmate?
--
View this message in context: http://old.nabble.com/Lion-Full-Screen-tp32153117p32153117.html
Sent from the textmate users mailing list archive at Nabble.com.
I'm not sure which command you are originally referring to, but this is
pretty easy to just whip up in the bundle editor (thank you, TextMate!).
Create a new snippet. You can name the snippet whatever, and assign it to
whatever keyboard shortcut. Just make sure to put 'text.html' in the 'Scope
Selector' field. This will make sure the keyboard shortcut only activates
when you are in an HTML document*.
So, here is the snippet:
<a href="$1">$TM_SELECTED_TEXT</a>
Just paste that into the bundle editor window (get rid of any extra
whitespace), close the bundle editor, and baby you got a stew goin'!
Highlight some text and press your keyboard shortcut to make a new anchor.
The caret will be in the quotes where the $1 is.
* More correctly, it will be active when the caret is in a scope of
text.html. You can check the scope at any time by using a keyboard
shortcut, but I think it's disabled by default. To enable it, click the
'Filter List...' button near the bottom of the bundle editor, and click the
checkbox by the bundle titled 'Bundle Development'. Once that is enabled,
press control+shift+p to see a tooltip with the scope hierarchy in it.
There's documentation about this stuff on the TextMate site if you are
interested in learning more.
@Gerd: Dear God, thank you. I have been keeping an eye out for the
'standard' location of PlistBuddy for a while now, since it seems to pop up
in the most random spots. Such a fantastically useful tool that I could
never find when I needed it.
@Allan: Thanks for just mentioning TextMate 2. :) It gives us all a sigh
of relief to know it's still out there. I'm sure I'm not the only one who
feels this way: TextMate opened my eyes. The elegance, the simplicity, the
flexibility, the power. I just fell in love. So when our exuberance gets
bothersome, just smile a little. We are just in love with your creation,
and love makes anyone a little crazy and goofy.
For some reason, this HTML snippet/shortcut does not work for me:
Wrap Selection as Link (⌃⇧L) — this turns the selection into link text for
an anchor where you can then fill in the URL.
Is it still available? Have I screwed up my config and lost it?! Or has it
been deprecated?
At the least, I'd like an easy way to create anchors in TM. Is there one
I'm missing? I looked in the Bundle Editor.
Thanks!
-- Owen
I've just installed OS X Lion and having
a problem with the LaTeX preview.
I have the latest TM and latest LaTeX from MacPorts.
When I choose to compile a document (cmd+R),
everything works fine and my favorite Skim opens
the compiled pdf. But this is slow and jumps
to the beginning of the page all the time.
So I used the watch document feature (ctrl+cmd+W).
But now in Lion it fails to open Skim, and
despite that in the LaTeX bundle preferences
I set up to use Skim, TM always opens TexShop pdf preview.
Any suggestions how to tell TM to use Skim in Lion?
I do not know why i sometimes get this error. It seems to happen if I
am running inside a shell in screen. It has happened other times as
well when I'm not in a screen shell.
Hi All,
With Alex Ross' kind permission I created a clone on github and modified it:
git://github.com/gknops/scratch.tmbundle.git
The changes make it work much better with my workflow (YMMV):
- Shortcut changed to easier to use Shift-Cmd-C
- Instead of the temporary buffer document it now shows the scratch manager
- The file names in the scratch manager are clickable and bring you to where the scratch came from
I kept the original UUIDs (as they were in the svn review repo), not sure if that is a good or bad thing. Someone enlighten me please.
Gerd
Is there an URL/RSS feed which will always show the latest version?
Due to my limited Internet access (long story), I have a shell script
which runs on a remote server every night and tells me if I need to
update any of my apps.
Most of the time this is pretty easy, but TextMate doesn't seem to use
Sparkle for updates, so I can't figure out what URL to check. There
has to be one since the app supports built-in version checking.
Any help appreciated :-)
TjL
Hi, recently i install couple of bundles, all of them is visible in bundle
editor, but working just a few, that was already .tmbundle filename
extension (like minimal design tools), but some not, (like jquery bundle)
which was originaly folders, instruction says just to rename them, so I did
so and they instaled but won't working.
What i did wrong?
Thanks.
--
View this message in context: http://old.nabble.com/Some-bundles-won%27t-work-tp32040706p32040706.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am using mate on an italian keyboard.
While the menu tell me that I can do shift left wiht command + [ when I try nothing happens.
I have to do alt + command + [ to get a shift left but this last keymap is supposed to do code formatting.
Thanks
Andrea Campolonghi
acampolonghi(a)gmail.com
I for one refuse to update to Lion until Textmate adds a leather toolbar and a linen background, and I also want to see torn paper edges and maybe coffee stains. Or better yet, since the trend is to make things look like their physical counterparts, can you make TextMate an attractive brunette, because that's what my editor looks like IRL (she's my wife). Enough of this list chatter on purpose and features - what's important is some consistency in the UX.
Just thought some levity would help.
I just have to say you guys are brave, installing Lion into your workflow
all willynilly like that. Especially when the support for 'Now Leopard
Compatible' TextMate is basically just some dudes chilling on a mailing
list.
Brandon