Anybody here interested in blogging to WordPress using TextMate and a
GUI (rather than the blogging bundle)?
I've got an alpha-quality TM plugin called BlogMate worked up... and
could use some testers.
The BlogMate plugin is kinda like MarsEdit -- only as a floating
palette for TextMate. (Window -> Show BlogMate Palette)
Much like MarsEdit, you can set up multiple blogs and create and edit
posts. Unlike MarsEdit, its feature set is quite limited at the
moment. But you can manage post categories and published/private
status already.
For now the plugin uses the MetaWeblog API to talk to your blog.
Theoretically, this should work with any metaweblog-capable blog, but
I've only tried it with Wordpress (cuz that's what I use). I have
absolutely no idea what other blog types use metaweblog... i didn't
even know what metaweblog was until thursday when i started this
nonsense.
Once it's solid enough for release, I'll do a public beta (hopefully
very soon... i'm very impatient). After that, the plugin will
continue to be free as in beer.
Anyhow... if you're interested, respond in one way or another.
thanks!
Todd Ditchendorf
Scandalous Software - Mac XML Tools
http://scan.dalo.us
The code is within an @implementation/@end.
^q works fine for a method signature, but it's still doing normal
paragraph fill inside the call itself.
if I put the caret inside the brackets, and check scope I get:
scope.objc
meta.implementation.objc
meta.scope.implementation.objc
The method call command seems to be bound to meta.bracketed.objc,
which I assume is part of the problem, but I'm not sure how to
resolve.
Oh, I'm running cutting edge 1368, although I'm starting to wonder if
my setup has gotten a little messed up -- I'm also having trouble with
the new opt-escape completion.
Thanks,
On 3/11/07, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
> Please reply to the mailing list!
>
> Anyway, if I press ⌃Q inside the brackets, e.g. with caret on
> 'addObserver' I get:
>
> - (void)startObservingPerson:(Person *)person
> {
> [person addObserver:self
> forKeyPath:@"personName"
> options:NSKeyValueObservingOptionOld
> context:NULL];
>
> [person addObserver:self
> forKeyPath:@"expectedRaise"
> options:NSKeyValueObservingOptionOld
> context:NULL];
> }
>
> If I press it on the method signature, it will do a normal paragraph
> reflow *unless* I add @implementation/@end, because without that, TM
> will not see it as an Objective-C method implementation.
>
>
>
> On 11. Mar 2007, at 14:20, Noel Rappin wrote:
>
> > Yep. Here's the before -- it's an example from Aaron Hillegass' book:
> >
> > - (void)startObservingPerson:(Person *)person
> > {
> > [person addObserver:self forKeyPath:@"personName"
> > options:NSKeyValueObservingOptionOld context:NULL];
> >
> > [person addObserver:self forKeyPath:@"expectedRaise"
> > options:NSKeyValueObservingOptionOld context:NULL];
> > }
> >
> > And after a ^q within the second method call:
> >
> > - (void)startObservingPerson:(Person *)person { [person
> > addObserver:self
> > forKeyPath:@"personName" options:NSKeyValueObservingOptionOld
> > context:NULL];
> > -
> > - [person addObserver:self forKeyPath:@"expectedRaise"
> > options:NSKeyValueObservingOptionOld context:NULL]; }
> >
> > For what it's worth, I occasionally see the same odd behavior of
> > repeating the first character of the first line from ^q on paragraphs
> > in Markdown.
> >
> > Thanks,
> > Noel
> >
> > On 3/11/07, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
> >> On 11. Mar 2007, at 04:53, Noel Rappin wrote:
> >>
> >> > This is quite possibly a very stupid question.
> >> >
> >> > I can see how to use ^q to format a method signature in the
> >> objective
> >> > C bundle, but if I try and do the same thing on a method _call_,
> >> I get
> >> > an ugly mess. I think I'm not pressing ^q in the right scope to
> >> > trigger the method call snippet, but I can't figure out what I'm
> >> doing
> >> > wrong. Help?
> >>
> >> Can you paste a before/after code example?
> >>
> >>
> >
> >
> > --
> > Noel Rappin
> > noelrappin(a)alumni.brandeis.edu
> >
>
>
--
Noel Rappin
noelrappin(a)alumni.brandeis.edu
I made a HTML snippet that takes a list such as:
Home
Info
Contact
and turns it into:
<ol id="navbar">
<li class="home"><a href="home.php" title="Go to the Home
page">Home</a></li>
<li class="info"><a href="info.php" title="Go to the Info
page">Info</a></li>
<li class="contact"><a href="contact.php" title="Go to the
Contact page">Contact</a></li>
</ol>
That's what I got so far:
<ol id="navbar">
${TM_SELECTED_TEXT/.+/ <li class="\L$0"><a href="$0\E.php"
title="Go to the $0 page">$0<\/a><\/li>/g}
</ol>
My problem is if one of the menu item is more than one word, I'd like
to replace the space in the name with an underscore in the URI.
Anyone's got the code for that?
Thanks!
Hi all,
As I mentioned in an earlier post, one of the ways I am using
TextMate is to manage FileMaker Pro development projects. TextMate
will open the external files, but does not seem to be aware of
changes made externally to those files when issuing a Commit or
Status via the Subversion Bundle. svnX and RapidSVN both notice the
changes and commit the modified files. Is there something I need to
do to enable this functionality in TextMate? I am using SVN version
1.4.3.
Thanks,
Don Levan
This is quite possibly a very stupid question.
I can see how to use ^q to format a method signature in the objective
C bundle, but if I try and do the same thing on a method _call_, I get
an ugly mess. I think I'm not pressing ^q in the right scope to
trigger the method call snippet, but I can't figure out what I'm doing
wrong. Help?
Noel
--
Noel Rappin
noelrappin(a)alumni.brandeis.edu
Hello all,
I'm not sure if this is possible in TextMate, so I thought I'd ask.
In any given project, I'm working with lots of different languages:
HTML, PHP, CSS, JavaScript, Java, etc. I find that when I have all of
these files open at the same time (in a project window), I'll set the
language for the file I'm currently working on in the bottom language
bar, and then when I switch to a different file TextMate just stays
in that language I was working in, even though the new file is
actually a different language! This happens even if I go through each
file and set its language manually before switching between them. Is
there something I'm missing? If not, I would absolutely love to see
this in 2.0!
Thanks in advance,
Michael
____________________________________
Michael Jackson
CFAC Web Development
Brigham Young University
Web: http://www.ajaxon.com/michael
Email: mjijackson(a)gmail.com
Hi
I noticed quite a weird behaviour of the blogging bundle recently. I
have increased the number of posts to be fetched from 10 to 500
(blogging.rb, line 547), because I'd like to add some tags to old
posts using the nice tagging bundle. It downloads all the posts from
the past (around 280 right now) and displays the title in the
dropdown. Now when I chose one, a new document opens up with a post -
but not with the one I'd like to have :-/ If I try to open post #3
for example (my first post), it opens #4. Somewhere in the most
recent posts, it works, but not with the oldest ones. I'm not a ruby
guy, so I don't have a clue how to fix this.
I suppose that it has to do with my Wordpress thing, but I'm not sure.
Any ideas?
Thanks a lot
André
Hello folks,
Running Textmate Version 1.5.5 (1368), Auto-Completion does not work
in Rails projects (option-escape), it works great in Ruby scripts, but
not Rails. May someone please help me find the problem?
Best regards,
- Dunnil
I'd like to have non-breaking space* rendered in a visible way, but having
tabs and line breaks remain invisible.
I've somewhat achieved that by adding new rule to the language bundle and
setting background color for that scope, but it gives big block and I'd
like to have a dot instead. Is there any rule in language bundles that can
visually replace one character with another, or can I change list of shown
invisibles?
* known as , but I'm talking about the actual character, not entity.
--
regards, porneL
About the linking commands: I modified the template slightly, taking
the original input and using it where the title was before, and
moving the title into an attribute. Other than that, I think the
plan looks great.
This bundle includes the reworked pref files and a yahoo experiment.
The experiment loads up a pop up list of 10 results from a category
(web, video, news) and links to the item you select. It just gives
you a little more flexibility than lucky linking. However, Google's
policies do not allow for this kind of thing with their search
engine, so I had to work with Yahoo to try it out. It uses Yahoo's
API and does no scraping.
Is it doable? (I bet it is, but I can't figure it out).
I want to create a HTML snippets that transforms a tab delimited
table into an HTML table, fo instance, I'd select this:
item_01 item_02 item_03
item_11 item_12 item_13
item_21 item_22 item_23
hit a key combo, and get:
<table>
<tr><th>item_01</th><th>item_02</th><th>item_03</th></tr>
<tr><td>item_11</td><td>item_12</td><td>item_13</td></tr>
<tr><td>item_21</td><td>item_22</td><td>item_23</td></tr>
</table>
I guess my biggest problem is to figure out how to get it to work
with any number of row and column...
Any help much appreciated... Thanks!
Any hidden/undocumented ways to modify
the following?
1) the gutter / line-number / fold symbol colors+sizes
2) the pixel offset between the gutter and
the first character in the editing area
3) cursor size/shape
TIA,
-Shin
At some point I assume that I must have installed the bundle auto-updater
from the GetBundle bundle, but I don't remember where it installs, and I
don't see any record of it in my System Preferences account Login Items
pane. This weirds me out a little; any chance someone could share where this
app/script/whatever gets installed? I don't necessarily want to remove it, I
would just like to know more about it.
Thanks
- David Chartier
Hello,
I am not sure whether this is a TEX problem or a Textmate issue, but
I decided to try it on this list first, because the problem appeared
only after an update of Textmate. I am using a Powerbook G4 and
Version 1.5.5 (1368) of Textmate. After the latest update, compiling
of some latex documents has becoming extremely slow. A one sided
document (KOMAscript letter with self made letterhead) which takes
less than 2s in TeXShop requires more than 1 minute in Textmate!
Interestingly the log file complains about metafont related issues
which I am not at all comfortable with and which I haven't seen in
earlier versions of Textmate (see compile log below). TexShop
compiles the same document with some overfull box warnings but does
not complain otherwise. Interestingly, other documents not containing
the letterhead compile quite well..
Anybody seeing similar issues? Any advice where I should further look
for?
According to the revision notes there was no change in the latex
bundle, or was there?
Best regards
Christof
Document Class: scrlttr2 2006/07/30 v2.95b KOMA-Script document class
(letter
Including: LogoCNRS.pdf
Including: LogoLPMAA.pdf
Including: LogoUPMC.pdf
Including: LogoUPMC.pdf
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
./MPSATransports_001.tex:19: Font OML/hlcm/m/it/8=hlcrima at
7.76001pt not loaable: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OML/hlcm/m/it/6=hlcrima at
6.12003pt not loaable: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OML/hlcm/m/it/5=hlcrima at
5.19997pt not loaable: Metric (TFM) file not found.
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
./MPSATransports_001.tex:19: Font OMS/hlcy/m/n/8=hlcry at 7.76001pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMS/hlcy/m/n/6=hlcry at 6.12003pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMS/hlcy/m/n/5=hlcry at 5.19997pt
not loadabe: Metric (TFM) file not found.
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
This is METAFONT, Version 2.71828 (Web2C 7.5.6
mfput.log
./MPSATransports_001.tex:19: Font OMX/hlcv/m/n/8=hlcrv at 7.76001pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMX/hlcv/m/n/6=hlcrv at 6.12003pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMX/hlcv/m/n/5=hlcrv at 5.19997pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font LMR/hlcm/m/n/8=hlcra at 7.76001pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font LMR/hlcm/m/n/6=hlcra at 6.12003pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font LMR/hlcm/m/n/5=hlcra at 5.19997pt
not loadabe: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Math formula deleted: Insufficient
symbol fonts\endtabular ->\crcr \egroup \egroup $
./MPSATransports_001.tex:19: Font OML/hlcm/m/it/12=hlcrima at
11.15991pt not ladable: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMS/hlcy/m/n/12=hlcry at 11.15991pt
not loadble: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font OMX/hlcv/m/n/12=hlcrv at 11.15991pt
not loadble: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Font LMR/hlcm/m/n/12=hlcra at 11.15991pt
not loadble: Metric (TFM) file not found.
./MPSATransports_001.tex:19: Math formula deleted: Insufficient
symbol fonts\scr@subject@var ->Devis N$^{o}$
./MPSATransports_001.tex:21: Math formula deleted: Insufficient
symbol fonts\@iiiparbox ...bm@#3\endcsname }\if@pboxsw \m@th $
Output written on MPSATransports_001.pdf (1 page, 144473 bytes)
MPSATransports_001.log
Found 19 errors, and 0 warnings in 0 runs
There are some really minor VIM features that I miss. Does TextMate
have a way to:
* Visually show that a file is Read Only (which lets me know I need
to do a p4 edit on the file)
* Show in the status bar at the bottom of the main window how far
into the file the cursor is as a percentage of the file size
Thanks,
Ernest
Is there any variable or method by which I can (in a macro or
snippet) know how many lines are visible in the window?
Thank you,
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On 2007-03-08 16:M, Steven.Klass(a)smsc.com threw down some bits like this:
> Hey Hey Hey!!
>
> Another perforce user!! I TOTALLY Agree with your first comment.
> This should be an option in preferences - by default even read only files
> are writeable and this is not always (in the case of SCM's) desirable!!
Yup, this is the only place I find that this bites me.
> On a side note - you want to improve the perforce bundle?
I haven't been using the p4 bundle nearly enough, but we've got
perforce where I work and I do use it some through TM. Things are
complicated by the fact the Mac is my "secondary" machine and linux is
where I'm supposed to do all my work.
I might be able to give a shot at helping on the bundle.
Dan
Kind TextMate folk,
A BBEdit feature I find myself missing is the Markup -> Utilities ->
Format menu option. this opens a window with several different
options for markup formatting. Is there something like this in TextMate?
thanks! tm rulz. ;0)
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Hi,
Being new to both TextMate and Latex, I find myself in the middle of
a fairly steep learning curve, in addition to starting as a graduate
student.
This is my setup: http://home.online.no/~refsvik/TextMate_Latex.jpg
...and as I am using Mac OS X, I have found that BibDesk is a
splendid way of collecting and maintaining bibliography and
publications.
Compiling my main.tex works out fairly ok (with a few warnings),
tying together most of my files, but what lacks is the Bibliography/
References entry. There is simply no Bibliography entry at all in the
final .pdf file, and the compiler is telling me this:
Typesetting: ./4_methodology.tex
LaTeX Warning: Citation `Jones:1992' on page 4 undefined on input
line 5.
Trying to understand this, I have had a look at this:
http://article.gmane.org/gmane.editors.textmate.general/8789/
match=bibtex
...but still struggle to understand the following:
1. Do the "Bibtex full run" need to be set up for every single latex
project in any way?
2. What does happen to my .bib (bibtex) file in this process? How is
a bibtex file compiled (if that is the correct term) and is it
converted to latex in some way?
I would be very grateful if someone could post a small recipe on the
total amount of things to set/do in order to get this to work:
1. The appropriate actions in the bundle editor
2. Setting environment variables accoring to what is needed in the
"Run Bibtex copy" command
Best regards,
Kjell Are Refsvik
Norway
I'm trying to set up the psgreek package. While I have moved all the
files in the package to the correct directories, I'm not sure how to
tell TeX to use the new fonts. The package documentation suggests
three ways to do this: (1) editing the file .../textmf/web2c/
updmap.cfg (adding the line "Map psgreek.map"); (2) editing .../texmf/
pdftex/pdftex.cfg by adding "map +psgreek.map"'; (3) editing .../
texmf/vtex/config/pdf.fm and adding "cm-super.ali" to the TYPE1 section.
I don't see any of these files on my system. I'm wondering if I
should be looking somewhere else for these files or I should create
them from scratch. I'd also appreciate any advice on which of these
three methods to use (if it makes a difference).
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
Okay, just a moment ago, before downloading the most recent update, I
opened a new project and had an interface that looked a lot like the
new version of Mail -- i.e., no drawer but a left pane. When I
clicked on "Install and Relaunch" and created a new project after
relaunch, I got back the drawer. (And I should note that I have never
been a fan of the drawer, so the the momentary new project interface
was good news to my eyes.) It's late in the night.
I was wondering if there is some way to preserve the lines I've
ticked with bookmark stars after the file is updated by subversion.
Right now, I find that a half-dozen or so lines I've marked are all
blown away after an svn up brings new code in from commits by my
coworkers (actually, there's also one new bookmark created, on the
last line). I can see that this is fairly tricky, since the bookmarks
would have to be bound to the content of the line, and not just to
the line number (though even having them stay put while code slid up
or down would be better than having them all vanish - maybe they
could go orange or something to suggest they weren't marking the same
code any more?). -T.
when I'm working with a project drawer and the file names are long, they get
compressed to something like Exam...er.js. It would be really helpful if
there was a way to quickly see the full filename. My suggestion is a
tooltip. I have instances where i have several files with the same few
beginning and end characters and I end up opening many of them to find the
correct one.
-dave
I absolutely love this CSS(plus) bundle. Only thing is that one of
it's defaults (the new deceleration) sort of disables the tab triggers
of the original CSS bundle that gives you snippets for things like
margin or border or background etc. It at least makes them hard to get
back to. I'll show you a very simple mod to make the tab triggers for
the original CSS bundle more usable from within this bundle's
structure.
The CSS(plus) bundle formats the new deceleration like this:
;
${1:property}: ${2:value};$0
Which is all well and good if you know all of the options for the
particular CSS property you are going to be working with (margin or
whatever) but what if you wanted to be able to type 'margin' and then
-> tab to see the snippets from the CSS bundle for margin? You'd have
to do some fancy multiple tabbing and back arrowing to get the cursor
out of snippet mode and back to normal so you could hit tab after you
typed margin on the first property spot. Then when that snippet fills
in you have to forward delete the remainder of what CSS(Plus) put in
for the value. It would end up looking like this
#ID {
margin: 20px;: value;
}
Fortunately with 1 small addition you can make the New Deceleration
snippet highlight the whole line when it's executed allowing you to
type say 'background' (replacing the highlighted selection) and then
hit tab -> showing you a list of values for the background property.
Then when you finish editing that hitting tab will display the next
line as originally intended but highlight it again so you may replace
it's selection and do the same.
To drill into each manually simply (like the original) requires only 1
more tab. It just depends on how well you know all your CSS properties
and values whether or not this would be more work or helpful.
The mod is here between the lines...
---------------------------------
;
${1:${2:property}: ${3:value};$0}
----------------------------------
Make sure you don't have a return after that last }. The cursor should
be blinking right after the } or you will get extra line feeds every
time this snippet executes which would make it not be a time saver
really at all...
Happy TextMating ;-)
> From: Alexander Deruwe <aderuwe(a)aqs-carcontrol.be>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Wed, 7 Mar 2007 16:42:39 +0100
> Subject: Re: [TxMt] Repost - With Subject - TODO Bundle Problem
> On 07 Mar 2007, at 16:34, Don Levan wrote:
> > /tmp/temp_textmate.3HxVWN:21:in `require': No such file
> to load -- /
> > Library/Application Support/TextMate/Support/lib/plist
> (LoadError)
> > from /tmp/temp_textmate.3HxVWN:21
>
> I get the same error - same versions of TextMate and OSX.
>
>
> Alexander Deruwe
I fixed this by changing the line in the TODO command "Show TODO List":
require "#{ENV['TM_SUPPORT_PATH']}/lib/plist"
to
require "#{ENV['TM_SUPPORT_PATH']}/lib/osx/plist"
Seems the plist was moved in the update.
hth
Barbara
Hi, I'm on TM 1.5.5 (1368) and just recently, my fonts have become
all ugly. Here is an example of 10-pt non-AA Monaco: http://
img214.imageshack.us/img214/1407/picture1lm1.png . All other fonts
have the same issue, both with AA on and off. The fonts are just fine
in Terminal, with the exact same settings.
So far, I've tried:
• Deleting the com.macromates.textmate.plist preferences file.
• Checking for font corruption in Font Book
• Deleting Library/Caches and /Library/Caches in hopes of getting the
font caches (are they actually there?).
Any ideas?
Thanks,
Andy K.
Apologies for the ms with no subject - here is the ms again:
Whenever I try to execute the command Add Persistent Include from the
HTML bundle (using either the menu item or the Control-Commend-I
keystroke), I get the following text embedded in the file:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
HTML.tmbundle/Support/tminclude.rb:313:in `include_command':
undefined method `request_file' for TextMate::Dialog:Class
(NoMethodError)
from /tmp/temp_textmate.wx7fNU:3
I'm running TextMate 1.5.5 (1368) on Mac OS X 10.4.8 and ruby appears
to be installed as /usr/bin/ruby
Any idea what I'm doing wrong here ?
The lines around line 313 in the file tminclude.rb mentioned above are:
require "#{ENV['TM_SUPPORT_PATH']}/lib/dialog.rb"
cstart = (@escape_open).rstrip + ' '
cend = (' ' + @escape_close).rstrip
begin
Dialog.request_file do | file |
print <<-"EOT"
#{cstart}#tminclude "#{file}"#{cend}
#{cstart}end tminclude#{cend}
EOT
end
and the file dialog.rb does appear to exist in a lib subdirectory
with a request_file method but I don't have enough Ruby or textmate
knowledge to see where things have gone wrong or my use of Textmate
hasn't worked.
Phil Molyneux
This email has been scanned for all viruses by the MessageLabs Email
Security System.
Whenever I try to execute the command Add Persistent Include from the
HTML bundle (using either the menu item or the Control-Commend-I
keystroke), I get the following text embedded in the file:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
HTML.tmbundle/Support/tminclude.rb:313:in `include_command':
undefined method `request_file' for TextMate::Dialog:Class
(NoMethodError)
from /tmp/temp_textmate.wx7fNU:3
I'm running TextMate 1.5.5 (1368) on Mac OS X 10.4.8 and ruby appears
to be installed as /usr/bin/ruby
Any idea what I'm doing wrong here ?
The lines around line 313 in the file tminclude.rb mentioned above are:
require "#{ENV['TM_SUPPORT_PATH']}/lib/dialog.rb"
cstart = (@escape_open).rstrip + ' '
cend = (' ' + @escape_close).rstrip
begin
Dialog.request_file do | file |
print <<-"EOT"
#{cstart}#tminclude "#{file}"#{cend}
#{cstart}end tminclude#{cend}
EOT
end
and the file dialog.rb does appear to exist in a lib subdirectory
with a request_file method but I don't have enough Ruby or textmate
knowledge to see where things have gone wrong or my use of Textmate
hasn't worked.
Phil Molyneux
This email has been scanned for all viruses by the MessageLabs Email
Security System.
I'm a Textmate n00b, so maybe there is just something I have
misconfigured, but just in case it is a bug...
I noticed today that I wasn't seeing quotes correctly in comments at
my default settings. My default font is Monaco 12 pt. Anti-aliasing
is off. Inside of comments which are italicized, I noticed that I
don't see single quotes at all (just a space) and double quotes as
single quotes. This problem doesn't happen in the non-italicized code
text and goes away in italicized text if I boost the text size to 14
pt. It also goes away if I turn off the italics styling on comments.
So is there something I need to tweak to get quotes looking right in
the italicized text?
I checked TextEdit for comparison with antialiasing turned off in the
System Preferences for 12 pt and lower, and the quotes in Monaco are
normal there.
Hi!
Because of the troll-thread and one of the mails in it, I just came
along an issue I more or less ignored most of the time.
Is it somehow possible to create right out of TextMate a project out
of a single file?
E.g. you open TM and create a new file with cmd+n or open a single
file. You end up with a file which isn't in a project. Can I now
directly create a project which includes that file?
I'm aware that I can save the file, create a new project and then
move the file into the project (e.g. by dragging the file's icon from
the title of the window with the file into the project-drawer of the
new project) but it would be better if I could directly create a new
project out of a new file, including that file.
Niels
Hi TextMate Vim switchers (also BBEdit, Emacs, XCode, Eclipse, etc.
switchers).
I find that Vim users find the transition to a new editor much more
difficult than switchers from other editors. This speaks highly of
Vim's power, flexibility, and efficiency: there are aspects of its use
that are very hard for users to give up, and parts of Vim that work much
more efficiently than the equivalent TM features.
So, I ask that you come together to fill out this wiki page:
http://macromates.com/wiki/MigratingFrom/Vim
So that when the (not infrequent) question comes up from a Vim user
about why to use TextMate instead, there will be some resource to point
her at. I think it would be great to put tips, tricks, maybe some
thoughts about what TextMate could do better to meet the needs of those
used to powerful Vim features that can't quite be emulated. The goal
should be to (preferably in this order):
1. Convince Vim users that TextMate is worth trying.
2. Help Vim users through aspects of the editor that are likely to trip
them up.
3. Figure out how Vim features can inform new TextMate commands, etc.
Note, former users of other apps can make other subpages from this top
level page:
http://macromates.com/wiki/MigratingFrom/HomePage
It might be nice to put together a page for general Windows switchers as
well, with tips like how to get home/end key bindings working (that blog
post of Allan's), etc.
----
The wiki could probably use some general info for new users. Many
tutorials and tips have been posted around on various blogs, but it
would be nice to consolidate and clarify some of this information, and
put it somewhere where it can be kept up to date.
Note: the wiki can use markdown syntax by wrapping a page in
(:markdown:) and (:markdownend:)
-Jacob
I installed ruby 1.8.5 and appscript on my mac
(and it is hugely better that the schizolanguage
of AppleScript).
Now if I define a command in TextMate like
#!/usr/bin/env ruby
require "appscript"
include Appscript
te = app('TextEdit')
TextMate complains it (he) cannot find
appscript.rb (no use to give the explicit
path since then TextMate cannot find the
files require'd inside appscript, etc etc).
Clearly, I must set new paths,
but how? and maybe I should also tell
TextMate to use 1.8.5 instead of 1.8.2
I'm sure this is easy but have no idea
how to do it. Any help?
Thanks a lot,
Piero
I'm sure that a few of the developers of TextMate were not even born
when I first started using Emacs... Now, I know very well that ol'
Emacs ain't perfect, but by now my fingers and brain are so wedded to
Emacs that, despite a few attempts, I have never been able to switch
to a different text editor.
But several people whose opinions I value have urged me to give
TextMate a try, so here we go.
I imagine/hope, given that so many people in TextMate's target
audience use either Emacs or vi, that there will be extensive
resources to ease the transition *from these specific editors* to
TextMate. Am I right? If so, where are these resources?
More specifically, I'm hoping to find something like a "TextMate for
Emacs veterans FAQ", with answers to questions like:
1. will I be able to use TM entirely from the keyboard?
2. will I be able to set up the same key bindings as in Emacs? how easily?
3. can I work on a single window, switching between buffers from the
keyboard, or will I have a zillion windows floating around my desktop?
4. will I be able to preserve my workspace (including open buffers,
modes, and other settings) from one session to the next, à la Emacs
Desktop?
5. can I run a shell withiin TextMate?
6. does TextMate integrate with debuggers like gdb?
...etc., etc.
Thanks!
kj
Just thought I'd let you know that Textmate bombs out on me when I
try and commit changes to my subversion repository using the
subversion bundle.
To be honest I've not used this bundle for a long time as I use svnX,
but svnX has just stopped letting me open my repositories and working
copies (it bombs out also) so I thought I'd give it a go.
I can't comment on when this started happening to the subversion
bundle so I don't know if the two problems I'm having are connected,
but the only thing that's changed since yesterday (when svnX was
working fine) is that I've installed the iTunes (7.1) and Quicktime
(7.1.5) updates from Apple, so if the two are connected then
(although I can't see why) this may have something to do with it.....
[command line subversion is working fine ...although I'm having
problems remembering how to use it!?!?!]
Cheers n thanks for an awesome editor!
Rupert
I'm taking a fresh look at TM and using it 60/40 with BBEdit... one
of the things I'm missing is a "balance tags" or "balance blocks"
feature.
e.g. if I'm between two tags, I hit the key command I've assigned,
cmd-opt-B, and everything between the two current HTML tags gets
selected. If I press it again, everything within the parent tag gets
selected, and so on. Is this something hidden in one of the TM
bundles? I really miss this whenever I move over to TM.
Similarly, I like being able to double click on opening braces,
parens, brackets, and selecting their contents. I know there's the
code collapsing, but it's different and doesn't seem so universally
applicable. e.g. object literals in Javascript aren't collapsable in
TM. In BBedit they're both collapsable and the bracket-double-
clicking works.
Any suggestions?
Hi all,
Is there a way in text mate to highlight a number of lines in Ruby code and
then say "Comment/Un-comment", after which Textmate would apply the leading
"#" comment before each of the lines?
Tks in advance
Greg
TextMate installs a new 'mate' command that can be used to open files
and directories from the command line. I don't recall if it installs
the command automatically, or if you need to do something special to
invoke it, sorry.
Folding can be tricky, as it matches both open/close folding
characters for the language you're currently using, and the indent
level must be correct as well. Plus, of course, they need to balance
correctly.
Not sure about the beeps, I only recall TextMate beeping during a
search, if it's found the last occurance and I ask it to find the
next one (which there isn't one).
Hope this helps,
- Dave
Hi,
I am trying to come up with a solution and thought that some of the
brilliant members of the list would have some ideas/suggestions.
I work in an environment where 3-5 people edit files for multiple
sites that are in the webserver of a shared server (currently accessed
thru smb). most of the edits are html, and I don't want to "burden"
them with checkin/checkout/etc etc
However, I am setting up new development box (ubuntu) and want to use
svn/trac/etc.
I already have (and use) tm project files for each "site" and I keep
them in the parent directory of htdocs on the share.
can the project file have all the svn project info and handle things
on open/save?
thanks
--
dc
-----
David Clark
Database Developer
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi,
Would it be possible to add support for correctly syntax highlighting
code in markdown blog posts?
I have the iG:Syntax Hiliter plugin <http://blog.igeek.info/wp-
plugins/igsyntax-hiliter/> which highlights the code when viewed
online, but it would be nice to have the code highlighted in
TextMate. The syntax for this plugin is ....
[perl]
# perl code here
[/perl]
[ruby]
# ruby code here
[/ruby]
etc.
What would be the best way to do this?
- Luke.
I've just noticed that template for XHTML/1.1 has been changed to include
application/xhtml+xml content type in <meta> element.
This is completly misguided as <meta> is there only for
backwards-compatibility non-XHTML user-agents -- that is only those which
*do not* support application/xhtml+xml.
From W3C XHTML FAQ:
"Note that a meta http-equiv statement will not be recognized by XML
processors, and authors SHOULD NOT include such a statement in an XHTML
document served as 'application/xml' (and 'application/xhtml+xml' as well
for that matter)."
Please change it back to text/html or remove <meta> element completly.
--
regards, porneL
hello
With a a latex file the commands of textmate : create a html file and
creta a css file don't work
tm_dialog_v5: invalid option -- a
tm_dialog r6021 (2006-11-16)
Usage: tm_dialog [-cmqp] nib_file
Usage: tm_dialog [-p] -u
Options:
-c, --center Center the window on screen.
-d, --defaults <plist> Register initial values for user defaults.
-m, --modal Show window as modal.
-q, --quiet Do not write result to stdout.
-p, --parameters <plist> Provide parameters as a plist.
-u, --menu Treat parameters as a menu structure.
tm_dialog: you have updated the Dialog plug-in to v7 but the
tm_dialog tool is still at v5
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
dialog.rb:53:in `initialize': No such dialog ()
(TextMate::WindowNotFound)
} for command: /Applications/TextMate.app/Contents/SharedSupport/
Support/bin/tm_dialog -a -c -p \<\?xml\ version\=\"1.0\"\ encoding\=
\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple\ Computer//DTD\ PLIST\ 1.0//EN
\"\ \"http\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Creating\ HTML\ version\ of\ selection…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Progress\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/dialog.rb:26:in `new'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
dialog.rb:26:in `dialog'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `call_with_progress'
from /tmp/temp_textmate.h1501H:5
and with create a css
/Users/ego/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle/Support/lib/doctohtml.rb:47:in `require': No such
file to load -- /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/plist (LoadError)
from /Users/ego/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle/Support/lib/doctohtml.rb:47:in
`generate_stylesheet_from_theme'
from /tmp/temp_textmate.hIcEvZ:3
Alain
Hi all, I just downloaded the update to TextMate and my `new environment
based on current word' seems to have been broken: command { gives
/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/lib/config_helper.rb:1:in
/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of filerequire'
from /tmp/temp_textmate.xBSaAH:4
It worked before. The new command code is:
#!/usr/bin/env ruby
SUPPORT = ENV['TM_BUNDLE_SUPPORT']
require ENV['TM_SUPPORT_PATH'] + '/lib/dialog'
require SUPPORT + '/lib/config_helper.rb'
@plist = Config.load
shortcuts = @plist['environments']
lshortcuts = @plist['labeled_environments']
if ENV['TM_SCOPE'].match('beamer') then
shortcuts.update(@plist['environments_beamer'])
lshortcuts.update(@plist['labeled_environments_beamer'])
end
name = STDIN.read
cmd = nil
if name == "" then
arr = ["custom…",nil] + (shortcuts.keys+lshortcuts.keys).sort
ind = Dialog.menu(arr)
if ind.nil? || ind == 0 then
name = ""
else
name = arr[ind]
end
end
for key in shortcuts.keys do
if shortcuts[key]['triggers'].index(name) then
cmd = key
setting = :no_label
dict = shortcuts
end
end
for key in lshortcuts.keys do
if lshortcuts[key]['triggers'].index(name) then
cmd = key
setting = :label
dict = lshortcuts
end
end
if !cmd.nil? then
print "\\begin{#{cmd}}"
print "\n" if setting == :no_label
print dict[cmd]["content"] || "\t$0"
print "\n\\end{#{cmd}}"
elsif name == ""
print "\\begin{${1:env}}\n\t$0\n\\end{${1:env}}"
else
print "\\begin{#{name}}\n\t$0\n\\end{#{name}}"
end
Thanks,
Anand Patil
Hi
I have changed
\s+
by
\s*
in the (L)anguage grammar for to C recognize also "name(args)" and
not only "name (args)" as function prototype in C.
I did easily the change in the C bundle, but my question es:
is it the best way of changing an standard bundle?
if that bundle is updated in the future by the TM developers, will
it be updated in my system?
Thanks
On Feb 27, 2007, at 9:14 AM, Allan Odgaard wrote:
> Could you btw make a case for the new Ruby syntax? I never figured
> out what problem it was supposed to solve.
The default Ruby syntax doesn't scope enough stuff.
There are very basic things that are completely missing like
method calls, operators and lambda variables.
My Ruby Experimental adds these basic things and a few other niceties
like leading space and core library method names and better
punctuation support.
The advantage is partly for the ability to better theme Ruby files,
which many people like myself are looking at all day every day.
Looking at mostly white on black text all day is enough to make you
go mad.
Another advantage is in using the Select Scope command to better and
more quickly select the current relevant scope.
When you don't know the language as well as you'd like, having the
core library methods colored slightly differently can really help you
to quickly notice any misspellings and such.
So, to sum up:
finish scoping the basic syntax of the language
different kinds of operators, methods, lambda variables, basic
punctuation like the => thing, etc…
core methods
Improved text interaction with select scope
improved readability with leading space scopes
improved awesomeness with the minimization of unscoped generic text
But, that's not really the point.
The point is that a syntax should scope as much as possible, not as
little as necessary.
Then it's up to each person to choose how you use those scopes.
Just take a bit of a peek for yourselves internet people!
Would you rather spend all day looking at this:
http://flickr.com/photo_zoom.gne?
id=404629435&context=photostream&size=o
or this?
http://flickr.com/photo_zoom.gne?
id=404629540&context=photostream&size=o
(if you hate that theme, just pretend you love it instead)
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Yep, Allan,
that did it.
sorry for reading only parts...
Thanks,
Claus
On 5-Mar-07, at 1:00 PM, textmate-request(a)lists.macromates.com wrote:
> From: Allan Odgaard <throw-away-1(a)macromates.com>
>
>
> Please see http://macromates.com/textmate/manual/
> bundles#setting_lc_ctype
Haris,
unfortunately, it still doesn't work for me to install the R bundle.
Here are the logs I get:
svn co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/
A R.tmbundle/Commands
A R.tmbundle/Commands/Vector.tmCommand
A R.tmbundle/Commands/Show in R help.tmCommand
A R.tmbundle/Commands/Command Usage.tmCommand
A R.tmbundle/Commands/Wrap Selection in Function Call.tmCommand
subversion/libsvn_subr/utf.c:466: (apr_err=22)
svn: Can't convert string from 'UTF-8' to native encoding:
subversion/libsvn_subr/utf.c:464: (apr_err=22)
svn: R.tmbundle/Commands/Plots?\226?\128?\166.tmCommand
I don't really know what this could mean... but I'd appreciate any help!
Thanks,
Claus
On 4-Mar-07, at 10:04 PM, textmate-request(a)lists.macromates.com wrote:
> I added a new syntax file for Rd documentation, and forgot to also
> commit the info.plist file. Perhaps that was the problem? I just
> committed it, so try to svn up and tell me if you still have
> problems with it.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
Is there some way to make TextMate not open documents that were last
open? For some reason - when editing files over FTP especially - it
likes to re-open a bunch of old documents, so I have to apple-W a
bunch of documents before apple-Q'ing.
Any way to do this?
--
Wells Oliver
wells.oliver(a)gmail.com
I'm getting the following stack trace when I select the 'Install Plugin'
command in the Rails bundle:
/Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/lib/rails/text_mate.rb:69:in
`method_missing': undefined method `filepath' for TextMate:Module
(NoMethodError) from /Users/scott/Library/Application
Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/lib/rails/rails_path.rb:43:in
`initialize' from /Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/bin/list_plugins.rb:25:in `new' from
/Users/scott/Library/Application Support/TextMate/Pristine
Copy/Bundles/Rails.tmbundle/Support/bin/list_plugins.rb:25
I'm using 'cuting edge' Textmate 1.5.4 (1360). I've attempted this with both
the distributed Rails bundle, and the version in svn (via the GetBundle
bundle).
I'm running ruby version 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.1],
installed via mac ports. I'm running Rails 1.2.2.
My apologies if this is already answered in the mailing lists; I couldn't
find any mention of this in the march or february archies, and a few
different google searches involving 'filepath textmate' don't bring back
anything interesting.
Many thanks for your help.
-Scott
Is there an easy way to tell TextMate to treat one file extension as
another file type? For example, when doing Drupal development, lots
of Drupal modules end in .module, but they are really PHP files. How
does one go about telling TextMate how to do this?
Thanks...
n.
--
Nick Hodulik : : hodulik.com
Allan,
have you had any time to take a look at the linking commands that
will allow for easy insertion of Markdown, HTML, etc? I've been
playing with the Yahoo-Ruby interface and have some new commands that
allow for searching/linking in different areas (news, videos, urls)
and finding related suggestions. I don't want to bother sharing it
with my same old HTML tag insertion if there's a linking library of
some sort on the way...
Thanks,
Brett
Hi,
I am trying to install the R bundle following the instructions on
http://macromates.com/textmate/manual/bundles#installing_a_bundle
even after updating, it is not visible in Textmate.
When I double click in the finder on
/Library/Application\ Support/TextMate/Bundles/R.tmbundle
a window pops up saying
"Bundle is Corrupt
The bundle "R.tmbundle" does not contain the required "info.plist"
file (or that file is corrupt) and can therefore not be installed.
Continue"
Am I the only one having that problem? Generally, I am a newbie, but
I'v at least installed other bundles before that work... :-)
It seem weird, cause on
http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/
there is a info.plist
Thanks for your help,
Claus
hello,
Object : TeX , Latex , theme and language
i have some problems with TeX , Latex and language
1) \newcommand*{\twoptoff}{\ifnum \catcode`:=13 \catcode`\:=12
13 and 12 are not in the same color
2) When i use xkeyval package i 've the name of the macro like this :
\define@boolkey : define and @boolkey are not in the same color
3) \protected@edef\@tempa \@ in one color , tempa in the same color
that edef
4) \def\@@vertex#1{... \@ in one color the second @vertex in an
other color
5) i've an other question about completion with LaTeX. What is the
good way
for me if i want to complete easily newcounter, setcounter,
newcommand, usepackage \define@boolkey
etc .....
Greetings
Alain
Since my last update to Textmate, I've noticed that it is burning a
little under 5% of my CPU (Core Duo MacBook Pro) when I'm doing
absolutely nothing. I'm rather sure it didn't do this before.
Anyone else see this, or have an idea what's going on?
TextMate 1.5.4 (1360)
Thanks,
Jamie
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
would it be possible, to add folding markers for the =begin ... =end
documentation in ruby? It would be usefull, if I could hide large
documentation parts in a script.
Thanks in advance,
Simon
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFbE+cYRX4BO+zMikRCuQjAJ4nyg7vJVGgfILRNGspMScVw5B10wCbBfwf
Seck//9uFxjZzVv+IJXGRIg=
=4TGS
-----END PGP SIGNATURE-----
Hi all,
I am new to TextMate and have badly mangled a theme. Is there a way to
revert a theme to its' original state. Or if I need to remove it, where
in the directory structure can I find it? It I need to remove it, I
will need the original and I do see individual original themes listed
anywhere on the macromates site.
All help appreciated.
Bob
Hi. My Textmate bundle has disappeared - it doesn't show in the Bundles
menu. I've downloaded it via GetBundle and Subversion, but it still
doesn't show.
Now, maybe it never shows in that menu. I don't really remember it. But
what I do know is that the keyboard shortcut for 'show current scope'
doesn't work any more, and I can't find the command anywhere. That
leads me to think that it's in the Textmate bundle, and that the bundle
is AWOL.
Can anyone give me any advice?
Bruno
The latest betas of Quicksilver (http://getqs.com/dev)
when put in advanced mode  will allow you to save any action as a
file.
And after you enable proxy objects (http://vjarmy.com/archives/
2006/01/quicksilver_gold_trigger.php)
you can do all sorts of fancy stuff.
Here we're going to create an Edit in TextMate command that works on
your current selection in the finder.
1) Select the action you'd like to use
Current Selection ⇥ Open With… ⇥ TextMate
2) Then, before you touch another key or run the action, hit ⌃↩
(control-return)
That will convert the current action into a single object. You can
now put it in your Shelf or something.
3) The default action for these objects is Run, but select the Save
Command to File… action.
This won't show a third pane, but you must select a folder to save
the file into.
4) Hit ⇥ and select the Desktop, hit ↩ (return) to save.
Now you'll have a .qsaction file on your desktop.
You can give it an icon or put it in your finder toolbar or dock.
Enjoy.
To sum up:
Download the latest beta of QS.
Turn on advanced mode.
Enable proxy objects.
Then:
⌘SPACE cursel ⇥ ow ⇥ tm ⌃↩ sav ⇥ desk↩
Of just use this one I already made:

thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Hi all.
Can someone point me to a basic example of
a dialog from inside a ruby code? My needs
are basic: at some point my code computes
a certain string; I want to check the string,
edit it by hand if necessary, and then continue.
So I just need something like the example in
Allan's screencast about tmDialog, only from
inside some ruby code in a TextMate command.
Thanks,
Piero
Hi,
In JavaScript I would like every instance of the word "self" and
"parent" to be orange except when they appear as "window.self" or
"window.parent". How can I specify these. What I have so far is...
{ name = 'window.js';
match = '\bwindow.self\b';
},
(Which is wrong, of course.)
Thanks for any help!
Peter
Removing the Support folder from ~/Library/Application Support/
TextMate fixed the problem, but I don't believe I created that
folder. I did use the GetBundles bundle to obtain one or two bundles.
Did it create that folder?
I had checked out the current bundles into /Library/Application
Support/TextMate using SVN, but then removed the entire directory
after I decided to stay with the "shipping" copies for now. Could
that have caused the conflict?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Mar 1, 2007, at 11:46 AM, textmate-request(a)lists.macromates.com
wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. $TM_FILENAME (Jasper van der Meulen)
> 2. Re: Edit (files) in TextMate from the finder (guerom00)
> 3. Re: $TM_FILENAME (Jasper van der Meulen)
> 4. Re: Opening a project with Quicksilver (Raheel Ahmad)
> 5. Re: Find: Ignore Whitespace (Hong Jiang)
> 6. MultiMarkdown conversion to LaTeX (Jeroen van der Ham)
> 7. Re: MultiMarkdown conversion to LaTeX (Allan Odgaard)
> 8. TODO Bundle broken? (Brendan Dixon)
> 9. Re: Textmate bundle disappeared (Bruno)
> 10. Re: TODO Bundle broken? (Allan Odgaard)
>
> From: Jasper van der Meulen <jasper(a)logt.nu>
> Date: March 1, 2007 7:25:27 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] $TM_FILENAME
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I'm trying to get $TM_FILENAME to first string uppercase ..
> Is there an easy way ? i can't figure it out
>
> regards J.
>
>
>
>
>
> From: guerom00 <romain.guerout(a)stud.unibas.ch>
> Date: March 1, 2007 7:25:57 AM PST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Edit (files) in TextMate from the finder
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> To be consistent, I made myself a trigger
> with the shortcut Ctrl-Cmd-E for this ;)
>
>
>
>
>
> From: Jasper van der Meulen <jasper(a)logt.nu>
> Date: March 1, 2007 7:33:52 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] $TM_FILENAME
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Sorry, i did make a typo, that's why it didn't work for me. ..
> here's the solution
>
> ${TM_FILENAME/(.*?)(\..+)/\u$1/}
>
> Regards J.
>
>
> On Mar 1, 2007, at 4:25 PM, Jasper van der Meulen wrote:
>
>> I'm trying to get $TM_FILENAME to first string uppercase ..
>> Is there an easy way ? i can't figure it out
>>
>> regards J.
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> From: Raheel Ahmad <rahmad(a)cs.siu.edu>
> Date: March 1, 2007 7:48:19 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Opening a project with Quicksilver
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Thanks,
> This worked best for me.
>
> On Mar 1, 2007, at 6:23 AM, Allan Odgaard wrote:
>
>> On 1. Mar 2007, at 05:10, Raheel Ahmad wrote:
>>
>>> I am assuming most of us here are familiar with Quicksilver. I
>>> wrote a bash script to open a project and some of its files in
>>> Textmate in an obvious fashion:
>>>
>>> #!/bin/bash
>>> mate ~/Documents/infodump
>>> mate ~/Documents/infodump/tsks.txt
>>>
>>> How can I run this script using Quicksilver? Only way I can is by
>>> running this script file using "Run in Terminal." "Run" by itself
>>> doesn't do anything with the script file.
>>
>> Likely because when you just ‘run’ it, it is done by Quicksilver,
>> which does not have the same PATH as the Terminal, and so, there
>> is a chance ‘mate’ is not found.
>>
>> Try to use the full path to mate in the script.
>>
>> As an alternative to mate, you can use: open -a TextMate ~/
>> Documents/infodump
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>>
>
> ---------------------------
> Raheel Ahmad
> Department of Computer Science,
> Southern Illinois University
> rahmad(a)cs.siu.edu
> 618-453-6025
> Faner-3123
>
>
>
>
>
>
> From: "Hong Jiang" <ml(a)hjiang.net>
> Date: March 1, 2007 7:59:16 AM PST
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Find: Ignore Whitespace
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> If you want to search for the whole thing ignoring whitespaces and
> newlines, you need to insert \s* between the words and symbols. For
> example:
> \s*}\s*elseif\s*(\s*$action\s*==\s*'update_product'\s*)\s*{\s*\
> $update_sql_data\s*=\s*
> ....
>
> Make sure to escape regex symbols that occur in your string.
>
>
> On 3/1/07, Richard Burford <richyburford(a)hotmail.com> wrote:
>> Andy,
>>
>> Thanks for your reply. I have tried that and it doesn't work for me.
>> Maybe I am doing it wrong.
>>
>> How would you use regex to ignore whitespace and newlines in this
>> text?
>>
>> } elseif ($action == 'update_product') {
>> $update_sql_data = array('products_last_modified' =>
>> 'now()');
>>
>> $sql_data_array = array_merge($sql_data_array,
>> $update_sql_data);
>>
>> tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update',
>> "products_id = '" . (int)$products_id . "'");
>> }
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>
>
>
>
> From: Jeroen van der Ham <jeroen(a)je-ju.net>
> Date: March 1, 2007 8:19:01 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] MultiMarkdown conversion to LaTeX
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hello,
>
> Today I discovered the MultiMarkdown capabilities and thought I'd
> use it
> to make a LaTeX document. However, now that I'm actually trying the
> conversion, it does not work as expected:
> xslt chokes on the output because there is no envelopping top level
> tag.
> Meaning, that if you have for examples two paragraphs of text, then
> you
> get the error:
>
> -:3: parser error : Extra content at the end of the document
>
> Is anybody maintaining this bundle? How can this be fixed?
>
> I tried using tidy on it before handing it to xslt, but then I only
> get
> the bibliography part of the output. And I'm not fluent enough in
> xslt to
> figure out what is going wrong there....
>
>
> Jeroen.
>
>
>
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: March 1, 2007 8:23:02 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] MultiMarkdown conversion to LaTeX
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 1. Mar 2007, at 17:19, Jeroen van der Ham wrote:
>
>> Today I discovered the MultiMarkdown capabilities and thought I'd
>> use it
>> to make a LaTeX document. However, now that I'm actually trying the
>> conversion, it does not work as expected:
>> xslt chokes on the output because there is no envelopping top
>> level tag.
>> [...]
>
> You need to insert: ‘Format: Complete’ in the top of the document.
>
> I think I have a note somewhere about making the build command(s)
> check it and either warn or just add it silently :)
>
>
>
>
>
>
>
> From: Brendan Dixon <brendandixon(a)mac.com>
> Date: March 1, 2007 11:28:33 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] TODO Bundle broken?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Running the pristine copy of TODO from build 1360, I get the
> following error message:
>
> /tmp/temp_textmate.pXvDHC:19:in `require': No such file to load -- /
> Users/brendan/Library/Application Support/TextMate/Support/lib/
> plist (LoadError) from /tmp/temp_textmate.pXvDHC:19
>
> Any ideas?
>
> Brendan Dixon
> brendandixon(a)mac.com
> 425.922.8798
>
>
>
> From: Bruno <mail(a)hinterland.nu>
> Date: March 1, 2007 11:33:32 AM PST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Textmate bundle disappeared
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
>> What is the contents of ~/Library/Application Support/TextMate ?
>
> Well, there was a copy of 'TextMate.tmbundle' in 'Pristine Copy/
> Bundles', so I moved it to Bundles and restarted TextMate.
>
> It worked! My 'Language Definition' bundle disappeared, and there
> was a TextMate bundle in my list instead.
>
> I think that's fixed it. Thanks everybody for the advice. :-)
>
> And incidentally, I noticed the Themes folder, and realised that my
> syntax colouring was independent of my preferences (probably
> obvious to most people).
>
> Bruno
>
>
>
>
>
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: March 1, 2007 11:45:52 AM PST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] TODO Bundle broken?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 1. Mar 2007, at 20:28, Brendan Dixon wrote:
>
>> Running the pristine copy of TODO from build 1360, I get the
>> following error message:
>>
>> /tmp/temp_textmate.pXvDHC:19:in `require': No such file to load
>> -- /Users/brendan/Library/Application Support/TextMate/Support/lib/
>> plist (LoadError) from /tmp/temp_textmate.pXvDHC:19
>>
>> Any ideas?
>
> This will happen if you have checked out a recent version of the
> Support folder from svn, but not the bundles, since we moved the
> plist ruby ext. to another location (so it doesn’t clash with the
> rubygem plist ext.)
>
> I am going to push an update in a few days -- for a fix now, either
> remove your Support folder checkout, or checkout latest version of
> the ToDo bundle.
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
I have a new bundle I have written for N3/Turtle. I saw a request in
for RDF so I suspect there is a fellow semantic webster out here
somewhere. I have pretty good syntax highlighting although it is
pretty much the turtle subset of N3 right now...re:
http://www.dajobe.org/2004/01/turtle/
I was pretty unsatisfied with the only emacs mode out there:
http://larve.net/people/hugo/2003/scratchpad/NotationThreeEmacsMode.html
And have recently started using Textmate, and started working on this
bundle.
This bundle also has the ability to become the basis for a SPARQL
bundle as that is also based on the N3 syntax.
Anyway, the bundle is useful to me and without people requesting fixes
it will never get better. You know, I'll fix anything that doesn't
fit my coding style but that won't take long.
Main feature: I highlight subject, predicate and object (also literal
vs iri objects) rather than uri vs qname color.
Anyway, just looking for anyone else interested in N3 or any bundle
dev advice in general as this is a new platform for me after a long
emacs relationship.
--
ciao,
Phil
Running the pristine copy of TODO from build 1360, I get the
following error message:
/tmp/temp_textmate.pXvDHC:19:in `require': No such file to load -- /
Users/brendan/Library/Application Support/TextMate/Support/lib/plist
(LoadError) from /tmp/temp_textmate.pXvDHC:19
Any ideas?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
Hello,
Today I discovered the MultiMarkdown capabilities and thought I'd use it
to make a LaTeX document. However, now that I'm actually trying the
conversion, it does not work as expected:
xslt chokes on the output because there is no envelopping top level tag.
Meaning, that if you have for examples two paragraphs of text, then you
get the error:
-:3: parser error : Extra content at the end of the document
Is anybody maintaining this bundle? How can this be fixed?
I tried using tidy on it before handing it to xslt, but then I only get
the bibliography part of the output. And I'm not fluent enough in xslt to
figure out what is going wrong there....
Jeroen.
Andy,
Thanks for your reply. I have tried that and it doesn't work for me.
Maybe I am doing it wrong.
How would you use regex to ignore whitespace and newlines in this text?
} elseif ($action == 'update_product') {
$update_sql_data = array('products_last_modified' => 'now()');
$sql_data_array = array_merge($sql_data_array,
$update_sql_data);
tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update',
"products_id = '" . (int)$products_id . "'");
}
I am assuming most of us here are familiar with Quicksilver. I wrote
a bash script to open a project and some of its files in Textmate in
an obvious fashion:
#!/bin/bash
mate ~/Documents/infodump
mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by
running this script file using "Run in Terminal." "Run" by itself
doesn't do anything with the script file.
Thanks
Raheel
Hi. I've started having a problem with the TODO bundle, where 'Show
TODO list' never completes - it just keeps processing. I assume that
there's some kind of infinite loop in the regex search, but I have no
idea how to find it. I stripped away the list of options (FIXME,
CHANGED etc) but it hangs on all of them. Can anyone offer any advice?
Bruno
Hi,
How can I switch from the big text editing area back to the drawer
without using the mouse so that I can choose a new file? In case it
matters I am using the missing drawer plugin so that the drawer is
always on the left when I open a project.
Thanks,
Peter
It seems textmate has no option to ignore whitespace when searching for
text. I used dreamweaver previously and that is where the reliance came
from. If there is a way to do this easily I would be grateful for a
reply. If I must use dreamweaver then I can do that but I would prefer
to maintain the flow in textmate.
Thanks
Hi
I don't know if is Charilaos the LaTeX/Bibtex maintainer, but,
anyway, probably everybody in the list knows the answer:
Is there any support for Bibtex appart from the Language definition?
In the support I mean bibtex .bib tools like snippets for items, like:
@book($1,
author = "$2",
title = "$3",
publisher = "$4",
series = "$5",
year = $6,
)
$0
tidying the formats, etc.
I know there is an insertion of citing in LaTeX mode, but I can't
make it run for me. I don't know well how to invoke it, when (must
the .aux be there?), how to indicate the bibliography files (since it
seems not to look for the \bibliography command in the LaTeX source),
etc.
Any help will be welcome. Thanks.
Juan Falgueras
Hi,
did I missed something or does textmate not support split views?
I need to apply certain changes to two source files based on another
similar source
file, I already edited.
Regards,
Stefan
Hey folks.
I recently updated my Ruby and Rails bundle (R6637 and R6633 respectively)
and have found that some of the bundle function appears to be gone. For
example the def, deft, and defs tab completion features. Is this on
purpose?
James H
i ment to ask this last week but i just rolled back to 6623,
i no longer get function completion with rev 6667, has anyone had this
problem and solved it.
Kim
Hi,
After much deliberation I decided to switch from Emacs to Textmate
yesterday, despite being wary about some important keybindings not
being supported.
I've managed to map almost everything the way I like it, but the most
important is still not supported, and that is ctrl-space and ctrl-w for
setMark and deleteToMark, respectively.
After searching the mailing list and blog archives I am left with the
impression that this has been on the todo list for several years. I was
just wondering if there is an ETA on this functionality? And out of curiosity,
is it very difficult to add, or just very low on the (long) todo list?
I'm asking because I fear I will have to unlearn the very efficient Emacs
way (to me, anyway) while I wait for this to be supported in TM. And that
would be a shame :)
In most other aspects, TM is fantastic. And the better I understand it,
the more impressed I get. Great editor!
--
Best regards,
Stian Grytøyr
When we get the new scope injection system for syntaxes we should
plan on making some big changes to the current state of many bundles.
We currently have a Ruby syntax, and the Rails syntax includes it.
The current Rails syntax seems to be targeted at Rails 1.1.x.
I'm torn about upgrading that syntax however.
On the one hand, the official Rails syntax should support the latest
version of Rails, but I'd hate to introduce some incompatibilities
with current applications written for Rails 1.1.x.
The new organizational method should be something like this.
Root language syntax
Contains only the basic scopes for the language syntax itself and
any built in language stuff.
Core library syntax injector
Injects the core library support junk into the Root language syntax
Other Library syntax injectors
EG: Rails 1.1.x injector, Rail 1.2 injector, Rails 2.0 injector,
Camping injector, etc…
Personal syntax additions
Inject support for all your personal libraries and classes and junk
Optional syntax niceties
EG: Rails 1.2 deprecated code, nested brackets, leading space, etc...
That way all of the layers are nicely segregated from eachother.
Nothing can really change the basic Ruby syntax, so a single
tmLanguage should scope the entire thing.
Then you can add stuff where you need it in a nicely segregated way.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Hi there,
I've been trying to send this to the dev list, but somehow the message
didn't make it to the list.
I'm trying to commit the wonderfull JavaScript Tools Bundle[1] by
Andrew Dupont to the repository, but it seems I'm not allowed to
commit outside "my" bundle (that would be ActionScript.tmbundle)
Is any of the JavaScript Bundle mantainer (or someone with full access
to the repo) willing to commit it?
Tha bundle is fully tested and ready for commit :)
Thanks in advance, and sorry for the OTish.
[1]: http://www.andrewdupont.net/2006/10/01/javascript-tools-textmate-bundle/
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Hi,
I write a lot of JavaScript and some C and I find that the automatic
indenting doesn't work correctly very often when I cut an paste.
Textmate seems to think I want the pasted text indented more than it
should be. Does anyone else have this sort of trouble? Is there a fix?
Thanks,
Peter
Hi all,
I seem to have messed up my TextMate theme default and was wondering if
anyone could tell me how to fix it. I toyed with the colors of my
favorite theme (Vibrant Ink) and decided I didn't like the changes, so I
uninstalled and then reinstalled the theme. But now when I restart
TextMate it doesn't recognize Vibrant Ink (which does not show up in the
theme list). I looked in ~/Library/Applcation Support/TextMate/Themes,
and the .tmTheme file is there. So what's up? Any clues? I miss Vibrant
Ink :<
Thanks,
Jake
Hi All,
I'm using TextMate 1.5.4 (r1324) on Mac OS X 10.4.8 PPC. I've got the
subversion bundle from the GetBundles bundle, with the latest
tm_plugin checked out by hand from the Plugins dir in subversion on
the macromates server.
When I try to view the log of a file I get the following error, all
the other subversion features seem to work fine -;
NoMethodError
reason: undefined method `text' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:22:in `author'
(erb):32
/opt/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/opt/local/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
/opt/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/opt/local/lib/ruby/1.8/rexml/element.rb:398:in `each_element'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:18:in `each_entry'
(erb):28
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:165
Thanks
---
Jeremy Wilkins
dear all,
i'd like to pose a few basic questions when using textmate for latex
files:
(1) is there a way to get the 'typeset & view window' display the log
file, the way you can have it with emacs?
it seems that changing the values of TM_LATEX_ERRLVL doesn't help ...
(2) is there a way to get textmate use a dvi-previewer? (for reasons
of speed, i still prefer dvi when working on my files).
(3) is it possible to change the fonts (i.e. same font as in in the
editing window) and the header of the 'typeset & view window'?
what's the place to do it?
thank you!
greetings,
christoph eyrich
In early Jan I made a bunch of changes to my blogging bundle, some
overrides, some I had to edit the .rb files by hand.
Whats the best way to compare my changes to the svn tree and submit
them as a patch to be reviewed?
Hi,
I am new to textmate and bibdesk. I am not able to format citations. I can
follow the tutorials but if I try to cite from bibliography completion I get
\cite{sh: line 1: /usr/local/teTeX/bin/i386-apple-darwin8.3.1/kpsewhich:
cannot execute binary file
sh: line 1: /usr/local/teTeX/bin/i386-apple-darwin8.3.1/kpsewhich: cannot
execute binary file
Ng1}
I am using a PowerPC G4, with os x 10.4.8 and textmate 1.5.4.
I have found some suggested workarounds by Özgür Gökmen... But unfortunately
don't understand what I should be changing or where to find some of the
files I need to change.
If anyone has had similar problems and can point me in the direction to
solving this error I would greatly appreciate it.
-Michael
Hello All,
Great to see such an active community for a text editor!
I've been using TM for a largish python project. I have quite a few
source files now and using the project draw and tabs to navigate
between them.
Anybody know how I can mark one file in my project as the file to run
using the Run Script Command.
Would I need to modify the Run Script Command for this to work?.
I've looked at it in the bundle editor but it makes no sense to me. I
tried hacking some changes in so that it would run a specific file
rather than $TM_FILEPATH but without luck.
Any help much appreciated.
Jay.
I've been trying to get the perforce bundle installed
on my macpro; I'm using the bundle browser at
<http://netcetera.org/cgi-bin/tmbundles.cgi>
I copied the script locally and ran it, and I kept
getting the error:
svn: Can't convert string from 'UTF-8' to native
encoding:
subversion/libsvn_subr/utf.c:464: (apr_err=22)
svn: Perforce.tmbundle/Commands/Submit
Changelist?\226?\128?\166.plist
I found that editing the script and adding the line:
export LC_TYPE
after the line that sets LC_TYPE fixes this problem.
The UTF-8 was for the ellipsis character.
Just FYI,
Rudi
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
I want to have a regular expression that identifies the items in a
line from a comma-separate values (CSV) file.
Imagine one style of CSV, in which such items are all quoted (Format 1):
"First Item","String","0","Yes","Yes","No","The contents of the
string in the first item"
"Authority","ID","0","Yes","No","No","ID of the person
""responsible"" for the item, if known"
In CSV, double-quotes permit embedding commas (and spaces?) in record
fields. Double-quotes in such fields are escaped by doubling the
character.
The regex that matches the full text of the item is fairly
straightforward:
"((""|[^"]*)*)" # In quotes, a run of double-quotes and anything
else not a quote; make $1 hold the unquoted string
However, a field may be empty (represented by no characters between
the commas). This a special case of the less-paranoid (and arguably
more standard) way of writing the file (Format 2):
"First Item",String,0,,Yes,No,"The contents of the string in the
first item"
Authority,ID,0,Yes,No,No,"ID of the person ""responsible"" for the
item, if known"
The something-between-quotes regex doesn't pick up the nonquoted
fields (obviously).
So make the regex fancier, to make the quotes optional and recognize
the field separator (which does not exist at the end of the record):
("?((""|[^"]*)*)"?),?
This still works for Format 1, but in Format 2 it matches the whole
of any run of records that aren't quoted (String,0,Yes,Yes,No,").
Start from the other end, and try a regex that matches fields not
quoted:
([^,[:cntrl:]]*),? # any run of characters, including blanks, that
aren't controls or commas, and may end in comma
The exclusion of control characters prevents the matching of:
"The contents of the string in the first item"
Authority
If the next field is a quoted string with a comma in the middle, this
pattern stops at the embedded comma.
So maybe a pattern that combines the two patterns would work:
(("?((""|[^"]*)*)"?)|([^,[:cntrl:]]*)),? # match quoted fields if
you can, unquoted fields if you must.
No: This pattern matches
String,0,,Yes,No,"
in the first line of the Format 2 example. It's the same behavior as
the quoted-only pattern (matches runs of nonquoted strings).
Reversing it:
(([^,[:cntrl:]]*)|("?((""|[^"]*)*)"?)),?
behaves the same as the nonquoted pattern (matching stops at commas
within quoted strings).
I'm out of ideas. Does anybody have a suggestion?
— F
Is there a way, to see an RTF document without the RTF markup in it?
I have some 100 RTF files, and I need to do a global search and
replace. It is no problem I think, to do this in Textmate, cause the
things I will replace wont appear in any RTF commands, but i would
like to view the files properly at least. looking at all the RTF
markup is just a little confusing :)
Any suggestions on how to this another way? I am up for suggestions.
Thx in advance,
Thomas Krajacic
My quest for supporting CSV whizbangs in TextMate continues. I
created a very simple CSV language bundle, and can't get my CSV
commands (OK, so far, "command") to apply to the file.
I added a new bundle and named it CSV. Here is the language spec:
=============
{ scopeName = 'text.csv';
fileTypes = ( 'csv' );
}
=============
Simple enough. My problem may be that it's too simple. I'm figuring
that patterns and folding don't make much sense in a language as
simple (hah!) as CSV.
Opening a .csv file identifies the file as CSV (the language popup
says "CSV"). However:
- Trying to detect the scope inside the file (⌃⇧P) produces no
scope tip at all.
- The commands popup at the bottom of the window starts you off at
the top of the language list, not at CSV.
- Pressing ⌘R (the key equivalent for one of my CSV commands) gives
me a popup offering the ⌘R commands of two other bundles (including
Xcode)... which I now see specify no scope for those commands. My ⌘R
is scoped for text.csv.
Clearly my language spec does not suffice to give the contents of
a .csv file text.csv scope. I'm missing something. What is it?
— F
While we're on the subject of the blogging bundle (i.e., after reading
the previous post which reminded me), what's the status of Movable Type
categories? Any hope of getting them supported? At present, that's one
of the only things keeping me from using TM for all my blogging
(instead, I use MarsEdit along with a plugin that lets me convert
keywords to tags).
Yours,
Andrew
I'm not sure how to put this without sounding like a demanding
ingrate, but here goes...
I've been using Brad Choate's persistent include commands since the
day they came out, because they are brilliant for my way of working.
But (here it comes) they would be so much more brilliant still if it
was possible to update any files selected in the project drawer
whenever an included file was changed.
I know about TM_SELECTED_FILES, but I can't see how to apply a
command to all of them in place. The only thing I could think of
involved creating temporary files, which doesn't seem the right way
to be going about this.
Any suggestions?
A new file in TextMate:
====================
p "testing rubymate"
====================
command+R to see the output in RubyMate and here's what I get:
Output in Run Window:
/bin/bash: line 4: DISPLAY has been set to :0.0 /usr/bin/ruby: No such
file or directory
Where did my precious RubyMate go?
This seems to happen quite often...
I have:
<h2>Download Our Catalog</h2>
Which needs to become:
<h3>Download Our Catalog</h3>
How would I go about writing a snippet/command that would allow me to
select "<h2>Download Our Catalog</h2>", activate the snippet, and have
the tag become selected ("h2" in this case) and mirrored in the
closing tag, therefore allowing me to simply type "h3" and then tab
back out?
the indentation looks as if it is indenting the next line if there is
not a semicolon on the end of the previous line which is fine except
when the previous line is a comment like this
#init var
$var = 2;
should be
#init var
$var = 2;
i notice that this is only happening since allan's updates.
Thanks
Kim
I often find that I paste something into a document, then immediately
select it to do something to it, like wrapping it in tags or
converting characters to entities. Long ago I used an editor
(possibly alpha) that had a 'select pasted text' command, that did
the selection straight after a paste, without having to drag over it
or whatever. I can't find an equivalent command in TextMate, nor any
environment variables pointing to the start and end of the latest
pasting that would let me implement it myself.
Have I missed something? Either a command in some bundle I don't know
about or some other way of achieving the same effect?
If not, here's a feature request. Any one of the following:
Select Pasted Text command
Paste and Select command (extra modifier key on cmd-V)
Select after Pasting preference.
Thanks for any help or pointers.
Hi list,
I have a problem with the Subversion bundle.
The svn server uses svnserve. It checkouts ok through the bundle, but
when I try to commit something it fails with:
subversion/libsvn_client/commit.c:873: (apr_err=170001)
svn: Commit failed (details follow):
subversion/libsvn_ra_svn/client.c:309: (apr_err=170001)
svn: Can't get password
Where can I enter my username and password for the svn repository??
Maybe an shell variable?
Thanks,
Kostas
Hi all,
Does Textmate provide any auto-completion capabilities? (like RadRails is
starting to). If not are there plans to?
I mean those features like:
* type the first few characters of a local/instance variable name then hit
hot key combination and suggestions for current variables that match this a
presented to you,
* type a variable name then "." and get suggestions of available methods (a
bit more interesting I know for a language like ruby)
Thanks
Greg