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
I just discovered the "Edit each line in selection" feature. It works
great... for adding something to the end of the line. But how do I add text
to the beginning of the line?
Thanks!
Justin
Hi
A Friend of mine hast a big problem with typesetting in TextMate.
When he uses TeXShop for EXACT the same document everything is fine.
But from within TextMate he gets the following error message with an
"Open"-Dialog popping up:
Typesetting: ./unitlted.tex)
(/usr/local/gwTeX/texmf.texlive/tex/context/base/supp-pdf.tex
Output written on untitled.pdf
Viewing the PDF file with "Preview" works but not the preview in TextMate
:-O
What shall we do?
Thanks for your help!
--
View this message in context: http://www.nabble.com/LaTeX-Typesetting-Problem-tf3281363.html#a9127219
Sent from the textmate users mailing list archive at Nabble.com.
>> [...] Is there a keybinding or some other default I can set to
>> make PageUp/Down actually move one page up/down based solely on
>> the visible lines, not the location of the caret? (Move PageUp/
>> Down would then, either re-center the caret on the new page or
>> place it at the same relative location.)
>>
>
> The default behavior is to move exactly one page up/down without
> moving the caret (look at the scrollbar for the exact distance moved).
>
> You can change it e.g. to move the caret as well [1]. Could it be,
> that you already changed this, but moved the movePageUp:/
> movePageDown: selectors? If so, you get a third behavior, where
> caret will first move to the screen boundaries, and then move a page.
>
>
> [1] http://macromates.com/blog/archives/2005/07/05/key-bindings-for-
> switchers/
>
I just verified my key bindings and they're at the defaults (e.g.,
PageUp binds to pageUp:). I tried binding to movePageUp: just to
verify. What I'm seeing is different than what you've described.
Perhaps I've altered some other binding, but heck if I can find it.
As long as the caret is on the center line, I get the behavior you
describe. If the caret is not on the center line then I get other
behavior. For example, if display is showing lines 283-364 (so, 82
lines per page), if the caret is on line 323 (the center) and I page
up, the windows displays lines 201-282 (that is, it's move backward
by 82 lines. However, if the caret is on line 360 (below center) and
I page up, the window displays (roughly) lines 237-319 and the caret
is on line 278. It's moving backward one page as measured from the
caret location (360 - 82 = 278) and then making that line the center.
The visual effect is a movement of more/less than a whole page
depending on how far from center you are.
It seems that Xcode and TextMate do the same, while BBEdit moves a
strict page up/down (perhaps leaving the caret outside of the visible
window). If I could request something, what I would prefer is to
always move exactly one page up/down based on the window size alone,
regardless of where the caret is. If that leaves the caret outside
the window, well, Ok. It'd be cool if the caret would land on the
same relative position on the newly displayed page (e.g., if
displaying 100-200 with caret on 175, a page down would display
200-300 with caret on 275).
Is this making sense? Are there defaults or bindings I can change to
obtain this effect?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 22, 2007, at 8:52 AM, Nathan Paxton wrote:
> All bundles are in as they should be.
>
> Here's a screenshot. As you can see, the spellcheck is alerting
> for words in the preamble. It seems to occur with any dictionary I
> use.
>
I just committed a fix that should take care of the preamble issue
for the most part. We now match \usepackage and \documentclass
explicitly.
> Best,
> -Nathan
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
Yes, I think the problem is encoding. Textmate uses UTF8 and perhaps Final
Draft uses ASC II? Is there any way to work in TM in ASC II or perhaps there
is some way to convert the file before I import it into Final Draft. Thanks.
First, I really like TextMate. It's clean and extensible (in a nice,
well-behaved way). It has numerous features quickly becoming part of
my muscle memory.
Though, there's one aspect I can't get my intuitive head around:
PageUp/Down. Often times I feel as if I've landed somewhere quite
different from what I expected - TextMate seems to like to re-center
things or treat the current line (that with the caret) as if it were
the center line (it's often not) and move things accordingly. Is
there a keybinding or some other default I can set to make PageUp/
Down actually move one page up/down based solely on the visible
lines, not the location of the caret? (Move PageUp/Down would then,
either re-center the caret on the new page or place it at the same
relative location.)
Thanks!
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 21, 2007, at 10:13 PM, Nathan Paxton wrote:
> I don't think so.
Perhaps I wasn't very clear, either the Source bundle shows up in the
list of bundles in the Bundle editor, or it doesn't. If it doesn't
then you need to click on the Filter List... button at the bottom of
the bundle editor and enable it.
I take it you mean that you checked there and it does indeed appear,
in which case it is mysterious that you have problems. Do the
problems persist if you disable CocoAspell and use the built in spell
checker? I don't personally use CocoAspell, never found the need for
it, but perhaps it's useful. In any case, it would be helpful to know
if the problem appears only with CocoAspell, or with any spell checker.
Can you send us a screenshot showing the bad highlighting?
> I haven't done anything to those bundles except perhaps update them
> from the svn when I have updated the bundles in general.
>
> -N
Haris
Hi all,
I have TM 1.5.4 and Cocoaspell on OX 10.4.8. When I write a LaTeX
document, the spelling unit marks all my LaTeX syntax as incorrect
spelling. I've set the spelling to use the English aspell dictionary,
and everything works nicely in TeXShop, for example, but I can't
figure out what to do to get this to work in TM. Any suggestions?
Thanks.
Best,
-N
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
Hi!
I've got here some code with very long lines thus vertical scrolling
is necessary, while I scroll the line-numbers and folding-markers are
disappearing. Imho it would be better if those aren't disappearing
meaning that the vertical scroll-bar is only for the text-area while
the horizantal one is for line-numbers etc and text-area.
Do other ppl think the same?
Niels
We're working on a new system for tagging/searching/browsing bundles.
But, should we allow specific bundle items to be tagged too?
One purpose would be to mark something that is Mac or xNIX only.
Or something that requires some application or tool to be installed.
That way we could write a single system for dealing with requirements .
If a user tries to run a command that requires Python 2.4 or
whatever, there will be a single system for dealing with it.
Currently, every bundle item that has a prerequisite either breaks or
handles the requirements system itself.
Since bundles are becoming more and more cross-platform and being
used in more than just TextMate on a Mac, this seems like a good idea.
I know of at least two editors on Windows that are supposed to
support the TextMate Bundle formats.
Personally, I'm all for making the formats as cross-platform friendly
as possible.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Just a quick update: I finally got around to updating the reftex-
style citation completion command. The command should now work with
the recent updates to the latex bundle, and has been added to the
repository as Build Citation.
Cheers-
-Alan
I write my plays in Textmate and then copy and paste them into Final Draft.
What's happening is that apostraphes, quotation marks, and em-dashes (—)
become garbled, weird combination of characters.
Anyone know why this might be happening? I notice it sometimes happens when
I take text out of TM and put it into TextEdit as well.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi Dr. Drang,
Thanks, I hadn't considered using a Snippet for this.
(Ignoring some edge cases that you already mentioned), it seems to
work for normal selections, but unfortunately not for column selections.
I'm not sure how much room there is in an external program/Command to
do anything about this, but if you have some suggestions for making
it work with column selections I'd appreciate hearing them.
Strangely enough replacing each non-CR/LF character with a single
character like 'x' works for column selections, but replacing with
"$1" doesn't - that is, it seems to insert unwanted line breaks when
doing this.
Thanks,
Chris
In a PHP file, embedded code followed by punctuation or digit fails
to close scope.
For example:
<h1><?php echo $title ?><h1>
Control-Shift-P just before ?>< produces:
text.html.basic
source.php.embedded.line.html
Control-Shift-P between ? and >< or between ?> and < produces:
text.html.basic
source.php.embedded.line.html
keyword.operator.comparison.php
...and scope continues to be 'source.php.embedded.line.html' until it
hits a ?> not followed by punctuation/digit somewhere in the file.
If I put whitespace or A-Za-z after the ?> (which I can't do in some
cases, like in a filepath), the source scope closes, but its still
says 'keyword.operator.comparison.php'. Same thing happens in a multi-
line embed immediately followed by punctuation.
The HTML language bundle has a comment about "match only multi-line
PHP with leading whitespace", but even when I make the embedded php
multi-line with leading whitespace, it still fails to close without
trailing whitespace, et al.
Very annoying for me since I use different syntax highlighting for
source and text in the same document. Tried googling mailing list
archives, couldn't find another mention of this.
Ashley
Hi all,
I'm new to TM and trying to implement a Command that fills the
current selection with a character. Right now I have a simple program
that replaces every character in the current selection with a space
character (but skips CR/LF), so far so good.
main()
{
char *x=getenv("TM_SELECTED_TEXT");
char c=32; /* Space character - this is what I'd like to be able to
replace at invokation time */
for ( ;x && *x;x++) putchar((*x==10 || *x==13) ? *x:c);
}
Now I'd like it to fill the selection not just with a space, but with
a user-entered character...
Ideally I'd like to:
1) select an area of text
2) press ^F (or whatever)
3) get a character from the keyboard
4) use that character to fill the selection
How do I accomplish #3 above?
Thanks for any pointers,
Chris
I am using the latest version, and have been using it for a month or two
now.
"Latest beta build of TextMate is 1324.
You are using build 1324."
On 18. Feb 2007, at 17:05, Ulai Beekam wrote:
>To be more precise, I just found out it doesn't just happen when I press
>Cmd-R twice on a short interval. It seems to just happen now and then. But
>when it happens, if I press Cmd-R it just works fine. :S
What version of TextMate? Try upgrade to cutting edge (preferences ?
software update), there previously was a problem with comparing the
date stamp of the resulting PDF to the source file.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi,
Using textmate SVN I can't really see how to easily perform a project wide
commit that including picking up any new files which were created (e.g. from
generator) so they are (a) included as files to be versioned and (b) then
committed as they'll be in the commit list?
Any suggestions? (don't want to have to manually work out which files
aren't in scope for versioning and add them one-by-one).
Thanks
Greg
Hi there
I didn't use LaTeX for some time with TM and started to use it again
today. I noticed the bibliography completion stopped working. I
remember some message by Haris on the list about removing an
environment.plist file which was necessary once. So I removed the
file but didn't use LaTeX until today. Now when using escape in a
cite scope, I get a spinning beach ball and I have to kill the
command via Command-. . If I use Alt+Esc I also get the spinning
beach ball and after killing the command I get this error message:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:84:in
`parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `map'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `parse_bibfile'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
193:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
191:in `call'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
163:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `each'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
161:in `each_pair'
... 6 levels...
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
153:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
196:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
23:in `get_citations'
from /tmp/temp_textmate.vAzA1V:8
}
Another thing, which stopped working, is the template insertion
command. When I write 'temp' and hit tab I get the following error:
sh: line 1: ls: command not found
/tmp/temp_textmate.NvRU8j:14: undefined method
So could someone please update me on the current way of making the
Bib-completion and template insertion work (variables, plist-files,
or similar) and/or maybe add it to the LaTeX help-file? I'm updating
my bundles via svn so I should have the most recent commands etc. I'm
also using the latest cutting edge build of TM.
Big Thanks in advance!
Best. Oliver
The blogging bundle image_upload method creates a tag that doesn't
validate. It is missing a slash before the closing bracket.
The diff with http://macromates.com/svn/Bundles/trunk/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb is:
--- - 2007-02-18 18:45:49.000000000 -0500
+++ /dev/fd/63 2007-02-18 18:45:49.000000000 -0500
@@ -719,7 +719,7 @@
height_width = %Q{ height="#{height}" width="#
{width}"}
end
end
- print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}>}
+ print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}/>}
end
else
TextMate.exit_show_tool_tip("Error uploading image.")
To be more precise, I just found out it doesn't just happen when I press
Cmd-R twice on a short interval. It seems to just happen now and then. But
when it happens, if I press Cmd-R it just works fine. :S
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
You should have a look at the paste service that the cakephp group built
http://bin.cakephp.org/
with this you can mark pastes to save (if you don't they last for 24
hours) then people can edit with suggestions and changes. It's
actually pretty useful. And at one point I had it hooked up to
textmate
Sam D
Hi,
I am using TextMate with TeXniscope to do my LaTeX document as was described
in the LaTeX screencasts, or at least, I'm trying to.
Whenever I do two times Cmd-R quickly in a row, I get this error:
Error: PDF file not written to disk
Why is this? It looks like I cannot do two Cmd-R too quickly because it
seems that when I press it the second time it is still reading or writing in
that PDF file or something. How can I fix this behaviour? This behaviour
does not appear in TeXShop, where I can hit Typeset as many times and as
quickly as I want.
But I still don't really want to use TeXShop anymore because TextMate offers
much quicker editing, so moving back to TeXShop is not really a real
solution.
Thanks in advance,
ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
It seems to me that a common problem with paste type services such as
pastie.textmate.org is that it's a one-way street, which is strange
considering a lot of people who use the pastie service are after
solutions to problems in the text they have pasted.
I came up with the idea of running a service which would allow people
to connect to a server, submit the text and then give them a unique
ID. This ID could then be quoted to other users and used to connect
to the server remotely, grab the text, and view the paste using a
TextMate command. Any changes made to the original could then be
saved and re-submitted to the server. The original paster can then
query the server at any time to review any changes made to the
original along with the names of the users who have made the amendments.
I considered starting on a project which does all this using a fancy
tm_dialog UI, but besides being a cute idea I wondered if this is a
solution seeking a problem rather than something people would
actually use?
Hi,
I'm just playing aroung with TextMate's Subversion bundle. I'm
totally new to this, so please forgive me if I'm missing something
obvious or leaving out important information.
Martin Ott's svn client is installed. svnX is installed, too, and I
can browse the repository there.
In Textmate, I selected "Check Out...", entered the URL to the
subversion server (after starting a VPN connection) and all the files
were downloaded to my hard disk. Fine. :-)
But then I changed a file, selected "Commit" and TextMate said:
svn: Commit failed (details follow):
svn: Can't get password
So what am I doing wrong?
Kind regards,
Tobias
Hello to everyone and to our Lord Allan Odgaard (and welcome back from the
vacation).
I have a question. Can we get a very easy feature in TextMate that allows,
when that feature is checked (with checkbox), that when we quit TextMate,
the documents that were open when we last quit TextMate will *not* open the
next time we load TextMate? I find this to be unintuitive behaviour because
I often quit textmate and do different things. One day HTML. The next day on
some C code, so the next day I don't want those HTML docs to open up in
front of me.
Regards,
Ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hello,
In JavaScript, I'd like to be able to fold not only functions (that
works great) but also "variables" as declared in json for example.
function Bookmark(p_idx, p_type, p_text) {
this.index = p_idx;
this.bookmarkType = p_type;
this.text = p_text;
}
folds great, but:
var UNITS_METRIC = {
name: "metric",
distance: " m.",
speed: " m/min.",
weight: " kg.",
pressure: " bar"
}
does not fold when JavaScript language is selected but folds when
HTML language is selected!
Wouldn't it be possible to add a "rule" to be able to fold such
variables in JavaScript language as it works in the HTML language? How?
Many thanks for your help.
/p
it seems like the "edit in textmate" does not support page names with
(e.g. german) umlauts. when saving and doing an apple+w the contents
do not get pasted back to safari. i think the problem must be related
to the umlauts, since it works with non-umlaut html form documents.
will this be fixed in the future?
> Harold,
>
> Are there any files in the directories ~/Library/Application
> Support/TextMate/ or /Library/Application Support/TextMate/? It's
> possible that you have an older version of the Support directory in
> one of those folders. If you do see a Support folder in one of
> those directories, it is OK to delete it. Restart TextMate and see
> if you still get a hung PyMate when running the test script.
1. I have a directory: /Users/harry/Library/Application Support/
TextMate which contained 3 subdirectories:
Bundles Pristine Copy Support
a. Bundles directory merely contains an extra command added to
Python.tmbundle (Run Script (PyMate) version 2.tmCommand based on
using the pymate.py script)
b. Pristine Copy directory contains bundles that have been downloaded
via svn and installed ... to be safe (from conflict) I moved/deleted
all these bundles.
c. Support directory seemed to be empty; only contained a hidden .svn
subdirectory
2. After deleting the Support directory (/Users/harry/Library/
Application Support/TextMate/Support) as you suggested ...
I ran the test python script using PyMate ...
but the latest (bleeding edge) version TextMate Version 1.5.4 (1360)
still gets hung ...
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
3. whereas a previous version, TextMate Version 1.5.4 (1324) works OK
(cut and paste from PyMate screen; excess blank lines deleted):
HIDE STDERR SHOW STDERR
Python 2.5.0 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
4. as does TextMate Version 1.5.2 (1103)
Python 2.5.0 - PyMate r3226
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
5. These older versions use $TM_BUNDLE_SUPPORT/pymate.py rather than
$TM_BUNDLE_SUPPORT/PyMate/pymate.rb
I can more or less make sense of the pymate.py code but the Ruby code
pymate.rb appears enigmatic.
so far it is a mystery which may have to go on the backburner ...
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
Hello,
I'm a new textmate user.
And starting to try to use textmate for this simple website I have to edit.
I'm trying to use the tidy bundle function and it's not working as I
think it should have.
I an html page on the screen (actually it's file.php) and when I press
Ctrl+Shift+H I get a new blank screen ;)
No errors, nothing.
Am I missing something?
For what it's worth it has one single <?php include(); ?> in it and
about 500+ lines of html.
Is that the problem?
Thanks in advance.
I cannot commit a file to my repository using the subversion bundle.
When I try I get this error message:
Couldn't find /usr/bin/ruby
We need Ruby to proceed.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/opt/local/bin
/opt/local/sbin
/Users/phurley/bin
/usr/local/bin
/sw/bin
/sw/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
>From the bash prompt:
which ruby
> /opt/local/bin/ruby
ruby -v
> ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.2]
which svn
> /opt/local/bin/svn
svn --version
> svn, version 1.4.2 (r22196)
> compiled Jan 9 2007, 01:05:16
(snip)
FYI I can add files to repository without a problem. Any suggestions
would be welcome,
Thanks
pth
> Harold,
>
> Can you post the specific error you are encountering? Do you scripts
> not run at all? Can you post a minimal example script that isn't
> working?
>
> I am able to execute the following script without any problems using
> the latest PyMate:
>
> #!/usr/bin/python
> x = input("Foo:")
> print x
For example, if I put your script above in a file called test_input.py
1. It will run successfully over the terminal (directly and via the
Run Script (Terminal) command).
2. However, if I use the Run Script (PyMate) command (based on
pymate.rb) I get the following lines printed:
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
and no dialog window for input, the task keeps running ... a ruby and
python process hang around ... until I interrupt it.
3. If I use the previous version of PyMate based on pymate.py I get
an input dialog and successful completion of the script.
I'm running Mac OS X 10.4.8 on a MacBookPro (Intel Core 2 Duo) 2.33
GHz with 2GB RAM and 4MB L2 Cache (per processor).
Assuming ruby from /usr/bin/ruby is being used that is ruby 1.8.2
(2004-12-25) [universal-darwin8.0] as indicated by the ps line:
/usr/bin/ruby -- /Users/harry/Library/Application Support/TextMate/
Pristine Copy/Bundles/Python.tmbundle/Support/PyMate/pymate.rb
If I use python 2.5 (installed in /usr/local/bin/python), same deal ...
Any suggestions?
Harry.
Hi.
http://pastie.textmate.org/40039 is parsed wrong by my textmate
installation. I'm running the latest version from svn. Seems to have a
problem with $<delim> under qr. works fine with m//.
--
With regards
Marcus Ramberg
It appears a bug has crept in the Python bundle for the Run Script
(PyMate) command in TextMate ...
All appears well with the following version which correctly runs
interactive Python scripts (requiring a dialog):
Version 1.5.4 (1324) [2006-11-02: REVISION 1324] Python 2.5.0 -
PyMate r5848
uses the code:
# Save file, use tmp-file if there's no filepath.
[[ -z "$TM_FILEPATH" ]] && TM_TMPFILE=$(mktemp -t pythonmate)
: "${TM_FILEPATH:=$TM_TMPFILE}"; cat >"$TM_FILEPATH"
TPY=${TM_PYTHON:-pythonw}
"$TPY" "$TM_BUNDLE_SUPPORT/pymate.py" "$TM_FILEPATH"
rm -f "$TM_TMPFILE"
However the following (bleeding edge) version
Version 1.5.4 (1360) [2007-02-13: REVISION 1360] PyMate r6190 running
Python 2.5 (python)
uses the code (Ruby in a Python bundle???):
export TM_RUBY=$(which "${TM_RUBY:-ruby}")
"$TM_RUBY" -- "$TM_BUNDLE_SUPPORT/PyMate/pymate.rb"
and only works for non-interactive Python scripts (I'm partly
suprised it works at all).
Should this code change have happened between versions or is there a
glitch.
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
I think the reason you used hg status $WorkPath is because it limits
the status to the current sub directory of a hg repository.
i.e.
Let's say project/ is a hg repo
cd project/
hg status # This shows status for everything under project/
cd project/subdir
hg status project/subdir # This shows status for everything in subdir
Now...if this is GOOD or BAD behavior is up for discussion.
Personally I like the former better, I usually want to see the status
of all files in my repo.
What do you think?
Yi
Hi,
Using the LaTeX mode, I had &'s appear at the beginning of rows in
tabular environments, which abviously breaks the table. I don't really
know how what triggers this, but I think it happened after upgrading
textmate's bundles from svn...
any idea ?
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
Hello folks,
I'm using Mac OS X 10.4.8 OS, I installed Subversion using 4 different
methods with no success (Using Fink, OpenDarwin, directly compiled it,
and using Matthew E. Porter's Package)
With all of them, when I try to checkout source code from anywhere
(RoR, TextMate, ...) with following command:
svn co --username anon http://macromates.com/svn/Bundles/trunk Bundles
It give me an error like:
subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: REPORT of '/svn/Bundles/!svn/vcc/default': 400 Bad Request
(http://macromates.com)
May someone please help me to find the problem?
Did I forgot anything? Or is there a bug with SVN?
Thanks in advance,
Hello all,
I'm writing a command to mimic eclipse's semicolon insertion. In
Eclipse, when you press ';' it looks for a semicolon at the end of the
line; if there is one already there, you get a ';' at your cursor (as
if you had typed it normally); if not, it puts it in the proper
position at the end of the line, and your cursor is at the end of the
line.
With the following command, TextMate will put the semicolons in the
desired place, but the cursor doesn't move, which is annoying.
input: selected text or line
output: replace selected text
activation: key equivalent ';'
scope: "source"
#!/usr/bin/env ruby
$t = STDIN.read
if $t =~ /\A(.*)\;\Z/
$c = ENV['TM_LINE_INDEX'].to_i
print $t.insert($c, ';')
else
print $t+';'
end
Any idea how to move the cursor? Snippets handle cursor motion, but
I'm not sure I can get the semicolon to go to the right spot. Ideas?
Tricks?
Best,
Kevin
Sorry, if this topic has been brought up before, but I was absent
from the list for a while.
The LaTeX templates extract the name and address from the file ~/
Library/Preferences/AddressBookMe.plist.
Now, I have recently moved and thus changed my address (also in
Address Book.app) but the AddressBookMe.plist is not updated. Indeed,
if I delete the file it is not re-created at all. Any ideas? Is this
due to an update of Apple's Address Book application. Can the content
of my own Address Book entry be retrieved in some other way?
Thanks,
Berndt
Hello,
First time poster to the list, please be gentle!
I installed the mercurial bundle from svn and it is a wonderful tool,
however some parts do not work correctly. For example, viewing the
status of a repo does not work, I get the following error message:
Traceback (most recent call last):
Revert
Diff
File "/opt/local/bin/hg", line 12, in ?
Revert
Diff
commands.run()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3000, in run
Revert
Diff
sys.exit(dispatch(sys.argv[1:]))
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3223, in dispatch
Revert
Diff
return d()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3182, in <lambda>
Revert
Diff
d = lambda: func(u, repo, *args, **cmdoptions)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 2371, in status
Revert
Diff
files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py",
line 139, in matchpats
Revert
Diff
opts.get('exclude'), head)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
367, in cmdmatcher
Revert
Diff
return _matcher(canonroot, cwd, names, inc, exc, head, dflt_pat, src)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
454, in _matcher
Revert
Diff
name = canonpath(canonroot, cwd, name)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
348, in canonpath
Revert
Diff
name = os.path.join(*rel)
TypeError: join() takes at least 1 argument (0 given)
Any clues?
Thanks,
Yi
what do I have to do to correct this error (when listing installed
bundles in bundle GetBundle:
Couldn't find svnversion
Locations searched:
/Users/boldfish/Library/Application Support/TextMate/Pristine
Copy/Bundles/GetBundle.tmbundle/Support/bin
/Users/boldfish/Library/Application
Support/TextMate/Support/bin/CocoaDialog.app/Contents/MacOS
/sw/bin
/sw/sbin
/Library/Frameworks/Python.framework/Versions/Current/bin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Users/boldfish/Library/Application Support/TextMate/Support/bin
TIA
Hello All,
I have been using the sshfs to connect to one of my servers and while
Finder seems to do a particularly bad job when the server goes down
and I don't eject properly, TextMate seems to do an even worse. Is
this just me or is anyone else seeing this.
As soon as the server goes down TextMate seems to start going into
wait mode for long periods of time. Eventually I just get frustrated
and do a Force Quit.
Thanks!
--
~Tyler
Hi,
As it's my first post, let me thank all the macromates guys and the textMate
community for the great work done already. So, Thank you all!
My work led me to edit my own (LaTeX) templates, and for the first of them,
I pressed an uncountable number of times that precious "Test" Button, to see
if everything was OK. I noticed a few things:
1) In my opinion, there should be a kb shortcut for that button.
2) Bug: It happened sometimes that the modifications made to the script
and/or to the template itself were not taken into account. It generally does
not happen at the beginning of the template building session, but once that
famous "Test" Button had been pressed a number of times.
Notice that closing/reopening the bundle editor window solves the problem.
It's up to you, now!
Thx,
Xavier C.
Hi,
is there a possibility to change or turn of the smart quote function
of textmate?
Since I need to write some german TeXt i would like to have the
„German Anführungszeichen“ instead of “English quotes”.
Having a mac gives me the great advantage of typing those quotes but
TextMate does to much here and generates „“” which
is a bit annoying.
Any suggestions?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
Does anyone out there have easy access to a PPC machine where they
could compile app-cmigrep from godi (it's an OCaml thing)? I'd like
to include it in Support/bin as a universal app to support the new
swank code completion for OCaml.
-David
Is anybody using TextMate to write Docbook? If so, I'd appreciate any
information about how to set up the tools to manage the various XSL
transformations.
Thanks,
Noel
--
Noel Rappin
noelrappin(a)alumni.brandeis.edu
I'm new to TextMate and am already recommending it to my students, but I don't
understand the conventions for Scope Selectors.
Let's say I want to color all div tags in HTML red. I've tried variations on
"entity.tag.div" in Prefs > Fonts & Colors without success. I've a basic
familiarity with RegExp, and it looks like Bundle grammar supports RegExp, but I
can't see where syntax coloring might be defined in the HTML Bundle either.
(For the record, I also can't figure out how to duplicate a Theme--say, if I
want to tweak a version of the default Theme but keep the original too.)
Thanks for any help getting me going in the right direction.
jon
I just downloaded and installed the latest "cutting edge" version of
TextMate. Just after I restarted TextMate to bring up the new version
however suddenly I faced a kernel panic, and had to cold-restart my
computer.
Is there anyone else who experienced something like this?
Anyone,
In version (Version 1.5.4 (1360)) of textmate there is a new
XHTML1.1 template. The problem I now have is that when you run Tidy
from the HTML bundle on a XHTML1.1 document it converts the document
to XHTML1.0 strict. This is a little odd. Additionally it does not
do this well because the resulting XHTML1.0 Strict document is not
valid. Iit leaves the (version="-//W3C//DTD XHTML 1.1//EN") attribute
from the original XHTML1.1 document templet. So, you end up with
some odd non-valid document. I love html tidy but maybe I'm doing
something wrong. I don't know how to change it so that HTML tidy is
nicer to XHTML1.1 documents. The XML bundle version of tidy works
well for now, but its not that same because I have to select in
manually. I can't just press (opt, shift, H).
If anyone has fixed up how they have Tidy cleanup an XHTML1.1
document please share.
Thanks you for your help!
- Ethan
i must be missing an obvious thing here, but whats the easiest way to
find the path to the current document you are editing?
i know of "reveal in project" but the full path? i would expect a
right click to bring up some way to find this.
interestingly running pwd as a command inside a doc returns "/"
using ^S to search, opens up a search bar. it would be neat if this
were like a command input area ala vi ... to run commands in the cwd.
thanks!
/dc
(counting the days for japanese support in TM!)
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
--
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
The current situation
A major goal of all the scoping standardizationstuff we do in the
syntaxes is to make it really easy so make a single theme that can be
used for any language.
Unfortunately, the reality is that languages are really complex and
it takes work to make a theme look good in more than a few languages.
And then more work to keep that theme looking good as the languages
syntaxes are updated and improved.
So, what do we have?
We have a handful of deep themes and a whole hugh mess of really good
looking shallow themes.
the deep themes are constantly updated and work in most every
language. The shallow themes are usually never updated and only work
in a few languages and break on most edge cases like deeply nested
embedded source.
The future
Themes are going to be even more important in the next major release
of TextMate. Themes will be more than just style, they will really
start making inroads into real functionality.
We'll be able to color things like the current selection, the current
line, merge conflicts, tab triggers, placeholders, etc... probably
even more.
[see http://pastie.textmate.org/39665]
This means that themes are going to become much more important to the
way you use the application than ever before.
Which means that it's going to become that much more difficult to
make a theme that really works for more than a few people and keep it
updated.
Tweaked Theme Versions instead of new Themes!
I think we need to move away from a Theme-as-style type of mentality
and more to a Theme-as-functionality type of thinking.
I've put a lot of work into my Brilliance Black theme, but frankly a
lot of people think it's really ugly.
Why is it so ugly? Mostly just my color choices. People all have
different tastes.
Also, it's totally unusable on a dark CRT or LCD.
I've made a few versions of my Brilliance Black theme. Brilliance
Dull, Brilliance White, Brilliance BBS, etc…
The advantage of doing a version of an existing deep theme is that
you get a new style without having to do all the coding of the random
edge cases. It looks pretty without losing any theme-based
functionality.
ShapeShifter
Have you ever user ShapeShifter? There are all these OS themes that
you can use to change the look of the chrome on all the windows and
dock and whatever else on your system. There's also a new tool you
can use to make a tweaked version of an existing theme. You can apply
core image tweaks to all of the images in the theme and save out a
tweaked version of a theme.
I think TextMate should do the same thing.
Start with a good deep base theme like Twilight and tweak the colors.
Then save the recipe of how you tweaked that theme.
The advantage is that when Twilight is updated, all of your tweaked
themes based off of it are also updated since they're just recipes
instead of actually different themes.
And you can make really creative new versions of themes without
having to do all the work of figuring out all the crazy edge cases
and junk.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
http://blog.circlesixdesign.com/download/utw-rpc-autotag/
The Autotag bundle for Wordpress\TM has been updated to include a new
interface, better fuzzy matching, progress reporting, header endpoint
checking and more. The bundle automates tag suggestions and
insertions in blog posts for Wordpress blogs using Ultimate Tag
Warrior. It requires the UTW-RPC plugin available at the above
address, which adds xmlrpc capabilities to Ultimate Tag Warrior
without having to hack any files.
Thanks,
Brett
hello list,
i was searching this list and also the web for an easy way to use the
diff bundle or how to apply a diff to a whole directory. strangely
this does not work as expected.
i am having a quite large diff file that should patch various files in
a directory in several sub directories. if i am trying
Bundles->Diff->Apply Patch to Files...
and selecting the base directory from where it should patch, strange
things happen.
The Output for all files is the following:
File to Patch
Skip this patch? [y]
Skipping patch.
is there anything wrong with the current diff bundle? or is it maybe
not working with more than one file to patch?
thanks for the help,
mz
Hello,
I have problems with tm_dialog. I get this message, when I start TextMate:
--snip--
2007-02-06 23:19:17.132 TextMate[6159] *** -[NSBundle load]: Error
loading code /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog for
bundle /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin, error code 2 (link edit
error code 0, error number 0 ())
--snap--
And it doesn't work with the bundles like Blogging (Fetch Post) or
TextMate (Paste online).
Thomas
Hello all,
If you have a chance, it's a fun read and great responses from Allan.
http://nslog.com/2006/11/08/textmates_undo/
In my opinion, Erik is just upset that he did not get a free license
from Allan. :)
When working on a LaTeX document, folding is
a superior way of focusing on a part of the document,
much better than splitting the document into
pieces and \include'ing them. So I use it a lot.
But when I unfold a section of my paper to
edit it, only the first level is unfolded; inside it.
the nested levels remain folded. I understand this
is exactly how it is supposed to work, but I feel
for LaTeX it would be much better to have the
possibility to unfold a section completely, down
to the deepest level, with only one keypress.
I have a much better view of the section I'm
working on if nothing is hidden (it's different
from coding I guess).
Is there a way to achieve this with the present
folding system?
Thanks,
Piero
Hi guys,
I'm trying to build a template which will consist of an HTML file and
a CSS file (eventually a number of CSS files in a separate directory)
but I'm having a few problems. I tried duplicating the Objective-C
singleton template and essentially copied and pasted the code with a
few changes. This is what my template code looks like now:
export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
TM_HEADER="$TM_NEW_FILE_BASENAME.css"
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <html_in.html >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <css_in.css >"$TM_HEADER"
fi
This creates the HTML file but not the CSS file. Or at least it
didn't until I reloaded the bundles and discovered "untitled.css" had
appeared in the template file list alongside html_in.html and
css_in.css. Very odd! I did some more reading and found a post in the
mailing list archives (http://article.gmane.org/
gmane.editors.textmate.general/8424/match=templates+multiple+files)
which Allan mentioned I need to edit an info.plist file.
Unfortunately I've not been able to find this file anywhere. Could
anyone suggest where it might be and what I need to edit?
Eventually I want to build a template which looks like
index.html
\stylesheets
master.css
standard.css
Would this be possible and if so, any pointers on how I might go
about it?
Cheers!
Alastair
I'm trying to fetch a post from a blog and receiving the message that
my dialog tool is at v8 while my plug in is at v5 - anyway to remedy
this problem without having to use svn?
Jose
This morning I posted a message using the Blogging bundle to a Typo
blog hosted on my desktop machine. The headers in the initial post
were pretty minimal: Title, Blog, and Format. As usual, when the
posting completed, the document was updated with several new header
fields. The Date field came back as
-4713-12-31 18:00:00 -0600
which is, pretty clearly, not today's date. At first, I didn't notice
this, and when I edited the message and tried to repost it I got an
error message:
Error: Internal server error (exception raised)(2)
Fixing the date to a valid value solved the problem, but I'm
surprised that an invalid date was produced in the first place. I've
posted only a few messages to this blog with the Blogging bundle, but
have never had this problem before. Any ideas on where it comes from?
My version of TM is 1.5.4 (1349); Typo is version 4.0.3. I can't find
a version number for the Blogging bundle, but Blogging.tmbundle has a
modified date of November 21, 2006.
--
Dr. Drang
When you edit bundle Commands/Macros/etc you have a final
trigger. Why not to add:
??
Close File should always Discard the Output and
Open File should always have None Input
but I find no other problems.
Sorry if I am posting an out of topic, but this problems raised to
me when hooking the save process to hold a saved file history stack:
------------- Command, Cmd-S (pre: SaveFile)
#!/usr/bin/env ruby
H = "/Users/me/.TM_LastFiles"
files = []
last = ENV["TM_FILEPATH"]
files << last
if FileTest.exist?(H)
IO.readlines(H).each {|l|
if l != last
files << l
end
}
end
f = File.new(H, "w")
files.each {|l|
f.puts l
}
f.close
puts files
--------------------
Why it always ignores the "if" and adds always the current file to
the files array??
????
Sorry for the text dump but I received this error after trying to run
a few lines of ruby. I'm fairly new to *nix which I think might be
related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
>>> ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
I tried running a simple puts, too and got this.
Jose
The "folding away ugly docstrings" makes me wonder, would it be
possible wire up a command that folds elements in the document based
on their scope?
It's a bit different than folding on their nesting level, but I think
can be pretty handy. Especially for things like (ugly) docstrings :-)
Consider it a future feature request if it can't currently be done.
Thanks,
-steve
Hi everyone... I catalog my external media using the 'tree' command
and this generates a file such as the one attached.
Does anyone know of a bundle developed to allow folding for this?
Benjamin Steigmann
blissentia(a)mac.com
Hi, I have a question. When I installed textmate, it did not create
an application support folder. Why might this be?
Is impossible to access "Edit -> Indent line" since it is binding to
Cmd-Opt-]
On the other hand in Sp keyb. you must press Opt fot access ] or
[ keys....
] = Opt-]
actually the ]-key contains the *+] chars, * is with Shift, + is the
default and, I've said ] is with option.
then if you press Cmd-Opt-] you always get "Edit -> Shift right" as
if you've pressed Cmd-]
Hi,
Allan seems to be back, so here's a question: Will there be a
maintenance release soon that contains a fix for the endless loop
when editing python?
I know this is fixed in svn, but I prefer to use official released
stuff instead of svn versions... :-P
Bye,
Nico
Hi,
I was wondering what the best approach to enable this functionality
would be:
I use reStructuredText as the format of my doc strings in my python
files, and so I'd like to enable the reStructuredText snippets,
macros, etc. to fire in my python """ ... """ strings.
The scope of these strings in the Python files are:
string.quoted.double.block.python
Should I just add this scope to all of the commands in the
reStructuredText bundle, so all of the scopes for those commands
would be changed to:
text.restructuredtext, string.quoted.double.block.python
Or should I change the Python grammar to somehow set those two scopes
for the """ ... """ string matching pattern (I'm not sure if you can
do that, though).
Thanks,
-steve
Hi Everyone,
I have the strangest problem that I'll be darned if I can figure out
how to fix. When I double click a word, it selects all the words left
and right until it hits some sort of non-text or non-whitespace
character. So when typing normal text it selects the entire sentence
all the way left and right until a period or the end of the window. In
C coding, it selects until some sort of other style character " [ () ]
* _ " etc. I figured out how to list TM_CURRENT_WORD and it is not
just a word, but the whole sentence so clearly something is screwing
the way that gets parsed. Its really quite annoying and I'm pretty
sure it didn't always do this.
Any help would be greatly appreciated. I've googled around a bit,
including in the list and haven't found anything useful.
cheers,
Max
------------
Max Rietmann
mar76(a)cornell.edu
Is discontiguous text selection possible with TextMate?
On a somewhat related note (this is a long shot...), does anyone have
any idea what the -[OakTextView setMarkedText:selectedRange:] method
is supposed to do? I can't seem to have it make any effect on my
OakTextView...
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
I have been using different approaches to Transpose chars and
transpose words in AlphaX for a long time.
The usual way is really annoying, it swaps the chars around the
cursor. In the Cocoa (emacs-like) version it is also not symmetric:
if you do it two times the result is not the original (!)
Usually you notice you made a mistake after you have written the
chars. It is annoying to need to position yourself between the last
two chars to swap them.
The approach I use (and many Alpha users) is
transpose the last really chars, though spaces or parenthesis, etc
could be in between the cursor and the last two chars!
transpose word in this way is even better, since it also can swap
function arguments, etc.
Here I send the source for this to commands:
---------------------------- transpose chars ^T (v)SelecText|line (^)
ReplaceSel
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/^(\w)(.*)(\w)$/u, '\3\2\1')
print sel
exit 0
end
left = ENV['TM_CURRENT_LINE'][0, ENV['TM_LINE_INDEX'].to_i]
right = ENV['TM_CURRENT_LINE'][ENV['TM_LINE_INDEX'].to_i .. -1]
left.gsub!(/(\w)(\W*)(\w)(\W*)$/u, '\3\2\1\4')
print left + right
----------------------
---------------------------- transpose chars ^-Opt-T (v)SelecText|
line (^)ReplaceSel
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/^(\w+)(.+?)(\w+)$/u, '\3\2\1\4')
print sel
exit 0
end
left = ENV['TM_CURRENT_LINE'][0, ENV['TM_LINE_INDEX'].to_i]
right = ENV['TM_CURRENT_LINE'][ENV['TM_LINE_INDEX'].to_i .. -1]
left.gsub!(/(\w+)(\W+)(\w+)(\W*)$/u, '\3\2\1\4')
print left + right
--------------------------------
I use a lot a command that I call "quickSearch" that look for the
next text equal that the one that is selected. It is very useful
since you can find quickly var declarations, etc. only selecting the
word (you'll need only the keyboard!) and press, for exmple Shift-
Ctrl-Opt- -> or Shift-Ctrl-Opt- <- (arrow keys) for
quickSearchBackward.
The only way I've found is building the macro:
copySelectionToFindPboard:
findForward:
or the analogous for findPrevious:
The problem is with this simple action I destroy the FindPboard and
this is an unnecessary, I think, colateral effect.
Have s/o solve this not destroying the FindPboard?
Another:
I love to reread the last closed file in a time sorted (stacked)
way: last closed file, first one to open. This also allows me to
open several files (and close) them quickly.
I used to use Ctrl-Opt-O for that process in AlphaX. I can't find
the way for doing this with TM. I think you should save in a file
the history of open files, or so... TM haven't memory variables, in
any way. Alpha has an embedded interpreter inside it and then read
many many procs and variables at start and is easy to refer to them
and also has open-hook and close-hook procs that make this stack
very easy.
Any idea?
-- juan
Hello everyone,
I'm new to many things here -- textmate, regular expressions, etc,
etc. so I hope this isn't too far off topic for this list (apologies
in advance if it is). I'm trying to figure out how to do something
using find/replace. I have a long bibliography that was sent to me
as a single line of text. I'm trying to find a quick and elegant way
to insert line breaks between each of the individual citations.
Here is an example of the text I'm working with:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995. Bevirt, B. "Designing Hypertext Navigation
> Tools.'' Digital Information Group, National Center for Atmospheric
> Research web site: < http://www. schlucar/dig/bra.inb/design/
> navtool.D.html>. 1996. Chandler, P. and J. Sweller. ''Cognitive
> Load Theory and the Format of Instruction." Cognition and
> Instruction. 8: 293-332, 1991. Chandler, P. and J. Sweller. 'The
> Split Attention Effect as a Factor in the Design of Instruction."
> British Journal of Education Psychology. 62: 233-246, 1992.
I'm just figuring out how to use regular expressions (sorry, not a
programmer) and I've been able to successfully select the endpoint of
each of the citations using:
\d{4}\.\s
My problem comes about when I try to replace the space represented by
\s with a carriage return. I'm not sure how to structure this in the
find/replace dialogue. Is anyone willing to point me in the right
direction here? I'm hoping to end up with something that looks like:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995.
>
> Bevirt, B. "Designing Hypertext Navigation Tools.'' Digital
> Information Group, National Center for Atmospheric Research web
> site: < http://www. schlucar/dig/bra.inb/design/navtool.D.html>. 1996.
>
> Chandler, P. and J. Sweller. ''Cognitive Load Theory and the Format
> of Instruction." Cognition and Instruction. 8: 293-332, 1991.
> Chandler, P. and J. Sweller. 'The Split Attention Effect as a
> Factor in the Design of Instruction." British Journal of Education
> Psychology. 62: 233-246, 1992.
Thank you for any help you can offer.
--
j.
Is there any way to access the commands (API?) that are listed when
you build and then saving a Macro?
I think accessing them should make the programmer live really easier.
For example, you could send to TM, from an scripting program, a
sequence of such commands and TM could easily interpretate them.
-----
Juan
juanfc(a)lcc.uma.es
Hi
You're a thief! ;)
OK I did what you said and made some improvements to the Bundle. I
like to share what i did with others! Maybe you want to implant it in
the Bundle.
But in the meanwhile i have some problems here:
1. There are to main Forum Softwares out there which the people (and
me) use most. The one is vBulletin and the other is phpBB. These two
have slight differents in their way reacting to BBCode. For example
Lists and Links.
vBulletin writes a link like this:
[URL=http://www.examplesite.com]Please visit this great Page![/URL]
phpBB writes:
[URL="http://www.examplesite.com"]Please visit this great Page![/URL]
(with quoation marks for the URL)
How do i get rid of this problem? Or do i have to expand the Bulletin
Board Language for this to work?
2. This one is quite easy i hope ;) How do i make a submenu from
quite similar items? Like all the List items i want to appear in the
List submenu and so on.
Thanks for your help!
Zettt
Is there some way for telling TM to highlight the HTML "braces" like
<p> Lorem ipsum dolor sit amet, consectetur </p>
etc.
I think the way should be highlightPairs in Grammar, but why nobody
haven't do it yet?
(is it possible?)
Fellow textmaters,
I have been playing with the blogging bundle now for quite some time
and would love to see the following additions:
(I currently am at SVN revision 6430, my blogs are running Wordpress)
1. As I am writing un multiple blogs, I would really appreciate if
e.g. the category tab trigger would read my current post to see if
there is already a selection of blogs instead of asking me which blog
to post to, at the very least use a popup instead of the dialog (as
is done with the blog tab trigger)
2. Same goes for selecting categories… would there be a way to cache
the list of categories, maybe?
3. Is there a way to post drafts? Or, if not, is it possible to post
at future dates, so I can prepare and upload my next few posts
without needing to do copy/paste?
4. Is the common "linking" code progressing? e.g. if you insert a
link to a recent blog post (btw a great addition!) it inserts a HTML
link, but I am writing in markdown – so it is quite a pain in my eyes
to see the full clutter of <a> tags…
5. I very much love the "insert google lucky hit" functionality!
6. Image upload is soo cool!
Thanks again to all who are contributing to all those cool bundles!
Dan
Sorry if this is an obvious noob question, I've searched the help and
all the menus and can't find what I'm looking for, so I thought I'd seek
help here.
I'm in the process of "switching to a Mac" and currently weaning myself
off Topstyle Pro and so far I'm loving TextMate's workflow, one thing I
miss though is a way to move the cursor from the start of a section to
the end, e.g Topstyle allows for placing the cursor in a starting tag
pressing ctrl+M and the cursor will jump to the end tag (and back again
if you press ctrl+m again), it does this for {} in PHP as well and I'm a
bit lost without it, as it's the quickest way for finding those badly
nested tags...
I'm aware I can collapse and expand folds, but it's not quite the same.
is there a quick way to create this functionality?
or is it there already and I missed it?
Thanks in advance
;)
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
I can adjust my print font size by shrinking my display font size way
down, but is there another way? Or can you specify a default font size
delta between display and print?
Thanks
pth
I use the CTags bundle frequently. Thank you to its creator!! But I'm
having an issue now. When I press the key sequence to look up a symbol, the
file with the symbol is loaded in a new window, not as a tab in my project.
Why is this? It just started doing this recently.
Thanks,
Ernest
--
View this message in context: http://www.nabble.com/CTags-bundle-issue-tf3184686.html#a8839142
Sent from the textmate users mailing list archive at Nabble.com.
Hey folks. I'm testing out the tm demo for using with rails, but i'm
having a weird behavior on the Rails -> Go To file keystroke (command
option shift down).
It seems to work when I have a view file open, and will send me back
to a controller. But if I have a controller open, it does not
respond... could somebody sanity check me? (by not respond, I mean
the context window does not pop up).
Thanks,
Chris
When I typeset and view a LaTeX file I get this message:
The document file://localhost/RegionalEE.pdf couldn't be loaded
The LaTeX comes from a working copy of an SVN repo and consist of
multiple .tex files with a master document.
The error comes with PDFView and the standard viewer. But PDFView
eventually opens the correct file anyway.
I think it is related to the TM_LATEX_MASTER setting. But was is wrong with
TM_LATEX_MASTER=RegionalEE.tex
I just hope it doesn't have to include a hard coded directory.
Thomas
Howdy
When I do a pastie and hit escape at the tm_dialog thing
it does a pastie paste and IM's it to the first person on the IM list.
That ain't hip
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hi There.
Can anyone help me with the Blogging Bundle for Nucleus? I can’t get
it to work. I’m using:
“http://....@www../nucleus/xmlrpc/api_metaweblog.inc.php#2″
and "...server.php#2"
for the setup.
But nothing’s happening.
Thanks in advance.
Greetz Dink
If you're writing a bundle that needs its own nibs, but needs another
bundle's libraries, is there a way to determine if and where those
libraries are stored on the users system? A series of fallbacks,
perhaps?
I figured out how to do a fuzzy search using stemming, but had to
create a small bundle to pull it off. It depends, however, on the
endpoint functions in the blogging bundle, so at this point I have
blogging bundle's lib directory copied into the Autotag bundle. Is
this unacceptable?
Thanks,
Brett
hi there,
sorry if this question was asked before, but i am new to the list
and did not found something like that in the archive.
i would love to have highlightPairs for ruby in such a way that:
{ highlightPairs = (
( 'def', 'end' ),
( 'def', 'return' ),
( 'class', 'end' ),
( 'begin', 'end' ),
( 'if', 'end' ),
( 'if', 'else' ),
( 'else', 'end' ),
);
}
would render a result. but as the documentation states the
mechanism of highlightPairs is restricted to 'characters'.
now obviously we do not have (use) braces and such for blocks
in ruby.
my question is: how can i implement a mechanism which tells
me my current scope.
frank'annoyed by accidental parse errors'waldheim
p.s.: if this question is complete bogus please just
let me know by replying a 'rtfm'
--
\|/ ____ \|/
@~/ ,. \~@ "When you are going to die,
/_( \__/ )_\ a wombat is better than no company at all."
\____/ [waste of money, brains and time - wombat(A2DA482A)]
Hi all,
1. Currently, if you have some numeric data and do a math evaluation, for
instance
60 + 220 = 280
If you do a new evaluation on that line, the result is
60 + 220 = 280 standard_in) 1: parse error
SUGGESTION to the math maintainer: Might you alter the code to delete the
contents of the line or selection subsequent to an "=" character, before
evaluating?
2. The currency math commands, would it make sense to use the detected
prefix?
i.e., currently "$20 + $40" evaluates to "$20 + $40 = 60"
Perhaps it should evaluate to "$20 + $40 = $60"
Cheers,
Tim
____________________
Outside of a dog, a book is man's best friend.
Inside of a dog, it's too dark to read.
-- G. Marx
^> works properly and gives me <%= %> but when I press the sequence
again to remove the '=', I get "/tmp/temp_textmate.tG33ud:4:in" Is
this a known problem?
Sorry if this is a repost.
---Brian Yamabe
Ahoy textmaties-
Over the past few weeks,, I'll be working in text-mate when all of
the sudden it loses it's ability to access the system cut and paster
buffer. It will only cut and paste internally. At the same time, the
"Find in a single" page functionality fails too, although I can still
perform global searches ( and sometimes "in selection" searches.) Any
one had these problems?
Version 1.5.4 (1349)
Thanks!
Hello. I was looking for some help from some RE experts.
We have a lot (as in hundreds of files) of javascript code that uses
the following declaration format:
function
MyJScriptFunction()
{
}
Because the "function" keyword and the function name are not on the
same line, the Javascript parser cannot populate the function list
with functions declared like this.
Is there a way to tweak the Javascript bundle so that it recognizes
functions declared as described above?
----------------------------
B.C.
Hello,
I've been using the blogging bundle for the past month with no
problems. However, yesterday I came back to university and am now
inside the network, with all sorts of restrictions. When trying to do
any of the commands such as posting to a blog, getting the category,
or looking the current word up in google and linking (my personal
favourite) I get the following error:-
/usr/lib/ruby/1.8/timeout.rb:42:in `new': execution expired (Timeout::Error)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:419:in `start'
... 9 levels...
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:41:in `call_with_progress'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `dialog'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `call_with_progress'
from /tmp/temp_textmate.IbaTBN:45
I was wondering if anything could be done about it, if I needed to
change some preferences or something.
Thanks, Joanna