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