Every time I launch TextMate, whether it's opening an existing file or
launching the app from my dock, my system emits the normal error beep.
There aren't any dialog boxes that appear so I'm at a bit of a loss
for what might be causing this. Any ideas?
Thanks,
Mark
It would be great if any text within <source> tags were ignored by the
auto-indent feature, it tries to treat my inline Groovy code as XML which is
less than useful.
Otherwise, I'm a TextMate loving Release Engineer and this editing mode
rocks :)
Thanks,
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"Technological progress is like an ax in the hands of a pathological
criminal." -Albert Einstein
Hi,
In brief, what I want is for TextMate to automatically use the 'CSS'
Language scopes when I'm editing my <foo-css.inc.php> includes (which
contain only css text), and to use the html Language scopes when I'm
editing my html includes, <foo-inc.php> (which contain only html
text).
What I've Tried:
I have read through the Language and Scopes sections of the manual, and then:
--in the Bundle Editor, made a new language called 'css-inc-php'
--copied the css langauge into it
--left the scopeName unchanged at 'source.css'
--changed the fileTypes to:
fileTypes = ( 'css', 'css.inc.php' );
However, this does not do anything, so I assume TextMate is not using
this information, at least in the way I've set it up.
Why This Is Important To Me:
I'm switching back and forth hundreds of times a day between the css
include and the non-css include, and each time I do so, I have to hit
control-shift-option-C or -H to get the CSS or HTML scope.
In other words, each time I switch from one include to the other
(which I do about once every minute), I'm looking at the wrong scope
language, because I just changed it for the previous file, and
TextMate, obligingly enough (but sadly in this case) remembers.
Is there a way to get this to happen, so TextMate will automatically
recognize the CSS Language for foo.css.inc.php files?
Thanks
Steven Rowat
Hi,
if one writes a tmcommand which should write unicode characters (ucs
hex code large than 0xFFFF) via "Insert as Snippet" the output is wrong.
It is not easy to reproduce it caused by the font problem but doable.
-create a new tmcommand
-write echo "
-open Character Palette; go to View: Code Tables; browse to Unicode
00020000 CJK Unified Ideographs Ext. B; scroll the glyph window to
code point 20050 (column 0); double-click on it to insert into the
tmcommand
-write after the inserted character a "
[if you have such a font you should see this:
otherwise you see a square or whatever.]
-set the output of the tmcommand to 'Insert as Snippet'
If you invoke that command instead of the Chinese character you will
see a simple 'P'.
If you set the output to 'Insert as Text' you will see the correct
character (if you have the font ;)
Why a 'P'? Answer: This character has the UCS code point 0x20050.
Insert as Snippet ignores the leading 2 and will insert 0x0050. And
0x50 is a 'P'.
One can do it for all characters beginning from 0x10000 up. Always
the same.
I know, this bug is more or less marginal but at least for me it's
important – it's my job ;)
Cheers,
Hans
Thanks Thomas,
I had a look at the CSS bundle already, but I will definitely try and
get a better grip on the rules you have there.
I think the idea of compressing as well as alphabetizing is good, but
I wanted to make it fairly solid before I looked at integrating with
anything else.
Alphabetizing is quite helpful when you get used to it, and certainly
helps when you're inheriting a code base. The script seems to run
very quickly, although I'm on a dual-core MBP.
Thanks for your reply,
Pete
On 11 Mar 2008, at 12:00, Thomas Aylott wrote:
> From: Thomas Aylott - subtleGradient <textmate(a)subtleGradient.com>
> Date: 10 March 2008 12:37:17 GMT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Bundle to alphabetize CSS rules
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Personally this comment would confuse me for my own CSS. But I can
> imagine it being useful for working with other peoples crazy CSS
> files.
>
> There are already reformatting macros in the CSS bundle that I made
> to completely compress or pretty-print all your rules. It might make
> sense to merge these commands somehow. Depending on the speed of the
> php.
>
> Check out the regex I use in those macros. I tried to make it pretty
> flexable and just ignore the contents of of the rules. I haven yet
> heard of anyone running into a rule that my redormatter breaks.
>
> Thomas Aylott [SubtleGradient] from iPhone
The bundle includes v2.3.5 of the YUI! Compressor which weighs in at
about 900k, making an already large bundle a little larger. I've bound
the command to ⌃⌘C to keep it consistent with the other compression
commands.
If you've not already heard about the YUI! Compressor more information
is available at the YUI! Developer site[1]. It's a lot like Dean
Edwards' Packer but without the eval() and a different variable
renaming scheme (which seems to improve gzip efficiency).
(The bundle is nearly 2mb compressed so I've made it available for
download[2] instead of attaching it directly to the list)
john
[1]: http://developer.yahoo.com/yui/compressor/
[2]: http://from.johnmuhl.com/JavaScript Tools.tmbundle.zip
Is there an option that I've missed - to save a file as a copy and
then continue working in the original?
current 'save as' behaviour is to start editing the newly named copy.
I often do save as to create a restore point for a file and keep
getting caught out by the fact that I'm editing the new copy not the
old file...
any suggestions for how I might approach this better, or is there an
option for "save a copy of this with a new name and work in the
original"
;o)
TIA
I am currently taking an ancient Latin class.
Latin, in modern text, makes use of macron ( bars over letters ).
The best way to render these glyphs, I have found, is to use the
glyphs-description in the LaTeX set, e.g. \={u} produces a little u
with a bar over it.
Typing in 5 strokes just to produce that glyph is pretty painful, so i
wrote a bundle called "Latin Student". The bulk of of these features
were along the lines of ^u producing the aforegiven LaTeX set.
1. Is there any guide on how i could export this? A place where I
could check this and other ancillary notions like "linify based on ';'
prefixed by numbers"
2. Is there any interest in thinking about building a larger bundle
which could serve many Languages or non-Latin glyphsets
Valete,
Steven
Hi,
For what it's worth I just tried Hans-Joerg's "Save As..." command and it
worked exactly as expected: the steps involved were pretty minimal, but
maybe something got missed along the way?
(1) Download the "Save" file from Hans-Joerg's message.
(2) Change the extension to ".tmcommand", so the file name reads "
Save.tmcommand".
(3) Double click the newly named beast.
(4) Full steam ahead... using command-shift-s produced a byte-for-byte copy,
but also left me editing the original file.
Odd,
Paul
Hi.
I began working on a bundle to support google's ajax api, http://code.google.com/apis/ajax/
Currently I've implemented most of google maps, which is what I use
the most, but if anyone else is interested in implementing the other
APIs (search and feed), feel free.
Any feature requests or bug reports are welcome (with or without
patches)
I also plan on adding support for the pure maps API where everything
is prefixed with G or G_, but not sure if that should go into its own
bundle or not.
Regards,
Peter Haza