Great work on the bundle so far... though I'm currently having
trouble running the executable. When choosing Build & Run or just
Run, I get the following error:
/Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/
bin/run_xcode_target.rb:175:in `run': undefined local variable or
method `file' for # (NameError) from /Library/Application Support/
TextMate/Bundles/Xcode.tmbundle/Support/bin/run_xcode_target.rb:
193:in `run' from /Library/Application Support/TextMate/Bundles/
Xcode.tmbundle/Support/bin/parse_build.rb:202 from /Library/
Application Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/
format_build.rb:559
I have the following problem, returning to a latex project after 2-3
weeks:
1. Even though I have set the master file to \includeonly{chap7}
when I compile within Textmate it ignores the command and constructs
the whole document.
When I manually do 'latex, bibtex, latex,latex' there is no problem.
2. I set TM_LATEX_ERRLVL to 0 but the ouput screen always disappears.
I tried the other values (1 and 2) with exactly the same behaviour.
How can I track down the problem?
Thanks,
Christopher
recently i was giving RSpec[1] and Behaviour-Driven Development
(hereforth BDD)[2] a look and found myself repeatedly writing the same
code constructs. i quickly slapped together two snippets for the ruby
bundle that seem to help out. the snippets could be made more spiffy
perhaps by turning them into macros and make them act similar to the
rails migration macros - but they still might be of some use in their
initial form.
worth noting, if you install RSpec 0.7.* and follow along with the BDD
tutorial[3], make sure change all of their:
object.should_be_equal
to:
object.should_be ==
or else you will be checking for object equality rather than value
equality (as mentioned in their upgrade notice[4]). i sure wish they
would have updated their tutorial...
cheers,
jean-pierre
[1] RSpec <http://rspec.rubyforge.org/>
[2] BDD <http://behaviour-driven.org/>
[3] RSpec tutorial <http://rspec.rubyforge.org/tutorials/>
[4] RSpec update notice <http://rspec.rubyforge.org/upgrade.html>
Hi,
At some point in the last month something major changed with the
JavaScript bundle. In particular, so many symbols are now added to the
symbol list that it is basically unusable. I can't say exactly when
this change occurred, but I would assume that others have noticed as well.
As an example, have a look at the following lines of (contrived) code:
var i = document.createElement('input');
i.type = 'checkbox';
i.name = 'foo';
i.value = 'bar';
i.checked = false;
I would not expect this to add any symbols to the symbol list. But in
fact, this block of code adds the following four symbols:
type
name
value
checked
Has anyone else had this problem? Does anyone know how I can fix this?
Thanks,
Taylor
I am having a number of GTDAlt bundle problems, but I'll start with just one
of them.
When I run the Action--->Archive completed script, I get this error:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:41:in `parse':
Parse error on line: /Volumes/USBGOODMAN/GTD/gtd.txt (RuntimeError)
. This is not a line I recognize. from /Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:223:in
`initialize'
from /tmp/temp_textmate.uTEk7h:5:in `new'
from /tmp/temp_textmate.uTEk7h:5
I am not a programmer so I can't understand what exactly it can't parse.
The text of the file is:
project lawrence
@call go to store due:[2006-11-17]
#completed:[2006-11-17] @home eat pie [1] due:[2006-11-17]
end
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi!
Just tried to start to learn creating presentations with the beamer-
class and moved the templates to ~/Library/Application Support/Latex/
Templates
I switch to Latex Beamer or Latex in TextMate, type temp⇥, choose
one of the templates and with all templates, except for one nothing
happens except that the "temp" is deleted.
Any ideas what that could cause?
Niels
Hello
I created a project by dragging a folder with files .tex. I would
like to filter the files and to see only the .tex files and
not .log .pdf etc. sometimes I want to also see the .sty and .cls for
the development. I do not know the regular expressions to do this.
How to show only the files .tex, .cls, .sty, and .cfg
Thanks
Hi!
I have two questions regarding language grammars
1) Is there a way to have two language grammars working on one language?
As an example: There's the language grammar Latex in the Latex-Bundle
I have an additional bundle for own snippets and commands. Sometimes
I'm coming along a need for having something added to the
Latex-language grammar and I would like to Hotfix it w/out breaking it
with the next update (or as I just noticed I couldn't even change the
grammar). For this I would like to have in my own bundle a
Latex-language grammar which includes only the hotfixes and works
together with the rest of the language grammar of the Latex-Bundle. Is
this possible?
2)What's the best way to edit stuff in the bundle editor? Right now
I'm using for longer stuff always "Edit in Textmate" - is there
anything else for getting the comfort of Textmate while editing
snippets, commands and so on?
Niels
I have just downloaded TextMate for a try before buy and because I
write a lot of AppleScripts, wanted to open and compile my text in my
Script Editor of choice: Script Debugger 4 (set as my default). TM
defaults to Apple's Script Editor. How do I change that?
Adam Bell
I downloaded Marc Liyanage's "Open Terminal Here"[1] droplet and
modified it to open TextMate instead. Hence, "Open TextMate Here".
I've attached the droplet for anyone who's interested. I keep it in
~Library/Application Support/Finder (renamed to "Mate") and then
stuck it in my Finder Toolbar:
j.
[1] http://www.entropy.ch/software/applescript/
Ok, here's an idea.
A back/forward history thing for textmate.
Every time you change something in textmate, it logs where your
cursor is.
Then you can use a back and forward command to navigate between those
places, even between files and projects.
Would anyone but me find that useful?
I have a few idea on how to implement this.
Currently, the only thing that can automatically watch your changes
is the web preview window.
but you can use a pass-thru script in that window to do anything you
want, triggered every time you change something in your document.
the bad thing about that is that it would take over your webpreview
panel, and you'd have to open a webpreview panel for every document
that you want to catch the history for.
The other option is to use a command that you manually trigger. This
is lame because if you forgot to mark something then you'd lost that
step.
Another possible option.
An HTML command window that stays open and continually triggers a
shell script that logs your history.
I don't think this can work right now (i haven't checked) because i
don't think the TextMate.system javascript command grabs new
variables every time it's triggered without reopening the document.
But maybe we could convince Allan to implement something like
TextMate.update_variables or something.
Well, anyway. just thinking out loud.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hi,
I have some text. I know I can use TextMate to do first Soft Wrap (and I set
the colums to 80). Then, I select the whole text and do Reformat Paragraph
and Justify.
But after this, I don't want the justification to occur at the last line of
a paragraph. Therefore, I manually select the last line of every paragraph
and do Reformat Paragraph on those. Is there a way to automate this last
process, that is do Reformat Paragraph on all last lines of all paragraphs?
Also: How would I be able to do this without TextMate, i.e. in the command
line? I'm interested in that because I would like to create a PHP script
that does exactly this.
Cheers,
Ulai
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
I've got a project here with 16,500 files in it (75,000 if you count
the subversion metadata). It's a Joomla 1.5 website with a bunch of
content. I have three copies of the site in the project directory
because of the way I'm merging changes from the latest Joomla SVN
into my own source tree.
Needless to say switching to and from TextMate causes a considerable
delay - between 5 and 10 seconds on my G4 PowerBook. I like to flip
back and forth between a web browser, terminal and TM pretty
frequently - at times as much as maybe a few times a minute - so I'm
spending a fair proportion of my time waiting for TM at the moment.
Does anyone have any tips for speeding up TM's project scanning?
Obviously I could rearrange my project to move some of the less
frequently used files into another project - but I'd rather not do
that if it's avoidable.
It seems that TM only really needs to rescan the directories that are
open in the project drawer and any open files - a full scan could be
then be done lazily if at all. I get the impression it currently
walks the whole directory tree - is that correct? If it's not doing
that what's taking so long?
--
Andy Armstrong, hexten.net
Allen, great job (as usual), I'm sure I'll be using this quite often.
It would be great to add some of this to the language grammar so
context-sensitive commands could be developed, and it could be pretty-
ed up.
I would imagine that the existing support for the headers; to, cc,
bcc, reply to, and subject; would be adequate, although I am curious
if there are others that people would want to use (or could use). I
also wonder if it might be beneficial to quote the values, just to
make sure nothing goes haywire. But I can see that not really being
necessary.
Something really interesting would be a way to lookup email addresses
in the users' address book, though I have no idea if this is even
possible.
--oliver
P.S. Yes, I used the command to compose this message. And it was great.
> Does this have any advantage over the system-provided combination
> of control-command-D (which works with or without a selection).
One thing I don't like about the pop-up is that it appears for
whatever word your mouse is hovering over. This command can work with
a selection or caret placement. Which means for keyboard junkies,
they can skip one more trip to the mouse.
The only other advantage is that you might prefer using the app to
the pop-up.
Hi,
in the list I mentioned the problem that if you want to put images in
a help file written in markdown and using 'markdown_to_help.rb' for
formatting you will loose the reference for these images.
Allan mentioned to echo the base href in beforehand but then the
internal links generated by 'markdown_to_help.rb' don't work.
To solve this problem here my suggestion for an easy solution:
In your markdown file you write e.g.

It is a relative path, so you can see the image with 'Show Web
Preview' while writing your markdown
In your command to display the help you can write:
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Hypersearch Bundle Help" "Hypersearch"
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb"
"$TM_BUNDLE_SUPPORT/help.markdown" | perl -npe
's/(.*?<img.*?src=")(.*?)(".*)/$1file:\/\/$ENV{"TM_BUNDLE_SUPPORT"}\/$2$3/gi'
html_footer
What I'm done here is to pipe the output of 'markdown_to_help.rb' to a
perl command which puts at the beginning of each relative path in src
within a img tag the absolute path 'file:///$TM_BUNDLE_SUPPORT/'.
This perl command, of course, could be also implemented within
'markdown_to_help.rb' or as TM wide standalone command written in
Ruby, Perl, or whatever (which I would prefer for speed).
Cheers,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
I was blown away by the HTML demo on the Textmate site, the ability to
insert matching tags and intelligently tab through them seems like a great
way to create HTML. The fact that I can surround a selection and edit BOTH
start/end tags at the same time had my jaw dropping.
However, this 'magic' behavior seems to vanish once I leave the vicinity of
the tag. If I return (or edit an existing file, when I select a start tag,
it doesn't auto edit the closing tag.
I get how doing this automatically would create some problems. I'm just
looking for a way to someone 'refocus' Textmate on the tag in question,
matching the start end tags so when I reedit one, the other changes.
Through the hundreds of commands in Textmate, i assume there is someway to
do this. Any one have any ideas?
Thanks,
Scott
I updated to the most recent version (6143) and when I try to process
my inbox I get:
/Library/Application Support/TextMate/Bundles/GTDAlt.tmbundle/Support/
bin/process_inbox.rb:27: undefined method `get_contexts' for
GTD:Module (NoMethodError)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
I'm working on a Backpack bundle and I've hit a stumbling block. I
can't get a date object into a plist. I need to read it into a nib
to set the date on a datepicker to the current date and time, but I
can't get any of the functions in the plist library to recognize it.
Any idea what I'm doing wrong? I'd post code, but I've tried so many
things it's hard to begin to describe it... I could just be slow.
Thanks,
Brett
Apologies if I'm being stupid, but since a recent auto-update, the
behaviour of holding option and ctrl with the cursor keys has altered;
I think this is related to an item I noticed in a changelog.
As it stands, Textmate is now using ctrl-left and ctrl-right for
per-word selection, as opposed to option-left/option-right (unlike
every other OSX app I have). Similarly, double-clicking is now
selecting a sentence, not a word. This is more than a mite annoying
for most work I do, with both text and code.
Is the behaviour I describe the default now, or has something odd
happened on my install? If the former, how do I change it... and if
the latter, how do I revert it?
Apologies if this topic has been covered - I couldn't find it anywhere
on the list.
t.
New WebPreview window (with Hacked Nibs)
Download the New TextMate WebPreview Window Nibs
I got rid of the drawer and moved all that stuff to the bottom.
Now it looks mildly less offensive.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Dear all,
Here comes the next step:
There are quite a lot of new things in it so please also read the
HELP scratch.
In short terms:
Changes for 'Search':
- you can look across \n
- you can specify more the one regexp group
- If you select text (also across \n or \t) Hypersearch assumes that
you are looking for a string not via regexp. Thus it will change
RegExp option according to the content of your selection and escape
the string if needed automatically.
- you can display each RegExp group $1, $2, .. separately (useful
when using embedded parenthesis because hyperlinks don't work properly)
New function:
GetAllMatches
-based on a grouped regular expression or a single field delimiter it
outputs all matches table-like according to the chosen data format
-data formats are customizable via property lists by using TM or
Property List Editor (Edit GetAll Formats opens a project for that)
-you can create new formats based on 'new.plist' as template
-output behavior is selectable within the tm_dialog (insert, replace,
create new document,..)
-Search and GetAllMatches are based on the same plist, so you can use
Search to fine-tune your regexp and then open GetAllMatches with the
latest regexp
-five data formats are predefined:
TAB 1\t2\t3\n
HTML <tr><td>1</td><td>2</td><td>3</td></tr>
HTMLindented
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
HTMLTAB
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
CSV "1","2","3"\n
Now you can e.g.
-convert XML to TAB or visa versa;
-type a table with TAB and RETURN within your HTML document and
convert this selection to HTML syntax by specifying the field
delimiter TAB;
-get all function names or string variables out of your script file
-and and and ... see two examples in the HELP
!! Comments, bug reports, and suggestions are welcomed as always.
To install the bundle it is recommended to delete the old Hypersearch
bundle in beforehand.
Cheers,
Hans
PS I get many mails mentioning that Hypersearch is also quite useful
for learning regular expressions ;)
Hi all,
It appears that the 'Show TODO list' command doesn't honour a
project's Folder Pattern. For example, amongst other directories,
I've excluded the 'log' directory from my Rails project to speed up
'Find in Project', etc. As a test, I manually added a TODO to the
development log. If I 'Show TODO list', I see this:

Is it possible/easy for the TODO bundle to support this?
P.S. I'd investigate this further myself, however at this point I'm
relatively new to Ruby.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
hello all,
i am working with files that contain mixed ascii and binary data. if
i open the file in textMate and then resave it (without editing it's
contents), parts of the binary data are incorrectly interpreted as
line-breaks and the data becomes corrupted.
is there a way to create an ascii/binary hybrid file-type that
textMate understands so that i can edit the ascii without ruining the
binary data?
sorry if this is an obvious question, i'm still a textMate newb.
thanks in advance,
chad
I'm getting an odd error when I hit TAB after the 'blog' snippet in
the blogging bundle. Here's an output:
Title: untitled
blog: =>
tm_dialog: server version at v4, this tool at v5 (they need to match)
/Users/afrench/Library/Application Support/TextMate/Support/lib/
dialog.rb:37:in `load': Cannot parse a NULL or zero-length data
(PropertyListError)
from /Users/afrench/Library/Application Support/TextMate/Support/lib/
dialog.rb:37:in `menu'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:603:in `choose_blog_endpoint'
from /tmp/temp_textmate.Ykuqtx:3
Looks like version of tm_dialog is out of sync. Any help would be
appreciated.
===
~Adam
Textmate version: Version 1.5.4 (1324)
Last checked for update: Nov 14 8:42AM central time
Not sure if this is possible or not.
I'd like to setup a window that has an editable text field along with
a drop-down of options. If the user selects an item from the drop-
down, that items value should populate the text field. When the user
is done with the window I want whatever is in the text field, whether
manually typed or pre-populated from the drop-down to be returned by
tm_dialog.
This is similar to what Allan shows in his screencast, except that
instead of an TSTableView I'm using an NSPopUpButton. Also, I want
the NSTextField to be editable, but I don't want anything the user
types there to update the NSAraryController/NSPopUpButton.
I've almost got this working. I've setup an NSArrayController that
I'm populating via tm_dialog. I've bound the NSPopUpButtons's
contentValues to the NSArray Controller. However, whenever I edit the
text field it ends up updating the drop-down. Doh.
Also, I want to give this window working Cancel/Okay buttons.
Is this doable? Do I need to use IB Connections instead of bindings
to tie the pop-up to the text field?
Hints/Tips appreciated,
j.
Hello all,
I must be missing something simple, but this morning my TM refused to
open any projects, old or new. I am using build 1324. The projects I
tried to open are all listed under Window, but they are not
visible. I closed all other apps, rebooted, but the problem remains.
Jenny
Hello!
I try to develop my first bundle for Jess, a rule base language.
For that I defined a snippet
(defrule ${1:rulename}
"${2:description}"
${3:patterns}
=>
${4:actions}
)
Now I want to invoke an other snippets
(MAIN::$1)
invoked by main->tab
at ${3:patterns}. But when I hit the tab, the cursor jumps to
${4:actions}. So, can you recommend something? I think I could simply
use key bindings. But I like much more the tab trigger.
Helge
Helge Hartmann
Antwort an: helge.hartmann(a)gmx.de
Hi,
Possibly an "I've missed the obvious solution" scenario, but is there
an easy way to print a list of the shortcuts/snippets available for a
particular bundle? Clicking on the cog at the bottom of the window
allows you to see them all, but it would be useful when learning a
new bundle not to have to take ones fingers off the keys.
I watched Allan's screencast of working with Objective-C files
yesterday and it made me realise I am probably missing out on a lot
of untapped power!
Thanks,
Nigel
I'm starting to learn [Mozart-Oz](http://www.mozart-oz.org/) and I
could not find a bundle for this programming language on the TextMate
repository. Has someone worked on this already?
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi there,
This is my first post to the list - many thanks to everyone on here
for making it such a valuable resource for a TextMate beginner!
If I am writing in a Markdown document and I want to save as a PDF,
it seems I have two options:
- Preview in textMate and then use the print dialog 'Save as PDF'
command
- Use the MultiMarkdown 'Convert to PDF' command to go directly to PDF
What control do I have over the format of the resulting PDF if I
generate it from the print dialog rather than the 'convert to PDF'
command? I like the 'out of the box' look of the print dialog PDF
better than the htmldoc-generated one, and wondered if I could do
anything to tweak, e.g. fonts, space after headings, list
indentation, etc.
If anyone knows of a good htmldoc intro document that is a little
friendlier than the manpage I'd be grateful too!!
Many thanks,
Nigel
Mike,
I'm trying to use wait, unwait, done & delegate actions, yet none of
them work. I type the shortcut letter such as 'w' and then press tab,
this merely replaces my task with a blank line.
Actually, I just tested manually choosing the action from the bundle
menu and it seems that the shortcuts work fine, it's the actions that
are not working. Choosing the action from the menu does the same thing.
Any info would be helpful.
Thanks
Mike
I'm currently testing out TextMate for doing some Ruby coding. It gets very high marks from the community at large and so far things have looked fairly good.
However, I ran into a bug and I need the list's help to solve it.
The code I'm writing and testing uses the plist gem [1] from rubyforge. Whenever I try to test code that uses any functionality from that gem, the test fails with the following error:
1) Error:
test_temp(TC_MyTest):
NameError: uninitialized constant Some::Plist
method some in temp.rb at line 12
method test_temp in tc_temp.rb at line 13
(where Some is a class I created for the purpose of trapping this bug.)
I searched for this problem and discovered another complaint about it back in July [2] along with a response [3]. The response wasn't very helpful for figuring out a workaround, so I thought I'd ask again.
How can I modify TextMate so it doesn't stomp on the ruby namespace for Plist? Alternately, how can I modify my ruby code to avoid the namespace collision? BTW, I have already "deleted" the Property List Macro Bundle from TextMate but that didn't appear to have any positive effect.
I've already tried different scoping shenanigans with modules and the :: scope operator, but it still blows up. Thanks for your help.
cr
[1] http://plist.rubyforge.org/
[2] http://article.gmane.org/gmane.editors.textmate.general/11813
[3] http://article.gmane.org/gmane.editors.textmate.general/11814
The firstLineMatch in the Mail bundle is '^From: (?=\w+(a)[\w-]+\.\w+)', which doesn't match addresses with names. For example, the first line of my emails is 'From: Grant Hollingworth <grant(a)antiflux.org>'.
I changed the match to '^From: .*(?=\w+(a)[\w-]+\.\w+)' (i.e., check for an email address somewhere on the line).
Hello,
while playing with the Saxon8-parser from M. Kay [ http://
www.saxonica.com ] i found myself typing a lot of <xsl:command
foo="bar"/> stuff producing lot's of typos and mixing up the syntax.
To simplify my life and to learn xslt2 i did these snippets. Almost
any xsl-instruction i found in M.Kay's documents is in the bundle -
these make up ~70 snippets. Some of them are chained-together, some
contain links M.Kay's documentation or the related W3C-docs. Some xsl
which u might find in the official-doc's are not 'visible' in the
bundle, because theses are only allowed as children inside another
instruction - that way the snippets might help to prevent errors. Any
'mandatory'-attribute=must have is in the snippets, characterized by
a fixed attribute-name and a placeholder for the value. Optional-atts
or sub-instructions show up as entire placeholders. Defaults are
always in first place, if a signature is provided with the placeholder.
This is not very much tested, yet. I'll continue to use and improve
it more and plan to make the xsl:functions also available - maybe
within a second bundle.
limitations : i left out one or two xsl:instructions which deal with
schema-processing and are not supported by the basic-version of
Saxon. Furthermore there is and probably will never be more
documentation than provided within this email-thread :-)
One question : I'd thought of auto-generation of snippets, as these
are simple .plist-files, i believe it to be possible to write a
stylesheet to process the html-Saxon-Doc's in order to retrieve the
info from the function-library, including all signatures. I've seen
that the plist-files contain a string-element like this :
<string>F631FE3C-7D78-4E2E-8A17-688E9890D0B6</string>
which looks like a 'unique'-(cocoa)-identifier. I have no idea what
to put into this and which consequences this might have ? any ideas
are truly welcome ;-)
have phun, andreas
--- XSL(v2) - bundle // v0.1 ---
Hello,
while playing with the Saxon8-parser from M. Kay [ http://
www.saxonica.com ] i found myself typing a lot of <xsl:command
foo="bar"/> stuff producing lot's of typos and mixing up the syntax.
To simplify my life and to learn xslt2 i did these snippets. Almost
any xsl-instruction i found in M.Kay's documents is in the bundle -
these make up ~70 snippets. Some of them are chained-together, some
contain links M.Kay's documentation or the related W3C-docs. Some xsl
which u might find in the official-doc's are not 'visible' in the
bundle, because theses are only allowed as children inside another
instruction - that way the snippets might help to prevent errors. Any
'mandatory-attribute'='must have' is in the snippets, characterized
by a fixed attribute-name and a placeholder only for the value.
Optional-atts or sub-instructions show up as entire placeholders.
Defaults are always in first place, if a signature is provided with
the placeholder.
This is not very much tested, yet. I'll continue to use and improve
it more and plan to make the xsl:functions also available - maybe
within a second bundle.
limitations : i left out one or two xsl:instructions which deal with
schema-processing and are not supported by the basic-(freely-avail.)
version of Saxon. Furthermore there is and probably will never be
more documentation than provided within this email-thread :-)
One question : I'd thought of auto-generation of snippets, as these
are simple .plist-files, i believe it to be possible to write a
stylesheet to process the html-Saxon-Doc's in order to transform the
info's from the function-library, including all signatures, into
snippets-files (plists). I've seen that these plist-files contain a
string-element like this :
<string>F631FE3C-7D78-4E2E-8A17-688E9890D0B6</string>
which looks like a 'unique'-(cocoa)-identifier. I have no idea what
to put into this and which consequences this might have ? any ideas
are truly welcome ;-)
have phun, andreas
--- XSL(v2) - bundle // v0.1 ---
PS: sending this for the second time, hope it will arrive only once.
i guess the mailer has eaten the unzipped bundle the first time i
send it ?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm using the (newest) PHP-Package and I would like to color normal
comments other then phpdoc comments.
So I changed the PHP Language a bit to perform this. I replace the
normal comment.block.php with this one:
{ name = 'comment.block.php.phpdoc';
begin = '/\*\*';
end = '\*/';
patterns = (
{ name = 'keyword.other.phpdoc.php';
match = '\@(a(ccess|uthor)|c(ategory|
opyright)|global|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|
ubpackage)|t(hrows|odo)|v(ar|ersion))\b';
}
);
},
{ name = 'comment.block.php';
begin = '/\*';
end = '\*/';
},
So I have an own scope for the phpdoc comment. I also added @license
as phpdoc keyword. It would be nice if you could add this changes to
the official PHP-Package.
I also have another question: How can I activate the spell-check in
(PHP)comments. I tried to use a Preference Item and added
{ spellChecking = 1; } to it and set the scope to "comment" but it
didn't worked.
Do you have any ideas?
Thanks in advance,
Simon Ruderich
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFOQF2YRX4BO+zMikRCn6YAKDUCbqHUHmgkX8VMBag367nBI1wVgCfYqUF
sMHhifE1Hs9wR4Np6QP3Bhw=
=nHGU
-----END PGP SIGNATURE-----
Hi,
I just installed a new version of a bundle. TM asked me whether it
should be updated. I chose YES.
Well, the files within the bundle were updated but NOT the changed
code for commands!?
Can anyone verify this bug?
Cheers,
Hans
Hi Haris, I know you have just done a bunch of reorganization, but it
is producing an error, at least on my end, with the command, `#`:
[2]
/tmp/temp_textmate.ST54F9:41:in
Best, Mark
Hello all,
It occurred to me that it would very useful if the Latex bundle could
let one know whenever a \ref{X} occurs before \label{X}. When you
cut and paste sections, you have to check mentally that the logical
order is preserved. Sometimes, of course, you wish the order to
be reversed, as in "This theorem will be generalized later in \ref
{X}", but this is the exception rather than the rule. It would
helpful to see a list of exceptions in a separate window on command
such as with the handy TODO command.
This seems a natural problem for this group to tackle and would
benefit many grad students now writing their theses.
Cheers,
Jenny
There's a conflict between the system jpeg lib and the one installed
with I installed the Darwin Ports ImageMagick. This has been a
persistent problem that has crashed TextMate for me. Does anyone have
a workaround for this?
The example below shows an svn commit that crashed.
TIA
s.ross
CrashReporter/CommitWindow.crash.log
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/ImageIO
Expected in: /opt/local/lib/libJPEG.dylib
Dear all,
I just wrote a small Drag&Drop command for inserting encoded txt,
htm, html files and doc and rtf files.
The background:
I get a lot of data written as doc, rtf, html, and txt files which
are encoded in different encodings like Shift_JIS, EUC-JP, Big5, etc.
In order to insert these data in my document I wrote a tiny drag&drop
command which makes usage of the tm_dialog and the UNIX command
'textutil'.
The usage is very simple. Just drag one or more selected files to an
open TM document. The dialog will ask you for the source encoding and
the output format. Press 'Insert' and the tool will convert
everything to utf-8 text/html/rtf/rtfd/wordml format. See more detail
with 'man textutil'
The encoding 'no conversion' will avoid a conversion. To change the
available encodings just open the 'icf.plist' within the bundle with
TM or the plist editor. Only IANA names for encodings are allowed.
I leave the scope empty. File Types I set to 'doc, rtf, htm, html,
txt, webarchive'. But, it is easy to customize it.
Now you can drag e.g. a WORD document and insert it as uft-8 (cleaned
up) html in your current document.
For me it works perfectly. Of course, 'textutil' cannot do magic
things but for 95% of all cases it works pretty good.
Maybe some of you find it also quite useful ;)
Comments are welcomed, as always.
Have a nice day,
Hans
Hello.
I have released tmplugin that supports CJK input.
http://hetima.com/textmate/index-e.html
It detects input mode correctly. No action to activate required.
I have tested only Japanese. But it will works with other language
that uses Input Method as well.
Screenshot is here.
http://www.flickr.com/photos/hetima/293699370/
thanks.
--
hetima
Hi,
This should be real quick to answer, but I have
started a Rails app, dragged it into textmate, but it
is having trouble recognizing the Rails bundle.
The Ruby bundle seems to work fine, I can Tab Complete
for the commands there, but not for Rails.
Is there something that I can do to get it to
recognize the Rails bundle as well?
For example
begin[tab] works fine,
but not bt[tab] (belongs to) which is in Rails.
Thanks,
Tim
Timothy Wee
(612)889-1185
3301 Coachman Rd. #321
Eagan, MN
http://www.timshawn.com
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
Hi everybody.
As some of you may have figured out, I work a lot in HTML and CSS and
I have a fetish for descriptive titles on links. I've been rewriting
the wrap selection as link command and have it all worked out to grab
the title of the link in the clipboard if it starts with http(s). I
can't get it to validate the link, though.
Here's the text of the command:
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require 'open-uri'
link = "http://site.com"
title = #{ENV['TM_SELECTED_TEXT']}
s = IO.popen('pbpaste', 'r+').read
if s.match(/(http(s?):\/\/)/) then
TextMate.call_with_progress(:title => "Opening Link", :message =>
"Retrieving Title for #{s}") do
begin
fp = open(s)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a
[1].strip
link = s
rescue
title = "site unreachable"
end
end
end
print %{<a href="${1:#{link}}" title="${2:#{title}}" >
$TM_SELECTED_TEXT</a>}
I've tried all kinds of overly complex methods that all yield the
same results when the link is bogus:
/usr/lib/ruby/1.8/timeout.rb:42:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileconnect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileopen'
from /usr/lib/ruby/1.8/net/http.rb:430:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestart'
from /usr/lib/ruby/1.8/net/http.rb:324:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileproxy_open'
from /usr/lib/ruby/1.8/open-uri.rb:525:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of filepopen'
from /Users/brett/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in
This is what I get (and should get, I think) when I run it from a
Ruby dialog:
<a href="${1:http://site.com}" title="${2:site unreachable}" >
$TM_SELECTED_TEXT</a>
It works great when the site in the clipboard is valid. Any
suggestions would be appreciated.
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
My language grammar is very rusty, so correct me where I'm wrong. I'm trying to modify the language for the Mail bundle so reply quotes have syntax coloring:
>
>>
>>>
I've added the following to the "patterns = {" section of the Mail language bundle:
{ name = 'comment.line.first';
match = '^[ \t]*(>[ \t]*){1}.*$\n?';
},
{ name = 'comment.line.second';
match = '^[ \t]*(>[ \t]*){2}.*$\n?';
},
{ name = 'comment.line.third';
match = '^[ \t]*(>[ \t]*){3}.*$\n?';
},
But in my mail text, on a line starting with > the scope still says:
text.mail.markdown
text.html.markdown
Further, since making these changes, whenever I try to get scope (control shift p) on a mail document TextMate goes AWOL:
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
16465 TextMate 145.8% 0:45.73 4 101 24990 740M+ 20.5M 614M+ 963M+
I removed the Mail.tmbundle/Syntaxes/Mail.tmDelta file and it works again, so clearly something is wrong with my syntax above.
Quinn