I do almost all my writing in TM these days, using MultiMarkdown, and
then simply preview using the built-in browser to get pretty pages to
print when I need to. The built-in browser does a great job of
respecting left and right margins as set in style sheet, but it cares
not one whit for top and bottom margins and so when I print I get text
that starts at the very top and runs to the very bottom of the page.
Is there a way to change this within my little TM universe? Outputting
to a browser like Safari means I get all of Safari's headers and
footers, which I don't need.
john
Hi,
>I want 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).
OK, I can report that I solved my dilemma by renaming all the 'css.inc.php' files as '.inc.css' files, and TextMate properly sets the language as css.
I had read that using .css is less secure than using .php (which is why I didn't use .css to begin with), but that's probably only valid when the includes are inside the web site root; mine are outside.
Sorry for the false alarm.
Steven Rowat
Hello everyone,
I am heavily using the latex bundle currently and the bibliography
completion does not seem to work anymore. When trying to complete ~
\citep{Foo} I get 100% CPU usage by ruby and these messages after
killing it:
/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
lib/LaTeXUtils.rb:141:in `parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `map'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `parse_bibfile'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:251:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `each'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `call'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:215:in `each'
... 8 levels...
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:204:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:255:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:63:in `get_citations'
from /tmp/temp_textmate.Bb9x12:8
I am using the latest version of BibDesk to manage my bibfile, which
inserts quite a lot of non bibtex code in custom fields e.g.
@article{McCafferty2002ME,
Author = {McCafferty, S and Bermingham, E and Quenouille, Brice and
Planes, Serge and Hoelzer, G and Asoh, K},
Date-Modified = {2008-01-27 17:23:40 +0100},
Filed = {Yes},
Journal = {Molecular Ecology},
Pages = {1377--1392},
Read = {No},
Title = {Historical biogeography and molecular systematics of the
{I}ndo-{P}acific genus \textit{{D}acyllus} ({T}eleostei:
{P}omacentridae)},
Volume = {11},
Year = {2002},
Bdsk-File-1 =
{YnBsaXN0MDDUAQIDBAUGCQpYJHZlcnNpb25UJHRvcFkkYXJjaGl2ZXJYJG9iamVjdHMSAAG
GoNEHCFRyb290gAFfEA9OU0tleWVkQXJjaGl2ZXKoCwwXGBkdJCVVJG51bGzTDQ4PEBEUViR
jbGFzc1dOUy5rZXlzWk5TLm9iamVjdHOAB6ISE4ACgAOiFRaABIAGWWFsaWFzRGF0YVxyZWx
hdGl2ZVBhdGjSDRobHFdOUy5kYXRhgAVPEQLMAAAAAALMAAIAAANtYWMAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAADCsBfOSCsAAAAQSwYfTWNDYWZmZXJ0eTIwMDItSGlzdG8jMTA0QkFELnB
kZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBLrb2LoXgAAAAAAAAAAAABAAM
AAAkgAAAAAAAAAAAAAAAAAAAABnBhcGVycwAQAAgAAMKv
+64AAAARAAgAAL2LhVgAAAABABQAEEsGABBGCwAQRggAB/
PvAABwQgACAEhtYW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AAAAAAKAAAAAAAAAAAAAAAAAAABFo=}}
The last large chunk is a Finder alias to a file on the disk, wich
allows to store many files associated with each reference. Could that
be preventing the ruby script to parse the file?
Anyone with the same setup?
BTW, the completion method involving bibdesk directly (through
applescripts) still works but is slower and requires mouse clicks.
Thanks in advance.
NB: this was already sent to textmate-dev but is probably more
appropriate here
JiHO
---
http://jo.irisson.free.fr/
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