Hello,
Can someone please give me hint how to implement the following simple
auto-complete scheme in TextMate:
1. We have three commands: \hi, \hello, \world
2. They can be used as:
a) \hi[mum] or \hi[mum,dad,grandpa] or \hi[mummy,daddy] ...
where we are allowed to put only one of the words mum, mummy, dad,
daddy, grandma, grandpa into brackets (can be a list)
b) \hello[mum,grandpa] ... the same way as \hi is used
c) \world[shape=sphere,color=blue] or \world[color=brown]
where one can use only "shape=sphere/geoid/cube" and
"color=blue/black/gray/brown"
I'm confident with writing ruby code, but I need some basic hints for
the TextMate part of it.
Thanks a lot,
Mojca
Are there any plans to add synctex support to the LaTeX bundle?
Synctex is part of the *tex engine and replaces pdfsync. It will be
part of TeXLive 2008. Skim.app already includes support for synctex.
--
Mark
In looking at how spell checking in comments works, and searching the
archives for alternatives and suggestions, I can see spelling is
disabled in comments because, as Alan points out, "a lot of comments
are actually commented out code." Good point, and I can clearly see
there is no one way that can make everyone happy.
In my case, a tremendous amount of useful documentation is in code
comments, and spelling errors make the code less professional. I am
constantly going to an external editor, or typing the comment into a
blank area of the document inside a quote so that TextMate thinks it
is a string, then removing the quote and hitting command+/. I'm
thinking about crating a shell script or bundle or something to do all
this.
Does anyone have any more "elegant" suggestions?
It would be great if there was a way, for example, to have a menu item
(perhaps even a bundle) that could just spell check the selection
regardless of the context.
Thank you for any suggestions.
Doc
Hi all,
I'm trying to add an invalid scope to a certain group of lines. Basically,
the regex pattern I would like to match is this:
^(\n){2,}
Which works fine in the Find dialog, but when trying to use it as a pattern,
it doesn't work. I am guessing because of the way that the pattern matching
works for grammars, but is there a way to match this?
The logic is, I would like to match every line that has no content on it,
but is part of a group of 2 or more extraneous lines.
One \n is valid, but 2 or more is invalid.
I've tried so many variations of trying to use captures, matching content,
but it seems to be treating each line as it's own match independent of the
previous or next ones.
Anyone know how I might go about applying this?
Any help is greatly appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/Matching-multiple-lines-in-a-grammar-pattern-tp189011…
Sent from the textmate users mailing list archive at Nabble.com.
Hi Textmate and LaTex-Users,
with my current workflow writing a masters thesis I frequently add
books via BibDesk to my bibliography.
Currently I have to run BibTex separatly to propagate changes in my
*.bib file to the latex main document. But I think this could also be
done by the latex_watch.pl script of the latex bundle. Is this possible?
Cheers,
Jan
On Aug 7, 2008, at 2:02 AM, textmate-request(a)lists.macromates.com wrote:
> On Aug 6, 2008, at 11:21 PM, Nick wrote:
>> It's kind of funny to me that my two favorite programs by far
>> (textmate and quicksilver) have a completely unknown development
>> schedule (although quicksilver's is now dead :[ ). oh well! Theyre
>> both kind of like os x - you can't complain very legitimately about
>> their faults because they're just so much better than the
>> alternatives.
>>
>
> Sure you can. Mac OS X users traditionally complain loudly about
> faults and grievances they find with OS X. You'll rarely find a more
> critical bunch than aggrieved Mac users. That a piece of software is
> good does not make it impervious to criticism.
>
> Someone else brought up MacVim, and it's an interesting point. For a
> long time, I used Textmate exclusively. But now, I only use Textmate
> around 50% of the time -- the other half taken up by MacVim, when I
> need split panes, remote editing, or an editor that will not choke on
> large text files.
+1 for MacVim; I use it exclusively now.
I must be one of the few that got TM1 specifically because TM2 was
advertised as a free upgrade. I figured I would learn what the editor
was all about and be familiar with the basics when the new version
came out, I assumed, soon after Leopard.
Well, that time came and went and there are enough niggling things in
TM, particularly with the python bundle (the language I edit the
most), that I went searching elsewhere. For me the single most
frustrating thing with the python bundle is that you need to add blank
lines with spaces to line up the end of a class / def in order for
code folding to work. That is not only annoying for me, but other
team members as well. A close #2 is also with folding, which breaks
if you start function parameters on a new line rather than on the same
line, e.g.
test = some_func(
param1, param2)
Perfectly legal, but you need to do this in order to have any hope
folding code:
test = some_func(\
param1, param2)
Legal, but annoying, especially working with a team where I don't have
control of the entire source's coding style.
-berto.
Hey,
I tried sending this a week ago to the mailing list through that
webinterface, Nabble, but as there was no responses, I recon it didn't come
through, so here I try again:
I just noticed a peculiar bug with the scrollbars when browsing the
database. Apparently, the resizing of the window often causes some of the
scrollbars to be either fully or partially hidden. I've tried searching the
posts through nabble.com and it didn't seem this issue was debated, but as
this is my first time here, I apologize if I was wrong...
I've recorded a little video which demonstrates the bug. Textmate is build
1464.
http://skythost.com/stuff/textmatescrollbarbug.mov
Regards,
Morten Skyt
Hi, I'm new.
I'm working on a custom Textpattern installation and my client has
entered a massive amount of text data in certain fields using
UPPERCASE. He wants the text displayed in Title Case instead, and he
doesn’t want to manually change it. I can easily use the style
declaration "text-transform: capitalize;" for these elements, but my
client would very much prefer formal title case in which words such
as “the,” “of,” “and,” and “for” are not capitalized. (I see that
Textmate’s "Convert to Titlecase" command in the "Text" menu does
this correctly.)
I have made a mysql dump of the database, but I'm not sure how to
isolate the appropriate data for a text transformation. Here is how
each individual record is formatted in the database:
(91,'2008-08-03 05:20:57','author-username','2008-08-03
05:26:33','','UPPERCASE DATA','','','','','','','UPPERCASE-DATA','',
0,'Comment',0,4,1,1,'section-name','','lowercase-data','lowercase-
data','','','','','','','','','','','UPPERCASE DATA','','lowercase-
data','3p344629nn178n874sp2s222s0q3n072','2008-08-03')
The mysql dump also contains uppercase terms such as "DROP TABLE IF
EXISTS" and lowercase terms like "datetime" and "varchar" that I
_don't_ want changed. Is there a simple way to target just the
UPPERCASE DATA fields enclosed in single quotes for a massive "Covert
to Titlecase"?
I welcome advise from regular expression fu-masters and Textmate adepts!
Thanks in advance!
John Stephens
> Please, lets not start this again.
> Be happy with what you have, and dream of TM2 at night,
> but for the love of god, stop complaining in the mean time.
I think it's fair enough to ask. TextMate 2 has been talked about for
what, 1.5 -2 years now? There's rarely an update as to the progress
either, which is what I think is the main reason people ask "so
where's TextMate 2.0 at?" It's a closed-source commercial product
(which, for the record, is okee dokee by me) so, in my opinion, there
is more responsibility in communicating with your customers. Nobody
can just hop in and adopt the open-source "don't like it, then fix it"
approach. Why are people so defensive about talking about it? Perhaps
I missed a TextMate 2.0 mega-flame battle prior to subscribing to this
list.
Clearly TextMate is great. Clearly TextMate is an impressive version
1.x generation product. However, if you really think that TextMate is
so complete then I question if you have used any other text editor or
IDE or if you are just a fanboy. Basic features like split panes
windows and a decent undo system are missing. Because those features
are so basic it means their absence is felt nearly every time I use
TextMate. I won't get into what features from what editors are missing/
would be nice but I list those two only to underscore the point that
TextMate, while great, still has, at the very least, some basic
functionality missing. Basic functionality that will, we assume, be
addressed with TextMate 2.0. There isn't a day the goes by that I
don't lament the lack of a split pane window. Please note that this
does not imply I don't think TextMate doesn't have many great things
about it that other editors are missing. TextMate rocks.
Therefore, after a long, silent wait since its announcement and the
fact that there are still some glaring holes with the current release
I think it's fair to ask, "so where's 2.0 at?" It's not a complaint,
it's just a question and a reasonable one at that.
I was checking on the synctex issue brought up yesterday and while looking at the MacTex wiki (for "TeX on a Mac") there is no mention of TextMate as a TeX editor or "frontend", which is rather surprising since I've used all of the editors and front ends mentioned and found TextMate's approach preferable.
I've not the time right now, but perhaps some enterprising soul from this list might wish to rectify the situation:
http://mactex-wiki.tug.org/wiki/index.php?title=Main_Page
Sincerely
--
David F. Snyder, Ph. D.
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
Human history becomes more and more a race between education and catastrophe.
H. G. Wells (1866 - 1946), Outline of History (1920)
Can anyone tell me how to fix this error: /tmp/temp_textmate.KNOfLq: line
6: : command not found
I tried a complete re-install of TextMate with no improvement. This is on a
15" MacBook Pro with current Leopard.
--
Tim
----------------------------------------------------------------------
Hi all,
When entering commit comments using the subversion bundle, you can submit the
dialog box by hitting the Enter key w/o having to grab the mouse and hit the
Commit button with the cursor.
I was wondering if I could change which key invokes the "Commit" command in
the dialog box. Since the Enter key is a multi-step dance on my keyboard, I
was hoping to be able to switch it from Enter to "Shift-Return", or something
similar.
Anyone know if that's possible?
Thanks,
-steve
ps. Sorry for the bad subject line, can't think of any handy one-liner to
summarize my question.
Hi all,
Can someone point me in the right direction? I would like to remove
all login details from the blogging bundle so I can start again. I've
removed the plist file, but when I try and set a blog up to post it
seems to be using an old password from somewhere that is incorrect.
I'll be jiggered if I can work out where the password is being stored
and I can't get either of the blogs I post to to fetch categories or
blog entries with the ones that are being used.
Thanks,
Nigel
Hi,
I don't know if it was discussed already but there's something that
bothers me very much, the way showAsHTML in tmCommand works.
Right now using "Ack in Project" with ⇧⌘A opens empty blank output
window (killing old window if it was there), then Ack displays dialog
asking for the search query, if I press cancel output is left blank. I
was thinking it was fault of Ack scripts themselves, but unfortunately
it is way the commands work in TM.
So my Q is, would it be feasible to:
(1) Show output window only once command writes something into the
output first time -> So in Ack when the window is popped up we don't
see output window yet, and when we Cancel we won't see the output as
well (it will mimic better expected interface)
(2) Ability to create multiple output windows for single tool,
currently Ack has its own single output window so:
* When I search something new, all my previous results are killed,
even when I press by mistake the shortcut, now the output window is
emptied
* I wish to search for few things at once and make all the results
stay
Seting "uid" to nothing (or removing the uid section from tmCommand)
somehow makes many output windows to show up (2), but something wrong
makes sometimes TM crash with such windows.
Regards,
--
Adam Strzelecki
http:wiki.macromates.com/FAQ/TextMate2:
Q: Will TM2 be a free upgrade?
Yes. Except for users who got TM1 as part of the MacHeist package. The
MacHeist TM1 license will require an upgrade fee in order to upgrade
to TM2. (source).
So, there will be no TextMate 2 for a long, long, long time. Not until
there is a serious competitor.
The talk has been on since before Mac OS X 10.5, but...
It's a pity, but it's very understandable. One has got to live of
something.
Regards,
/Peder
>From the comp.lang.ruby list:
On Aug 4, 2008, at 08:28 AM, matt neuburg (that's me) wrote:
> I am really just not having any luck with rdoc / ri these days.
> Because
> the new version of rdoc promised that File#read would finally succeed
> (automatic lookup of methods in the supercclass), I downloaded it. It
> didn't change anything so I rebuilt my documentation from scratch. Now
> fast-ri is broken. Can anyone divine from this error what's gone wrong
> and what I should do? Thx - m.
>
> $ qri String
> /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass
> (TypeError)
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in
> `deserialize'
[Reply from Eric Hodel]
Looks like qri is using RDoc 1.0.1, which is shipped with ruby. RDoc
2's on-disk YAML format is not backwards compatible with RDoc 1. RDoc
2 can read RDoc 1's format due to some use of regular expressions.
fast-ri would need to be updated to read the RDoc 2 classes.
====
So, if Eric is right, then fastri needs to be updated to understand the
current yaml format generated by current versions
of rdoc...
The problem for TextMate / RubyMate is that its Help uses qri, which is
fastri. In fact, that is how I discovered the problem. I installed the new
rdoc, regenerated my help files, and found that Help in RubyMate had stopped
working, with the above error.
Just letting y'all know... m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi,
regarding web development with TextMate and its web preview: I found the
http://wiki.macromates.com/GUI/WebPreviewEnhancements page, and wondered
if everything written there still applies, and if any workarounds exist,
especially for the following two issues:
> Don't close it when a different tab is selected in the TextMate main
> window
> Add an option to refresh the Web Preview window if "any" file in the
> project has changed. This would be useful for anyone editing CSS
> files and wishes to see the changes immediately.
The lack of these two features unfortunately makes the preview rather
useless when developing a new site from scratch while using a separate
CSS file.
I'll add to these that AFAICT, when editing a long HTML page, the web
preview goes back to the top each time it's refreshed, making it useless
again if you're working on an area at the bottom of the page.
Am I missing anything?
Thanks :).
--
Ciao,
Marco.
Hey,
I just noticed a peculiar bug with the scrollbars when browsing the
database. Apparently, the resizing of the window often causes some of the
scrollbars to be either fully or partially hidden. I've tried searching the
posts through nabble.com and it didn't seem this issue was debated, but as
this is my first time here, I apologize if I was wrong...
I've recorded a little video which demonstrates the bug. Textmate is build
1464.
http://skythost.com/stuff/textmatescrollbarbug.mov
Regards,
Morten Skyt
--
View this message in context: http://www.nabble.com/Bug%3A-Scrollbars-in-SQL-Database-Browser-tp18828407p…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
Does anyone know if there is a Hash bundle available?
I'm looking for something that can take the current file and return
an md5/sha1/base64 hash. Thanks.
Armon Dadgar
Can i order the files from drawer alphabeticaly, but fistly the folders,
then the files? It seems i get lost in the current alphabeticaly order.
--
Cristi
www.ralcr.com
Yesterday I installed the os x security update 2008-005.
Now the mate command takes a very long time to run.
For instance if I type "mate ." to open the current folder it can take
up to five minutes to complete the command. The length of time to open
the directory seems to be proportional to the number of files in the
directory.
If I use mate to open a single file it still takes 10-20 seconds.
Also, I don't know if this is related or if it will help diagnose this
problem but after the update I noticed another difference in the
terminal usage.
In my .profile I have
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
But after the update "ls -la" won't use color when printing results.
I wish I could give more information but I don't really know where to
begin. Has anyone had any similar experiences.
Hi
I use the iClip multiple clipboard thingmy.
If I copy some text to iClip from outside TextMate then switch to
TextMate the copied text in iClip duplicates.
I've never seen this with any other app.
Could be something odd about iClip of course :)
Patrick
Hello,
I'm using TextMate a lot for Latex - it a great editor and bundle for
that. I have one question:
How can I open a terminal, or go to a pre-existing terminal window,
from TextMate, and then run a given shell script in the terminal, in
particular a shell script that would typeset the master document?
One reason I want to do this is that the latex bundle seems to typeset
in nonstop mode. If there is an error, it highlights it but keeps on
running if possible. This is not always optimal, as one would
sometimes like to be able to press the 'h' key and see what help TeX
can offer in finding the error. One could do this easily from a
terminal, and it would be nice to call this with a keystroke from
TextMate. It is presumably possible to modify the LaTeX bundle to do
this from the console - and perhaps this is already doable but I don't
know? But in any case, I'd still like to be able to open a terminal
window as above.
Thanks
Geoff Vallis
Hi,
I'd like to make my own theme for viewing documentation, since the default
dark themes are too hard for me to read. I can easily make themes for code
coloring, but how do I make themes for doc syntax coloring?
Thanks,
Nick
Hi Textmate-List,
is it possible that the labels which are automatically created on
writing a new chapter, section, subsection and so on also recognize
German Umlauts ä,ö,ü as well as ß? Right now these characters do not
got replaced by ae, oe, ue and ss so that you have to do it yourself
if you want end up in an compile error with latex (pretty annoying
when using the "WatchLatex" script). It would be of much help if the
label creation function could handle this. Can anyone help? As far as
I can see the regexp has to be extended.
Best regards,
Jan
Hello,
Is it possible to arrange tabs with file names into multiple lines? I
often have dozens of files open and it really becomes annoying to
switch between them.
So, instead of (fixed width :)
+-------+-------+-------+-------+----
| file1 | file2 | file3 | file4 | >>>
+-------+-------+-------+-------+----
it would be nice to see:
+-------+-------+-------+-------+
| file1 | file2 | file3 | file4 |
+-------+-------+-------+-------+
| file5 | file6 | file7 |
+-------+-------+-------+
Here's a screenshot of what I have in mind with multiple lines (the
first screenshot that I have found; used in another context, but
nevertheless):
http://www.emeditor.com/images/emeditor7_virtual_space.png
Thanks a lot,
Mojca
I'm trying to open the rcov script file for a ruby code coverage tool.
Instead of opening for edit... Textmate appears to try and run the script.
I've tried removing the #!/usr/bin/ruby
at the beginning of the file to no avail.
has anyone seen behavior like this?
thanks
Jay
http://files.xhtmlthis.com/textmate.mov
I made a little movie to show you everything, obviously my permissions
are fine, because I can create folders!
Thanks,
Garrett
Hello,
I am using a slightly modified php bundle, and have lost the auto
completion on single quoted elements... parens, double quotes, etc still
auto complete, but not single quotes. I'm not very familiar with
working with bundles, or modifying them, but I'm wondering what I might
do to re-enable (or add in) the single quote auto complete feature in
the bundle?
Any advice is appreciated.
thanks,
Eben
Hi all,
Normally, when you execute the Comment Line command, it inserts a
single-line comment (e.g., // in C). That's true for Python, Ruby, C/C+
+, Objective-C, shell scripts, you name it... but not Java. For some
reason the Java bundle inserts multi-line comments (/* ... */). This
leads to problems when trying to uncomment lines. For example:
1. Select N lines
2. Hit Command+/ to comment the lines
3. Cancel the selection
4. Go back and select the same N lines
5. Hit Command+/ to uncomment the lines
This works in all the other modes, but in Java, it's impossible. The
problem is step 4. Instead of selecting just the same N lines, you
have to extend the selection to N+1 lines, but only far enough to
select the first two characters in the N+1 line (to capture the
trailing "*/"). And if you really want some fun, try uncommenting only
some of the lines. Again, works perfectly in every mode but Java.
So, basically, the Comment Line command seems only half-baked for the
Java bundle. I realize I could probably fix this myself by hacking
around in the Bundle Editor, but shouldn't the bundle be using single-
line comments by default? Even if there's some benefit of multi-line
comments that I'm missing, you'd think the Java bundle would still use
single-line comments for the sake of consistency. Why's the Java
bundle such an oddball?
Trevor
I know there are people who (for some reason) prefer mailing lists to actual
forums, but I'd like to cast my vote for a proper forum.
Nabble works surprisingly well, but it's still pretty painful compared to
any forum I've used.
--
View this message in context: http://www.nabble.com/Actual-Forum--tp18700957p18700957.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi there.
Is there a way to make TextMate right-trim lines (e.g., remove tailing
spaces in the end of lines)? I'm getting warnings from pep8.py (which
checks if your code follows the PEP8) and looks like TextMate leaves a
lot of spaces on empty lines inside and indented code.
Ideas?
--
Julio Biason <julio.biason(a)gmail.com>
Twitter: http://twitter.com/juliobiason
Eric Abrahamsen wrote:
>
> I was firmly in favor of mailing lists over forums until I started
> receiving all the messages in this thread.
>
> Now I'm on the fence.
Yes - you can get never-ending flame wars in either medium.
Could someone just accuse someone else of being a Nazi* so we can call
this a day?
Pete
* http://en.wikipedia.org/wiki/Godwin%27s_law
So I just heard about this awesome gitjour based collaborative tool:
Conspire[1],[2]
I was wondering if anyone knew if the plugin-api would allow this kind
of polling and updating of the currently open files.
-Brian
[1] <http://technomancy.us/113>
[2] <http://github.com/technomancy/conspire/tree/master>
I like to build and run my Xcode projects using the "Build & Run"
command from the Xcode bundle, both for convenience and because my
debug output and exceptions are formatted in such a way that it can be
clicked in the output window so TextMate jumps to that section in the
code.
With Xcode 3 that has become a little trying though: Every time the
underlying xcodebuild command is launched, it goes through a rather
lengthy "Checking Dependencies" phase.
Xcode itself seems to cache the results from that phase, it is only
slow the first time a project is built after opening it in Xcode.
Hoping that it might help others, I came up with with the command
attached below. It uses Xcode to build the project, and (upon success)
hides Xcode and launches the freshly built application in such a way
that the output goes to the normal "Build With Xcode" window.
If compilation fails, it leaves Xcode in the front. I set Xcode to use
the "Condensed" layout, positioned the "Build Results" window to be
the same size and location as TextMate's "Build With Xcode" window,
and set TextMate as external editor for all source files. So double-
clicking on an error message will still jump to that location in the
code in TextMate, just like the original Build With Xcode" window
would do with a single click.
Hope that helps someone, feedback welcome.
Gerd
On 2008-07-30, at 08:55 , textmate-request(a)lists.macromates.com wrote:
> Not everyone interested in TextMate wants to hack on it.
True, but all the discussions remind me that I can!
> Mailing list says "pre-web mentality".
One of the unfortunate tendencies amongst some technologists is to
push for the same kind of "next great thing" fashion mindset that we
rail against elsewhere. This comment suggests that those who aren't
interested in a forum are somehow luddites or old-fashioned. Some
technologies work better for some functions for some people better
than others. This particular group has cohered around this mailing
list. It's entirely possible that another group would cohere around a
forum. No one is stopping you from setting one up -- Google, Yahoo,
and scores of others offer such venues for free. Notice that the best
discussions about Apple technology are not in any Apple.com forum but
in places like Ars Technica or OS X Hints, etc.
It's possible that some here would join you in a forum. I certainly
like the fact that a well-designed forum offers me a good archive that
I don't have to maintain.
john
Hi,
please see the stack trace below that I get whenever I try to commit something
with the CVS bundle. I made a fresh install of both TextMate
(Version 1.5.7 (1464)) and the CVS bundle.
Because the error occurs in the builder.rb file is this in any way related
to a provious bug that prevented the Rails plugin to run focussed test?
Thanks,
Jürgen
Stacktrace:
Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99: undefined method
`keys' for []:Array
(NoMethodError) from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25 from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing'
from /Users/juergen/Library/Application Support/TextMate/Pristine
Copy/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19
I have about 45 files I'd like to combine into one, and short of
opening each one and copy & pasting it into the new one, I don't see a
clear way to do this in Textmate.
I'm certain there *is* a way, I'm just not seeing it. Suggestions?
Thanks!
--
All about me!
http://www.leroux.ca
Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode
project" to "run the makefile in the parent directory"? Any help would
be appreciated...
Greetings,
Nick
I realize there's some kind of workaround to make autocompletion work in a
vaguely pleasant way:
http://www.nabble.com/Autocompletion-to17643856.html#a17643856
But is there a more user-friendly option. (I happen to have XCode installed
on my machine, but I imagine there are members of the target audience for
TextMate who won't.) Are there plans to make autocompletion part of
TextMate's core functionality?
--
View this message in context: http://www.nabble.com/Autocompletion-tp18700987p18700987.html
Sent from the textmate users mailing list archive at Nabble.com.
Dear all,
I'm just writing a a tiny bundle
'Copy Formatted as'
RTF
(Xe)TeX
wordml
HTML
...
I was inspired by the bundle Copy as RTF by Max Muermann (kindly
hosted at github by Dr Nic Williams) [I found it with GetBundles ;)].
This bundle works fine for RTF but it lacks UTF-8 support. Thus I
went an other way to achieve that and it works perfectly also for TeX ;)
But back to my suggestion.
It often occurs to me that I'm to write a tiny paper, article or
whatever about a piece of source code I wrote. For that purpose I
often need doctohtml.rb with line numbering. Fine. But one thing I
cannot do with it. If I write something about a piece of code between
line 10 to 20 and I want to refer to line number in my text the
default doctohtml.rb produces line numbers between 1 to 10. Due to
that fact I thought it would be nice to have an option to produce
relative line numbers.
I modified doctohtml.rb a bit to achieve that.
Here's the diff (also attached to that mail):
--- untitled
+++ (clipboard)
@@ -189,10 +189,10 @@
return lines.join("\n")
end
-def number(str)
+def number(str, rel_numbering = false)
# number each line of input
lines = str.split(/\n/)
- n = 0
+ n = (rel_numbering) ? ENV['TM_INPUT_START_LINE'].to_i - 1 : 0
lines.each do | line |
n += 1
line.gsub!(/^(<\/span>)?/, "\\1<span class='linenum'>#{ sprintf("%
5d", n) }</span> ")
@@ -255,7 +255,7 @@
end
end
- code_html = number(code_html) if opt[:line_numbers]
+ code_html = number(code_html, rel_numbering = opt
[:relative_numbering]) if opt[:line_numbers]
html << "<pre class=\"textmate-source"
html << " #{theme_class}" unless theme_class.empty?
By doing so one can call document_to_html like that:
document_to_html( STDIN.read, {:relative_numbering =>
true, :line_numbers => true, :include_css => true }
If one leaves the new option out the line numbering starts at 1.
Hopefully this tiny improvement will be accepted soon ;)
Thanks,
--Hans
Hey everybody, don't ask why, but I have to do a small project in
Silverlight :) I have read a couple of comments on blogs from Textmate
users who are doing it, but the closest I've come to any kind of description
on how to do it was from John Lam
http://hex-dump.blogspot.com/2008/03/silverlight-2-sdk-mac-os-x-and-mono.ht…
He's using mono to run chiron.exe in the Silverlight 2 Dynamic Language SDK.
Is anyone doing it any differently?
Thanks
~sean
Hi,
I don't know how to install SVN_MERGE, can you help me ?
When I click on "Show available revisions for merging", I have this message :
"Couldn't find svnmerge
If you have installed svnmerge, then you need to either update your
PATH or set the TM_SVNMERGE shell variable"
I try with Svnmerge.py (http://www.orcaware.com/svn/wiki/Svnmerge.py),
and I added the path in shell variable, but it doesn't work.
Thanks,
Cedric
I'm sure this has been asked a number of times, but I can't seem to
locate any answers after searching extensively through the list
archives and online.
I'm trying to get the web preview window to a) display relatively
linked images and CSS files, and b) process all PHP includes referred
to in the file.
I've got the first one working by using Thomas Aylott's ruby script,
but I can't seem to get the PHP includes working at the same time.
Can anyone put me out of my misery and give me an idea of how to get
this working? I've got TM_PROJECT_SITEROOT and TM_PROJECT_SITEURL set
properly.
Thanks!
Neil
Hi all,
I know the tab overflow thing has been discussed quite a bit before, but I
had a question that I couldn't seem to find the answer for.
Is there any way to move tabs with a keyboard shortcut? I often have over 35
files open at a time as I work in a project on different tasks, but often
I'll have about 15-20 of those spilled over into the overflow.
The problem is, many times I'll have multiple tasks that overlap in file
access, and I would like to move one tab next to another so I don't have to
keep Command+Arrow-ing over multiple files (which often times I don't
remember which ones are hidden behind the overflow, or what order).
The only references I've heard to rearranging tabs is to use the mouse, but
I didn't know if there is some hidden way to do this, or some other type of
work around.
Any help is greatly appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/Moving-tabs-with-the-keyboard-tp18671843p18671843.html
Sent from the textmate users mailing list archive at Nabble.com.
I'd really love to be able to split the working area to allow side by
side viewing of 2 documents. I've looked and looked through the
documentation / posts / tutorials, and it seems like all that's
available is navigating between tabs?
Any ideas?
Thanks!
Michael Larkin | http://pixallent.com | mikelarkin(a)pixallent.com
> The completion command picks the current word (rather, gets the
> current word from textmate), looks that up and completes based on
> that. In this case, since - and/or : are not considered word
> characters, a label such as "here-is-a-label", if we are at "here-
> is", will be completed as if it as only showing the "is" part. So TM
> passes to the completion command the word "is", gets back the label
> "here-is-a-label", and inserts it in place of "is", resulting in
> "here-here-is-a-label". The quick fix from your side is to go to
> Textmate -> Preferences -> Text Editing, and add whatever characters
> you need in "Word Characters" box. You gain proper completion in this
> case, but you lose alt+left/right moving you through each part.
I see.
The whole point of using the colon was, of course, the ability to
navigate quickly via alt+left/right within the label/citation (e. g.
to fix something or so). It's a pity the fix is difficult,
autocompletion really rocks and has improved my workflow a lot. Now I
just stop short of the first colon, but the list is usually not short
(I'm into mathematical physics, so I have to label sections, theorems,
formulas, etc.), so it would be nice to have. But if it's just not
possible with the current methods, I guess we have to wait for the
programmer to add what we want and need ...
But in any case, thanks for the explanation. And I know now that this
is a pet peeve of others as well and not just myself :-)
> However, Ctrl+left/right should still do the right thing.
Huh? Ctrl+left/right switches spaces on my system.
Max
I'm having the same problem, I prefer using colons to logically
separate labels of any kind (including citations) so I can jump back
and forth easier (with alt + left/right), but I'd always get duplicate
parts.
A fix would be much appreciated :-)
Max
I am currently writing a many-file textbook using a master.tex file.
To label figures, tables, sections, etc. without a collision of
labels I have been using the convention:
chapter-name:section-name:my-label
So, for instance, I have a the following in the file which labels an
example which has to do with the tension in the string of a pendulum
in the section "Pick A Nice Point" in the chapter "Answer Strategies"
\label{answer-strategies:pick-a-nice-point:pendulum-tension}
Now, when I try to do completion
\ref{answer-stra[[press Alt-escape, select completion]]}
I wind up with a duplication of anything that comes before the last
typed dash:
\ref{answer-answer-strategies:pick-a-nice-point:pendulum-tension}
instead of the expected:
\ref{answer-strategies:pick-a-nice-point:pendulum-tension}
Another example below.
Does anyone know how to work around this? I've already typed about
one hundred labels and references, and I so far I have put up with
correcting the completion each time. It's getting old, though.
Thanks a lot,
Evan
--------------------------------------------------
Another example would be:
\ref{answer-strategies:pick-a-nic[[Alt-escape]]}
yields
\ref{answer-strategies:pick-a-answer-strategies:pick-a-nice-
point:pendulum-tension}
instead of
\ref{answer-strategies:pick-a-nice-point:pendulum-tension}
Hi,
I just wnated to commit some stuff MAcromates' review trunk by using
the Subversion Bundle, but I got this error message:
svn: Commit failed (details follow):
svn: Can't create directory '/home/duff/svn/Bundles/db/transactions/
10300-1.txn': No space left on device
Is there a solution to that problem?
Many thanks in advance,
--Hans
Hi,
I've searched the help and used Cmd-Ctrl-T with some words but could
not find this.
I want to see in the project drawer the current file being edited. Any
quick shortcut for this?
Thanks,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo(a)simplicidade.org
Use XMPP!
Hi,
I just uploaded the bundle "GetBundles" to the review trunk.
It is the first try to provide an easy and hopefully fast GUI to
install additional bundles hosted on the svn repositories Mactomates
Bundles, Macromates Review, and the git repository at github.com.
There is a tiny screencast:
http://www.bibiko.de/TM_GetBundles.mov (5MB)
It is implemented as an async DIALOG window showing a table of all
found bundles in the three repositories as 'Repository' (B := Bundles,
R := Review, G ;= GitHub), 'name', 'description'.
If one invokes that window firstly it looks for the all bundles at
these repositories. If it finds a bundle description in the cache file
for a given bundle it displays that description; if not it shows "not
yet downloaded". At the bottom you will see how many bundle
descriptions are missing. For the github it always downloads the
descriptions, meaning these descriptions aren't cached. If there are
some missing one can press the "update" button. The table and the
cache will be updated.
The GUI provides a search field. One can search for names and/or
bundle descriptions. The search can be restricted to a given
repository, and in addition there is also the chance to search by
using a regexp à la ".*rtf.*[cd]op.*".
One can select one or more bundles (from different repositories) and
press "Install Bundles" (one also can double-click). Furthermore one
can select the installation target Prinstine Copy, ~ Bundles, App
Bundle, etc. or 'user defined'. If 'user defined' was chosen one can
select a folder.
The script will install a bundle by using svn (bundle intern or
TM_SVN) or 'git clone' (git or TM_GIT). If git is not installed it
will download the bundle as zip file from github and installs that one.
There is the chance to show the installation log file.
Next there is an 'Advanced' button. It opens a drawer with up to now
one button "Update TextMate's Support Lib" which installs the latest
Support/lib items.
If a folder already exists the script will ask you what to do. You can
cancel or replace the old one. If one chooses 'replace' the script
will backup the old folder as OLDFOLDERNAME + a time stamp for safety
reasons.
After installing a Reload Bundles will be done.
The entire script works with DIALOG1 or, if installed, with DIALOG2
If someone wants to test it you can check out it from the review
repository and just download it via
http://email.eva.mpg.de/~bibiko/downloads/textmate/GetBundles.tmbundle.zip
Please, for the first time you should select a 'user defined' folder
as installation target.
Furthermore I would be pleased if a Ruby expert can go through the
code. I'm not the Ruby specialist ;)
I tried to get rid of all circumstances, esp. for errors. All relevant
commands are wrapped into timeout and rescue blocks.
But maybe I forgot something ;)
The only way to close that window is to press the Cancel button or
simply ESC. OPTION+W won't work. The script makes usage of some
threads, thus these threads should be aborted safely.
All errors, installation commands will be written into a log file
located in the bundle's lib path. This log file will be erased each
time if one invokes "GetBundles".
I tested it on Tiger 10.4.11 and Leopard 10.5.4 on a ppc Mac with
DIALOG1 and 2.
I didn't use the command line tool 'textmate' and 'thor'. By my
opinion it is 'only' command line tool.
Any comments?
Does the script run?
What is unclear?
What is ugly?
What was misspelled?
Are there any fatal errors or freezing stuff?
What else can be done?
If a fatal error occurred and the window freezes at the screen, you
can destroy that window by entering:
"$DIALOG" - l TOKEN or "$DIALOG" window close TOKEN for DIALOG2
The token can be found at the beginning of the log file.
Please also check if there are still running a Ruby, git, svn,
tm_dialog(2) process in the Activity Monitor.
Thanks,
--Hans
To reproduce:
- Have some folded blocks
- Tripple-click-drag downwards to extend selection by lines
- Blocks are unfolded, but the scroll bar is not updated
The only way to get to the text that fell through the bottom is to
manually fold/unfold something.
I'd take an alpha of avian over a bugfix though... Soon?
Gerd
Hi,
regarding to the issue tmbundles what's about tmCommands?
I could imagine that there are quite a few very useful tmCommands on
the market.
These tmCommands could be hosted at github like:
sort-table-tmCommand
show-duplicate-lines-tmCommand
Then I could add an additional tag tmCommand to GetBundles.
THese tmCommands will be installed into the user's tmbundle.
Maybe the same for tmSnippet, tmMacros, tmPreferences, tmTheme ?
--Hans
I am a heavy user of the completion key (escape) in LaTeX. At
present, when I press the escape key when I am inside a \ref{}
command, it offers me the first completion that it finds in the list
that it generates when I press the alt+escape key inside a \ref{}
command. That list is alphabetical (so far as I can see). It would be
more useful (for me) if instead it offered as its first choice the
contents of the most recent \label{} command, and then offered them
in reverse order. (That is, if it behaved like it does when it is not
within a \ref{} command.) Indeed, it would be more useful (I think) if
the alt+esc key produced its offerings in reverse chronological order
when pressed within \ref{}.
Is it possible to manipulate the order in which escape offers up its
completions?
Many thanks,
Kyle
I'm embarking on a Firefox extension, which means I'm about to meet XUL.
Is there a XUL bundle for TextMate? It doesn't appear in the Bundles
trunk, and my Google search does not encourage me, but it would be a
help.
— F
Hi Allan and friends,
I have a source tree structure like this:
www/
site/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
item/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
The fact that files are named the same, but in different directories:
- Confuses both the Cmd-Opt-Up "Go to Header/Source" feature, which
will gladly find www/item/one.adp when I'm editing www/site/one.tcl. It
would be good if it would prefer the file in the current directory when
one exists. Otherwise, it's a great feature.
- Similarly, when using Cmd-T "Go to file", which I use almost
exclusively to open up new files now, it would be great if I could
write "itemonetcl" to get item/one.tcl, as opposed to site/one.tcl.
Currently, it doesn't take the path into account at all.
I can see some downsides to changing current behavior, too,
particularly with the Go to file feature.
But let me know what you think.
/Lars
The current Documentation for Word / Selection and Documentation for
Selector in the Objective-C bundle doesn't find a many of the classes
and selectors for lots of things now in Leopard (CAAnimation, for
example) or in the iPhone SDK.
Having looked at the existing implementations of these commands I
decided it would be easier to replace them rather than hack what was
there already. My implementation of these commands uses an Apple
supplied tool (docsetutil) to search for the word, etc. in the docsets
so don't need any private index lists to find words quickly. This has
the big advantage that the index is always up to date and covers every
framework. The code is a lot simpler as well.
The only downside I can see is this may only work with Leopard - I
don't know and don't have any easy way of finding if it works with
Tiger. I didn't work through all the ramifications of the original
selector identification code so it is possible my version has some
holes - I have tried it with lots of examples and it seems to work,
but if any problem cases are discovered I will be pleased to fix them.
To install this version copy the enclosed ruby file to /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/ directory and edit
the two commands (or make two new commands) as follows:
Documentation for Word:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_word
with input, output and scope selector as per the original. Will show
a list of candidates if more than one and also prefix them with the
language if more than one is present (hint try selecting init outside
of a [ ].
Documentation for Selector:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_selector
with input set to "Entire Document", output "Show as Tool Tip" and
scope selector as per the original.
If there is interest in absorbing this work into the official
distribution that is fine by me and I hope I haven't committed any
sins in where the helper file is stored.
Dave.
Hello All
Been using TextMate for 2 weeks now and love it.
I am trying to create a macro to search a word under the cursor when I press
Ctrl+. These are the steps I follows: http://pastebin.com/m4418e1bd and this
is what I get in macro editor: http://i36.tinypic.com/344cwm1.png . It seems
to be working but when I press Ctrl+. next, it searches for the word that I
used to record the macro and not the current word under the cursor.
What am I missing or doing wrong?
--
Ritesh
http://www.riteshn.com
I had occasion once to increase the font size of the the text window with
command +. However, after returning the font size to normal with command
-, every time I open a new window it is in the increased font size. I
have tried restarting TM with the fonts at the desired size but the
problem persists. Is there anyway that I can stop this effect? Thanks
very much.
All the best, Mark
Hi everyone (this is a debut),
so far I've been using TeXShop for my LaTeX writing. I've written an
extension to it that allows me type all kinds of Unicode symbols
(such as greek letters, relation symbols and whatnot) in TeXShop which
get converted to LaTeX code (so "≤" becomes "\leq" etc) on saving (or
loading) based on a 1-1 mapping list. Thus, the text is readable on
screen while the code remains portable.
Now, I'd like to switch to Textmate because of its better project
management (and because I've paid for it...). I wonder whether I can
keep this functionality on which I heavily depend. Are there auto
replace on save/load solutions available? Sorry if this has been
discussed before (although I haven't found it) or it's obvious (though
I hae used TextMate for a while, I didn't do much customizing).
Best,
Jonas
New TextMate user coming from BBEdit. How do I enter single or double
curly quotes? In BBEdit it is option-' or shift+option-", but I can't
figure it out in TextMate. I typeset a lot of content while coding,
and knowing how would be a huge timesaver.
Thanks in advance!
d
I just wanted to confirm that the TextMate development team/community
is aware of the following issue with Rails 2+ tests run from within
TextMate. Apparently, the Rails core team believes TextMate should
adjust to accommodate:
http://groups.google.com/group/rubyonrails-textmate/browse_thread/thread/aa…
Michael
Hi,
sorry for this maybe naïve question.
How can I return more than one argument from a async window.
I have a 'OK' button which is bound to target 'selection.controller'
using 'returnArgument:' and then I have two arguments bound to a
popup list item and the selected entries of a table. Fine.
But I can only return either the popup item or the table selection.
But I need both.
If I bind the button to performButtonClick: I get the entire
parameters but the table is very large.
But I don't get the returnCode or returnButton (?)
Is there a way to return more than one argument?
Thanks in advance.
--Hans
I have been trying to improve the syntax highlighting for python but have
hit a road block getting the keyword "self" to highlight in functions
variable declarations. Is there a set of keywords that are always matched I
can put it in since it is a reserved word.
Also, is there a way to search a grammar file in the bundle editor, since
finding the entries I need has slowed down my progress.
- Matt
> Because the labels of listings in LaTeX are given as
>
> \lstset{what=ever, label=Woohoo, something=other}
>
> the label_scan method in LaTeXUtils.rb doesn't pick up the labels at
> all. The attached patch will hopefully fix this issue properly.
>
> --Thomas
i've noticed an interesting phenomena where i run convert tabs to
spaces on an entire buffer,
go to a line that had tabs, hit the delete button and it sometimes
takes me back a full tab stop
seemingly indicating the the conversion of tabs to spaces wasn't done.
would this be the case or is there some trickery involved that just
makes it look that way?
Hi there
I'm using Gentoo Prefix to get all the funky tools and therefore the PATH is
to be overridden with /Gentoo/bin and friends in order to precede the stuff
that comes with Mac OS X.
However, some TM plugins seem to have a problem with that - such as the
RSpec.tmbundle. It's nagging that some gems are missing which means that
it's not using the Ruby installed under /Gentoo but the one bundled with the
OS. I've tried to set PATH in TM's preferences but that doesn't change a
thing.
Anyone a solution for this at hand?
Thx... -sven
--
View this message in context: http://www.nabble.com/PATH%2C-oh-PATH-tp18367221p18367221.html
Sent from the textmate users mailing list archive at Nabble.com.
I don't know what I did, or how I did it, but somehow TextMate places
the cursor, by default, out in the void, where there are no tabs,
spaces, or characters.
For example: I'm on line 1, column 80. Line 2 has 5 characters. I
press down. I'm on line 2, column 80. I type the letter 'a'. 74
spaces are inserted up to column 80, then the character 'a' is inserted.
How do I switch this behavior back, so that pressing down brings me to
the end of the line, but not out in the void?
Thanks!
Tim
Hi,
sorry if this question will be asked again but I didn't find something
relevant in the mailing list.
Supposing I have a NIB with five buttons. One of them is a Cancel
button and all others are named 1 to 4.
I open that NIB asynchronously. Fine.
But now I want to write a script which listens at that NIB window to
get the button code which is pressed.
If the Cancel button is pressed I want to destroy that NIB window. Fine.
If one of the button 1 to 4 is pressed I want to execute a command
depending on what button is pressed but the NIB window should be kept
on the screen and waits for further input from the user.
Is this theoretically possible?
Thanks in advance,
--Hans
I'm new to TextMate, mainly used it for LaTeX editing so far and very
much like it. I know it's not a new issue (http://lists.macromates.com/textmate/2007-October/022871.html
etc), but I am seriously missing any way to wrap my text -- I am
collaborating via svn with coauthors who are working on different
platforms (and some of them with all-too-basic editors) and hence,
having paragraphs in long lines is out of the question. As suggested
before, hard-wrapped paragraphs are certainly not the perfect
solution, but they work reasonably well with line-based diff tools
(and there is no way I can get my coauthors to use others).
It is not necessarily a question of automatic hard-wrapping. I would
be fine to ``manually'' do that only before committing a file. For now
it's opening it in Emacs and hitting C-c C-q C-e. Does it seem
feasible to extend the Control-Shift-H "Tidy" functionality of the
LaTeX bundle to include hard-wrapping at a user-specified point, maybe
along these lines: http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/
? Would also be great if one was able to do that by paragraph (Emacs
Alt-q).
Another thing is that I am using the harvard citation styles and it
feels a bit strange to have \cite{.} highlighted differently than
\citeasnoun{.} etc. Can anybody help me out on whether the list of
citation commands is adjustable and if so, how?
Many thanks and best wishes,
Hans-Martin
On 5 jul 2008, at 23.22, Gaby Vanhegan wrote:
> I know, I know, I should really be using flashlog.txt but I despise
> the Flash Debug Player with a passion.
>
> I've been fighting with a bunch of different flash loggers and so
> far the only one that I've made work is Xtrace; it connects but then
> logs:
>
> <policy-file-request/>
>
> And promptly disconnects. The debug output is printed over the
> flash movie which is better than nothing but hardly usable. I
> simply can't get it to log anything more, nor can I get it to send
> back a lax policy that will permit the logging. Zeroi just plain
> doesn't work with Xtrace, or at least I can't make it work. Xtrace
> was fantastic while it worked (in older versions of TM) but since it
> was upgraded a while back (and I am now running Leopard) it refuses
> to work. Ah, the joy of Flash security issues.
>
> Other than flashlog.txt, what are my other possible options for
> logging trace() calls when building AS2.0 apps in TextMate? What do
> you use? How did you make it work?
>
This isnt excatly what you asked for in regards to trace(), but ive
found http://code.google.com/p/flash-thunderbolt/ to work wonders, it
exists for both as2 and as3 projects. For as2 projects it requires
firebug http://getfirebug.com/ but if youre not using firefox you can
also use http://getfirebug.com/lite.html
Hi,
does anyone know why I'm not able to do this on Mac OS 10.5.4 ppc with
git 1.5.6 in /usr/local/bin
git clone git://gitorious.org/git-tmbundle/mainline.git Git.tmbundle
Yesterday I did the same on my Tiger machine without problems.
But on my Leopard machine I always get:
Initialize Git.tmbundle/.git
Initialized empty Git repository in .../github/Git.tmbundle/.git/
gitorious.org[0: 67.207.146.32]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)
My firewall is set to allow all incomings.
Any ideas?
Thanks,
--Hans
Hi,
I am trying to get this basic command to work. Here's my script:
tell application "TextMate"
activate
make new document
end tell
I am getting an error message in German which loosely translates to:
"TextMate" has recieved an error: Error in the AppleEvent routine"
What could I be doing wrong?
Thanks.
André
I am new at TextMate and I program mostly in Fortran. Could anyone
please point me to a Fortran bundle and to instructions on how to
install it.
Thanks
Daniel G. De La Torre Ugarte
> ... my idea was to combine LaTeX and Rdaemon. I wrote a new Language
> for LaTeX called "LaTeX Rdaemon". ...
>
> Are there any comments about my approach? What kind of side-effects
> could be expected?
I'm wondering what the best way would be to deal with tabular output?
Would you want to break out of verbatim and put it in a tabular
environment or just leave it as is?
I suppose you'd also have to break out of verbatim to print the figure.
> Would this be useful at all?
Definitely - I'd be keen to experiment with it when you're ready!
Sean
For a while, there was this great feature in RubyMate. When you select a
term in your script and press control-H, RubyMate would consult ri (or fri
or whatever it is) and, if there were multiple alternatives found, would
list them all in a little tooltip or popup menu beneath the mouse. So if you
said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a
menu so you could click an alternative and do a lookup of that in the help.
Very nice.
The thing is, though, that this feature has completely vanished as if I'd
only dreamt it. Does anyone know how I can get it back?
RubyMate's ri interface was really pretty good, because so much of it was
clickable links. The Terminal ri interface is very inconvenient because none
of it is clickable links, but that's pretty much what I'm stuck with now.
It's so disappointing that I'm thinking of writing my own ri interface app
for Mac OS X (stop me if there is one already). m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I was getting errors (Ruby errors, I believe) when trying to use the
TODO List bundle, so, finding the "TODO Bundle Broken" thread in this
list and trying to follow the advice there, I deleted some bundles (and
some unused plugins I discovered in the process) from
"~/Library/Application Support/Textmate" and also updated all the
bundles in my "/Users/mjg/Library/Application Support/TextMate/Bundles/"
directory from subversion.
Now the TODO List bundle is working beautifully (for the first time!),
but when I try to use PyMate "Run Script" command to run a Python file I
get this error: "-e:2:in `require': No such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from -e:2". It's true that there is no such file--in fact,
the "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/"
directory does not exist. Why is this error happening and what should I
do about it?
For what it's worth: other PyMate commands (such as "Run Script
(Terminal)" still appear to work correctly.
I'm running the latest "Cutting-Edge" TextMate, Version 1.5.7 (1464).
Thanks,
Mike
Hi,
while developing the Rdaemon I had one single question in my mind. How
can you integrate Rdaemon in documents like LaTeX, HTML, Markdown etc.
Up to now I fiddled around with automatically copy&pasting R stuff,
thought about modifying Sweave etc.
But I believe I found hopefully a very easy solution.
One only has to use TextMate's wondrous facilities. ;P
Everybody knows, e.g. if one writes an HTML doc you have the HTML
scope with all commands behind it. Then one inserts a new CSS
declaration. If you are inside of such a CSS tag you have all CSS
features available. This is done in the Language setting for HTML.
This led me to an idea.
E.g. LaTeX:
If I'm writing an article or paper about my analyses of a topic, and I
did this by using R; then I usually explain how I did this with R.
Or if you give a R course and you want to document it, or if you write
a book about R, ...
One can use Sweave to typeset it. Fine.
BUT, my idea was to combine LaTeX and Rdaemon. I wrote a new Language
for LaTeX called "LaTeX Rdaemon". The only thing I did is to insert an
include statement
include = 'source.rd.console'
within the 'verbatim' environment.
OK. How does this work now?
You can start the Rdaemon and close that window. Then you open a LaTeX
file, set the language to "LaTeX Rdaemon".
Now you can write your LaTeX stuff, but if you declare a
\begin{verbatim} block AND within that block a line begins with "> "
then you are talking with the Rdaemon with all features coming from R
and Rdaemon. Press RETURN and the line will be executed and the result
will be written into the TeX document. (Remember the Rdaemon runs
further in the background)
I recorded a very tiny movie to illustrate that.
http://www.bibiko.de/TM_Rdaemon_Latex.mov
And this is only a test without fine-tuning! One can think about to
write some code to automate some things like:
- if a line starts with "> " within a tex document this line and the
output will wrapped automatically by a verbatim block after pressing
RETURN
- if one plots something and the Rdaemon recognizes that the command
is coming from a tex document which is saved in a certain folder then
the Rdaemon will plot this image using a Quartz device, dev.copy2eps(/
TEX_FOLDER/THE_NAME) [the Quartz is still open for further stuff!],
and return something like:
\begin{figure}
\begin{center}
\includegraphics{THE_NAME}
\end{center}
\caption{Scatter Plot with Regression Line}
\label{fig:FOO}
\end{figure}
[FOO could be calcualted, I guess]
etc...
By using this approach one could do this also with Markdown or HTML
etc. The only thing is to expand the Language syntax, and to fine-tune
the Rdaemon.
Are there any comments about my approach? What kind of side-effects
could be expected?
Would this be useful at all?
Kind regards,
--Hans
Hello all,
I am wondering if there is a way to automatically convert a VIM
colorscheme to a TextMate "Fonts & Colors" file.
The colorscheme in question is the ever-popular Zenburn
(http://slinky.imukuppi.org/zenburn/).
Thank you,
Brian
Hi, I tryied to install textmate on my new computer, but it does not
run, everytime I start it, it says my serial number is invalid,
probably due to credit card issues, but I didn't ever registered in
first place, I tryied to unregister the app thru menu => registration,
but it's not available, is there anyway I can "undo" this
registration? I really hope so, cause I'm looking forward to
registering TM,
thanks in advance
Igor Ranieri
hi, I'm just answering myself.. :P
I really have no ideia of how it happened, but the lock disapeared,
now I can register it with my own key.
Thanks anyway =D
Igor Ranieri
Hi,
I've just purchased a new computer which has
enabled me to switch over to using
Changes.app for my diff uses. Unfortunately,
the TextMate integration assumes Subversion
for version control whereas I use Mercurial.
I've made the suggested additions as mentioned
on the Changes Wiki and everything works great
from the command line, but the TextMate integration
is failing me. I'm not familiar enough with either
the Changes or the Mercurial bundle to make the
changes, so I'm appealing to the TextMate community
for help.
Is there some way I can either switch the Changes
bundle to use Mercurial or alternatively, switch the
Mercurial bundle to use chdiff and my merge script
instead of just diff?
Thanks,
Tim Lahey
Hi,
I cant no longer invoke the project drawer.
I have installed 'missing project drawer plugin' weeks ago, working
under Leopard 1.5.3.
During the last session working with textmate, I have closen the
project drawer and just quit the programm when I was finished.
Now I cant open the drawer again, no matter if I open a recent project
or a new one.
Please can you help?
thanks + cheers!
----------------------------
dennis
Hello,
I've been seeing a weird issue with non-ASCII characters appearing
messed up when QuickLooking a utf-8 file saved from TextMate. Here is
a screenshot:
http://vnoel.files.wordpress.com/2008/06/ql-bug.png
The same problem appears when opening the file with TextEdit --
non-ASCII characters are messed up. Unix tools (file, cat) show the
file correctly. After digging around I found a thread [1] on the vim
mailing list that says it is related to extended attributes that are
set by TextEdit and that need to be present for QL to correctly
recognize the utf8 encoding.
If you set the extended attribute manually on the utf8 file, non-ASCII
characters appear fine in QL. This looks like a bug in QL which, given
its lack of publicity, is rarely triggered and probably due to
something specific to my setup. I'm not sure what to do next, apart
from applying 'xattr' to every text file I save with TextMate :-) Does
anyone has advice ?
I'm sorry if this issue has already been discussed previously on this
list or elsewhere, but I couldn't find any other reference using
Google.
Thanks !
[1] http://www.nabble.com/MacVim-file-encoding-and-Quicklook-td17289501.html
Cheers,
Vincent Noel
in the attachment you will find a quick-and-dirty Relax NG bundle. it
doesn't do much, apart from syntax highlighting for .rnc files (the
cool "compact" version of Relas NG) and a few snippets for attributes,
elements and common datatypes (the ones I was using, actually :).
afaik nobody else worked on this stuff, so it might come in handy if
you end up working on huge rnc files (beats xml schema by a HUGE
margin). the little I've done is in the public domain, so use it as
you see fit.
cheers,
d.
Dear users of the textmate bundle for Latex,
I'm using the "Watch Document" command (is latex_watch.pl in version
2.8) in textmate to have my masters thesis always up-to-date when I
change something in the tex file and hit save.
Since a few days this doesn't work as before, cause I'm running in a
closed loop. When textmate starts watching my main document (the
thesis is splitted in several files) it successfully compiles the
document with pdflatex and displays me the result in my preferred
viewer Skim. But after having done this it recompiles the whole file
again and then reloads the file in Skim.
This is pretty annoying behaviour, cause I haven't changed anything in
the main file, also it takes loads of cpu, speeds the macbooks fans up
and is constantly refreshing Skim.
Wether there is a bug of "latex_watch.pl" or it observes a file which
is updated through the initial and every following compilation and
therefore runs in a closed loop.
I tried two versions of the latex.tmbundle so far. I think one was the
original one which came with textmate and the other one was the one
from the svn repository as of yesterday. Both show the same behaviour.
My question is now. How can I analyze the problem (closed loop). Is
there a way to put the latex.tmbundle in debug mode so I can see some
log messages? I tried this already by specifing the projects variable
"TM_LATEX_WATCH_DEBUH = dialog" but without any success. I didn't
found the debug output on my disk.
What are other ways? Whats are your advice?
Many Thanks,
Jan
Hi, I've been looking for a reponse, searching the net and mailling
list archives, but could't find an answer to this problem, whenever I
try to run tm_dialog, to i.e. open a window just created, i got the
error:
$ tm_dialog -p {} ~/Desktop/Test.nib/
tm_dialog: failed to establish connection with TextMate.
Hope I get a solution now :P
--
Thanks in advance,
Igor Ranieri
In the Help for TextMate, the following are given as examples of legal
selectors (with explanations of what they mean / match):
text.html.ruby, text.html source.ruby
string
string.quoted
source.php string
text.html source.php
source.ruby string
source.ruby string - string source
string, comment
So, operators here are space, comma-space, and space-minus-space. It appears
that space has highest priority, then space-minus-space, then comma. (Or so
I would presume.) So far, then, it all seems quite coherent; I grok
prefix-matching, descendancy, exclusion, and OR (the comma is apparently an
OR operator, even though the help rather confusingly seems to describe it as
an AND).
Then, in a blog entry
(http://blog.macromates.com/2005/introduction-to-scopes/), additional info
is given:
(a | b) & c - d
I find that last one incoherent; I don't get where the pieces are or how the
operators here fit, priority-wise, with the previously given operators. For
example, which of the selectors given in the first list would be a legal
substitute for "b" here? And conversely, for which expressions in the first
list of legal selectors, if any, could this expression be substituted?
So, my question is: Can I somewhere get a formal coherent definition of the
rules of selector syntax?
m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I've searched everywhere and it looks that it hasn't been raised before (?)
Is there any way to have mark occurrences feature in textmate ? via plugin..
script.. whatever.
It's very useful functionality and coming from eclipse I miss it heavily.
Thanks for any info,
Mariusz Nowak
--
View this message in context: http://www.nabble.com/mark-occurrences-feature-tp18181319p18181319.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello All,
The JavaScript language highlighter doesn't highlight regular
expressions inside of an array. Here is a code sample that shows some
simple test cases and only a few pass:
/test/
[/test/]
[1,2,/test/]
[1,2,/test/,'blah',/test/]
[ /test/, /test/ ,/test/ ]
new Array(1,2,3)
new Array(/test/, /test/, /test/)
"blah".match(/test/);
I haven't worked much with languages before, but I assume all that
would be needed would be including "string.regexp.js" inside of an
array class or maybe modify "punctuation.definition.string.begin.js".
I couldn't find any way to do that. I also tried adding a "," to the
list of characters that could come before the regexp itself but it
didn't seem to work, but I'm still new.
Can anyone recommend a solution?
Also, can anyone point me to where I can find the definition of
"punctuation.definition.*" and the like?
References I have look at:
http://blog.macromates.com/2005/introduction-to-scopes/http://manual.macromates.com/en/language_grammars.html#naming_conventions
Thanks in Advance,
Joseph Pecoraro
Hi,
In Python Bundle for "Debug Script in Terminal":
tell application "Terminal"
activate
do script with command "$TPY -m pdb $TM_FILEPATH"
end tell
doesn't work for TM_FILEPATHs which contain white spaces.
Better:
tell application "Terminal"
activate
do script with command "$TPY -m pdb '$TM_FILEPATH'"
end tell
Cheers,
--Hans
Hey Everyone.
We have superseded ScriptMate with a new API method in the TextMate
ruby module. It is called Executor.run. I've written a little
explanation of what Executor is for, and how to use it:
http://cs.pdx.edu/~ajross/executor.run.html.
Big thanks to Allan and Luke Daley without whom Executor would not
have been possible.
–Alex
Dear textmate users
I apologize if this problem was already described somewhere, but I
could not find a solution.
I'm using Textmate build 1436 and the LaTeX bundle to typeset
some .tex document.
Everything is working, but I always get the message
"There was a problem reading the preferences file, continuing with
defaults"
at the top of the "Typeset & View" window. When I go to the bundle
preferences I also get a floating yellow message saying
<p class="error">There was a problem reading the preferences file,
continuing with defaults </p>
The problem is that I can't change any bundle preferences, so for
example I can't make the log window stay open after typesetting.
I found someone with the same problem, but there it seemed to be
caused by build 1455, and when she reverted to 1436 it was gone.
Any suggestions? Should I install the latest build?
Thanks in advance,
Benjamin
Hello,
I've noticed that when Textmate saves a file it leaves a backup "._"
copy behind. Is there any way to prevent this from happening? There is
nothing in the Preferences that indicate any control over this.
Thanks,
Adam
Hi,
I just checked out the latest DIALOG2 code, compiled it on my good
old Mac OSX 10.4.11 ppc.
If I invoke an HTML tooltip the webview is correct but it will be
placed at position (0,0) bottom left. The frame size fits.
I tried to figure out why, but I didn't see it.
Is this reproducible?
Here a tiny test command:
Type
"$DIALOG" tooltip -f html <<< 'Hello <b>World</b>'
and press CTRL+R
--Hans