Hi,
This is a first post so if this isn't the right place or I didn't
search well enough, please let me know.
I know you can select the contents between brackets with
command-shift-B. However, this is the same key sequence that was
select for breakpoints when coding in Ruby.
I realize I could customize any way I want, but I figured I must be
missing a fundamental way or working in TextMate if this key option
was used for two different operations. Is there an easy trick to get
the one I want?
Thanks,
Mark
>I've been playing with the flex bundles for a while now. It looks like there are lots of different ways of building Flex at this
point. I've been using rake:
>http://theblogthatnoonereads.tunasoft.com/2007/04/29/building-flex-on-rails/
Yes, there's a lot of ways to invoke mxmlc/compc. Ideally I'd like to see just one build and one run command in the
ActionScript 3 bundle but don't want to impose a particular method. Currently there is:
mxmlc
Ant
fsch (A wrapper for mxmlc which caches the build in RAM and dramatically speeds up compilation - on my current project
mxmlc takes 20+ seconds, with fsch this comes down to 4-5 seconds)
Shell - project specific custom file.
I'd imagine that we could quickly add rake and yaml to the equation too. Does anyone have any suggestions of a way to handle
this? Would it be best to add the various build methods as templates then check for custom build scrips within a TM project
before defaulting to a basic build? Are there any other bundle developers who've solved a similar problem?
Cheers,
Simon
Hi-
I really like the handy getBundle bundle... but it's been giving me some
trouble. I've upgraded my own version of svn to 1.4.3. Unfortunately,
this is backwards-incompatible with getBundle's internal version, which
is 1.3. Since I've updated some of my bundles -- and the support folder
-- by hand, it's used my newer version, but then getBundle's svn can no
longer update them.
Perhaps getBundle should probably use the local svn if that's possible?
(Indeed it only uses the local svnversion, which will also cause a
mismatch.)
Yours,
Andrew
Hello,
I started using the GTDAlt bundle and I wrote a Quicksilver action in
applescript to append text to my inbox.txt. I know I can just use
Quicksilver's append text but I wanted to write something custom. The
problem is it is adding invisible characters between every letter.
Any ideas why?
Here's my script:
using terms from application "Quicksilver"
on process text theText
set this_file to (((path to desktop folder) as text) & "GTD:" &
"inbox.txt")
my write_to_file(theText, this_file, true)
end process text
end using terms from
on write_to_file(theText, target_file, append_data)
try
set the target_file to the target_file as text
set the open_target_file to ¬
open for access file target_file with write permission
if append_data is false then ¬
set eof of the open_target_file to 0
write theText to the open_target_file starting at eof
close access the open_target_file
return true
on error
try
close access file target_file
end try
return false
end try
end write_to_file
Warmest regards,
Graham English
Hi,
My File -> Open Recent menu item has stopped working. I click on an
item and it doesn't open. The File menu stays highlighted until I do
something else, and the document just doesn't open.
Does anyone know what would cause this?
Thanks,
James Frost
Hi,
I'm every so often on another location where i work on two screen's.
The only thing i always need to adjust once is to drag the symbol
window to the screen where the main textmate window is.\
Is there a config thing i can set, or is it a feature for TM2 ?
ps: the other windows (goto file, bundle editor, etc) also come in
the wrong screen
Regards J.
Hello there!
I just wanted to tell you that the GetBundle has now it's own page
and will get some improvements like turning it into a Plugin(maybe).
The new site can be found at http://projects.validcode.net/getbundle
Sebastian
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i have a small problem with the Latex Bundle. When using Typset & View
the popup window immediately closes after compile, if no error is
thrown. If a warning is displayed, you can only see that there are
warnings happening, but not where and why. Is there a possibility to
have the windows stay on screen in that case?
Bundle Version is... today.
Greetings
Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGImiC8RlGMqQ8m7oRAi2JAJwNnScqERFZMoJwpj/OZ7iwQ0azYgCgih+3
V086jilrx9abBJEFXvBevY4=
=BJt/
-----END PGP SIGNATURE-----
Hi!
I'm new to TextMate - and so there came up some questions which I've
gathered here. Thanks in advance for any tip!
Bye, Tom
How can I open the file at the cursor directly from inside the editor?
Can TM hilight the matching brackets? (I'm using "pastels on dark"
color scheme; if thats important...)
How do I make the cursor follow when I've scrolled some pages with
Ctrl-CursorUp/Down? "Standard-behaviour" is that the cursor stays
where I've started.
How do I find the next match (for the same criteria) when searching
incrementally with Ctrl+S?
Is there a simple calculator in TM?
I prefer bookmarks that I can access directly, e.g. something like ^1
for line 40, ^2 for line 88 etc - instead of F2. Can I have that with
TM?
Hi!
Skim (skim-app.sourceforge.net), a very neat and free pdf-viewer
supports now pdfsync and they set up a wiki with some instructions
how to enable Skim as viewer for pdfsync in Textmate. But I think the
instructions are more complex than they should be.
The site is: http://skim-app.sourceforge.net/wiki/index.php/
LaTeX_and_PDFSync
Isn't it even in the standard-install of TextMate only necessary to
set the Shell Variable TM_LATEX_VIEWER to Skim?
Niels
I fully expect someone to point out that this already exists :)
I typically move between tabs using Cmd-Opt-Left and Cmd-Opt-Right.
Typically I try to arrange the tabs so that the set of files I'm
actively switching between are adjacent. If Cmd-Opt-Ctrl-Left and Cmd-
Opt-Ctrl-Right moved the current tab to the left or right I could re-
order the tabs as part of navigating to a different tab just by
holding Ctrl down.
Say I have four tabs:
[*F1*] [ F2 ] [ F3 ] [ F4 ]
I'm on F1 and I want to go to F3. I'd also like F1 and F3 to be
adjacent to each other because I'm going to be switching between
them. So Cmd-Opt-Ctrl-Right does
[ F2 ] [*F1*] [ F3 ] [ F4 ]
and then Cmd-Opt-Right does
[ F2 ] [ F1 ] [*F3*] [ F4 ]
--
Andy Armstrong, hexten.net
Hi!
Firstly, Textmate is a fantastic text editor! I use it all the time,
and it constantly amazes me with something new and clever :-)
Anyway, I would like to either request a new feature, or ask if
anybody has an idea how/if it could be scripted as an automated task?
Essentially I'd like to be able to set, on a per-document basis, the
ability to have the document automatically save itself every minutes.
Today, my macbook crashed, and I lost a fairly big chunk of an essay.
It may actually be better if a way could be suggested to simply
automate a task every n minutes - that way, I could have Textmate
automatically commit a document to my svn/bzr repository! That'd be
great!
So... is this possible? Any help would be greatly appreciated.
Thank you!
James Frost
Is there a way to send a value to ${TM_BLOG_TITLE} through
applescript in the TextMate blogging bundle?
I'm thinking about creating a Quicksilver action that can use the
text from Quicksilver to fill the title of the blogging HTML template.
Thanks,
Graham English
Hi. My name is Tyler - I run Snipplr.com. (Allan blogged about us last
summer.) I'm working on an updated bundle for Snipplr, and was
wondering if anyone would be interested in helping me test it?
(BTW: For the rest of this message when I say "snippet", I'm referring
to a snippet stored on Snipplr, not a TextMate snippet.)
I ask because I'm doing some strange stuff with it. Previously, I was
sending a request to the server each time the user requested a
snippet. This new version syncs your snippets and favorites directly
into TextMate's bundle menu - giving you offline access to all your
code stored in Snipplr.
To do this, I'm generating the TextMate bundle on-the-fly using PHP on
the server - so each user's bundle is customized for their account.
I'm creating the tmSnippet's, tmBundle's, plists, etc.. It's also got
an auto-update feature to keep the bundle's snippets in sync.
So far everything is working. I need to add code to make it handle
errors gracefully and also to check the integrity of the bundle before
it installs an update of itself.
Any feedback on how I can improve the way I'm doing this would be
greatly appreciated.
More info about the new bundle (and how to get it!) is available here:
http://blog.snipplr.com/2007/05/09/new-snipplr-textmate-bundle-beta/
Thanks :)
first of all, you're doing a great job on the as3 bundle !!
*) why is the scope selector of the build and other commands
source.actionscript.3 , while in the language file the scope is
source.actionscript3.
When trying to build, the shortcut won't work. With scope selector
source.actionscript3 it does.
herewith a delta file .
*) that when you checkout the actionscript 3 bundle you get the following error
svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/ActionScript\
3.tmbundle
svn: Can't convert string from 'UTF-8' to native encoding:
svn: ActionScript 3.tmbundle/Commands/Insert Color?\226?\128?\166.tmCommand
greetz
Joachim
---------------------------------------
http://4d.ratubagus.net
Hello everyone,
I live in the latex bundle, but this feature request may be relevant
to others. I would like to be able to move blocks of text in the
latex file by simply moving corresponding headers in the "Go to
Symbol" sidebar. This would replace my need to use OminOutliner to
organize material. (There seems to be no satisfactory way to port a
Latex file from TextMate into OmniOutliner without a great deal of
hand work.)
A related feature request would be a Latex logic checker. No matter
how we move blocks around, we may wish to check that the references
maintain their logical ordering. It would be nice to have a command
to do this for us, especially for long documents. I am no
programmer, but I imagine this should be easy to do -- find each \ref
that occurs before its \label.
Cheers,
Jenny
____________________________________
Jenny Harrison
Professor of Mathematics
University of California, Berkeley
851 Evans Hall
Berkeley CA 94720-3270
Tele: 510-642-9666
Fax: 510-642-5270
Email: harrison(a)math.berkeley.edu
Web: http://math.berkeley.edu/~harrison/
This is a repeat of a comment I made on the latest TextMate blog post[1].
I remember some discussion on the list about the Subversion menu, but I can't find it.
The command that I always want for Subversion is Diff with Newest. Why is that the second option? The CVS bundle has it as the first option. Do people really use Diff Revisions that often?
The diff commands start at the eleventh position in the menu and so don't have number shortcuts. They also all start with 'Diff', so pressing 'd' only jumps to the first command.
[1] http://macromates.com/blog/archives/2007/05/06/textmates-many-key-shortcuts/
Hello.
I don't know who is responsible for the indentation of Perl buffers
(textmate author or bundle author?) but there is a problem with
structures of the kind:
###
my $teste;
$sth_comments->bind_columns(
undef,
\$journalid,
\$jtalkid
);
my $teste2;
###
This is correctly indented, according to the Text->Indent Selection
command.
But I was expecting this:
###
my $teste;
$sth_comments->bind_columns(
undef,
\$journalid,
\$jtalkid
);
my $teste2;
###
Regards,
André Cruz
Hi there,
I use Markdown format for all of my plain text files - both to
convert to HTML for export and to help organise my files. I find the
syntax highlighting of headings and lists really helps me keep large
files organised - especially with using curly braces to 'section'
material and keep it folded away.
Is it possible to change the way headings are recognised? In
particular I would like to have the following:
## Heading 1 {
Some text in here...
}
## Heading 2 {
Some text in here...
}
## Heading 3 {
Some text in here...
}
This currently only picks up the first heading, seeing the others as
meta.paragraph.markdown, whereas leaving in line breaks:
## Heading 1 {
Some text in here...
}
## Heading 2 {
Some text in here...
}
## Heading 3 {
Some text in here...
}
Means I get all the headings recognised correctly. Both versions
above are recognised and converted to HTML correctly by the
Markdown.pl script so I presume the highlighting is down to the
language grammar? I looked at it and tried to change it myself but
broke all the other formatting as well so think I need some
professional input on this one!
I know its not a life-changing query but I'd like to understand the
language grammar stuff better and this looks like a good starter
project!!
Thanks,
Nigel
Hi,
Within the time constraints, I've done what searching I can through the
docs, wiki, and mailing list archives to get a personal markup bundle
working. Thanks to the clear documentation and a lot of the archived posts
here, I have all the snippets and syntax coloring working. However, there
are a couple of things that I still haven't worked out, which I could use a
little help with. I apologize if they've been covered before and I missed
them. If I had more time, I'd keep searching around for the answers, but
with an upcoming deadline, I just have to get some guidance.
My bundle is called "jmarkup" and I've set most of the scope selectors to
"text." (BTW, I still don't competely get how to choose scope selectors,
despite reading that section many times.)
I'll probably do most of my writing in Latex or Markdown (or MMD), and
currently I have to go back and forth between syntax coloring for either
Latex or jmarkup.
1) Can I somehow set my scope so that I can see it colored while I'm in
Latex and MMD?
2) Could someone point me to a place explaining how I could process my
markup before the latex. E.g. So that when I hit the key combo to preview
the Latex, everything is preprocessed to replace my [[note syntax ]] with
Latex markup for left and right margin notes.
3) Referring to #2 above, could I have separate processing-replacements set
up for whether I was making an output for myself (e.g. working draft with
all notes and markup) or for my advisor (e.g. print draft without notes and
hiding my in-line styles, like "revise" or "check facts")?
4) What would the best bundle be to use as an example of how to gather all
"action" markups in to a separate document? For example, I might have a fact
that is suffixed with [!check this!] and I want to gather all lines that
have that [!...!] in them. I assume this might be similar to the TODO or
GTDalt bundles but haven't checked them out yet.
Thanks all for any advice and help. I know I've asked a lot here, but even
just pointers to where I can find the best examples of implementations of
each would really help me out.
Thanks,
Jeff
Hi all,
I've been a paid member of the TextMate-o-sphere for a couple months
now, but have just started dipping into its mighty goodness. One
thing that I've found that is not quite so good is how the subversion
plugin won't play nice with colordiff.
In my .subversion/config, I've set it up to use colordiff instead of
diff. I do a lot of my work from the command-line, so this is pretty
important for me. Unfortunately, the subversion plugin doesn't like
this. If you look here:
http://www.nuthole.com/img/tm_ss1.png
you'll see what I'm talking about. The upper half ("Untitled 705")
shows the result of me doing a "Diff with Newest (HEAD)" with my
preferred .subversion/config settings intact, while the lower half
("Untitled 706") shows the much prettier version that the subversion
bundle does all on its own if I remove my settings.
Now, I'd just accept that "that's just the way it is", except for the
fact that the bundles doesn't *always* do this. In particular, if I
bring up an SVN Log from within TextMate, and then click on a link to
see a diff in there, the resulting diff is displayed in a
TextMate-colorized fashion, apparently ignoring my .subversion/config
settings (hooray!). So what I wonder is, if the plugin can ignore my
settings and do its own colorization in one case, why can't it do it
all the time?
--
// jack
// http://www.nuthole.com
Hello.
I use TextMate 1.5.5. I came across a problem exibited by the perl
bundle Tidy command.
If the output of a command, in this case perltidy, contains chars in
utf8, all the output is discarded and we end up with a blank
document. For example this script:
##################
my $body = <<END;
Reparámos
END
############
If I run the tidy command on this file, I end up with a blank
document. Perltidy works fine though because I tried redirecting the
output of the command to a file and it's all there.
Any ideias?
Regards,
André Cruz
>Simon: How feasible is it to break this
>bundle into two parts? Will that put us ahead or behind of where we
>are with the current stand-alone bundles?
Very feasible, and the combined bundle is ahead of the two standalones... although there are points where they need to
merge/work out which solution is best.
>It sounds like most of us on on the same page, here. I think it'd be
>nice if we could agree on a single AS3 and a single Flex bundle to
>focus our efforts on so we have something to congregate around.
>Nominations?
Personally I don't mind. I'd be happy to see it broken up on the grounds that the bundle title is far far too long at the
moment ;) One thing I'd be concerned about is a possible duplication of build and help commands and their associated
TM_BUNDLE_SUPPORT/bin and lib files. But this is coming from a bundle developer perspective and we should focus on the
end user so can't be used as a reason not to.
Allan - any chance of getting a TextMate icon for .mxml files?
On 2007/05/10, Ciarán Walsh wrote:
> does env|sort ⌃R include it?
You mean if the env var is set? env will not include it since it is
set only for the perltidy command.
But just to check the value I ran __CF_USER_TEXT_ENCODING=$UID:
0x8000100:0x8000100 env|sort
This is the value set:
__CF_USER_TEXT_ENCODING=501:0x8000100:0x8000100
André Cruz
On 2007/05/10, Ciarán Walsh wrote:
> • Prepend “__CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 ” before
> “perltidy -st…”
Nope.. Didn't work.
Thanks for the help though,
André Cruz
I finally cleaned up my HTML bundle, if anyone interested, it's there:
http://tinyurl.com/2jjkt3
basic idea is to assign same key shortcut for all phrase, same
shortcut for all block, same shortcut for all inline, etc...
elements. sorta the way BBEdit used to work (well, it probably still
does, just haven't opened in in a looooong time). It also adds tab
triggers to basically all tags. Not revolutionary, just a little
update to the great built in bundle. It saves me time though, so I'm
thinking it might help a couple other people... I even made my first
screencast to show you how to use it! enjoy :)
- Yann
Xavier,
MacFUSE is awesome! Thank you so much! I switched from PC where I
loved using WedDrive, and have been looking for something like that
for a while now. I'm surprised MacFUSE is not more well know. Thanks
a million!
Brian
I believe I read the TextMate Service menu was disabled / being
replaced, however, I think having an item thats 'new window with
selection' would be great... I seem to use it very often...
- Eric
Hi,
I found a tiny bug (resp. 'evil' pitfall) in the bundle editor.
I opened the bundle editor, went to a command 'A' and pressed CTRL
+APPLE+E for "Edit in TextMate". OK.
Then I looked for a code snippet in an other command 'B' using the
bundle editor. I copy&pasted it. Fine. But then I saved my changes.
TM wrote my stuff back in that command which was active in the bundle
editor (in my case command 'B'!, not 'A' which I actually was editing).
Well, TM wrote it back to command 'B' but the bundle editor didn't
save it fortunately, and command 'A' was unchanged. The tricky thing
only is that all my changes are gone because I also closed my editing
window.
Would it be possible that TM remembers the command which I actually
editing?
Regards,
Hans
Hey everyone, I'm new to the list as of today.
I'm writing to ask if anyone out there has (and can make available),
or knows of, a WSC bundle for TextMate. WSC's are XML files that
Windows uses as a kind of COM object class definition. My employer
is pushing to move everything we have in classic ASP over to WSCs and
working without a good TextMate bundle or even a language definition
is a pain to say the least.
If nobody has an existing bundle I'm going to need to make on myself
but I'd rather not re-invent the wheel here if someone better than I
(which isn't hard to find) has already built the foundation.
Any help or pointers in the right direction is much appreciated...
- Cliff
I just notice a few new additions to the CSS bundle, such as:
CodeCompletion CSS
CodeCompletion CSS Properties
CodeCompletion CSS Property Values
Has it been there for a while? I tried using it but nothing happens
when I use the shortcuts... How are those meant to be used exactly?
Thanks!
Hi List-o-mate,
I've starting writing my own snippets and can use the whole, "${1:insert
stuff}" ok now, but I wondered if there was a way to open a File Browser
window?
eg, my current html img snippet is,
<img src="${1:assets/images/${2}}" alt="${3:$2}" />
but it'd be cool to have,
<img src="${1:FILE_BROWSER}" alt="${2:alt_text}" />
Thank you,
DanC
--
danCourse
www.dancourse.co.uk
07790 13 83 23
Flash2.0 & PHP Freelancer
Hello,
when I type an enumeration I get:
\begin{enumerate}
\item Geringe Tiefenschärfe. sdfdsfsdfdsfdsfsdfdsf erscheinen
sdfsdfsdf Bild war selten.
\item dfdfdf dsf sdfsd f sdf
\end{enumerate}
Is there a possibility to get it this way:
\begin{enumerate}
\item Geringe Tiefenschärfe. sdfdsfsdfdsfdsfsdfdsf erscheinen
sdfsdfsdf Bild war selten.
\item dfdfdf dsf sdfsd f sdf
\end{enumerate}
I believe this is more readable.
Second questions:
When I press in the eq. Ctrl+Q i get this:
\begin{enumerate} \item Geringe Tiefenschärfe. sdfdsfsdfdsfdsfsdfdsf
erscheinen sdfsdfsdf Bild
war selten. \item dfdfdf dsf sdfsd f sdf \end{enumerate}
Surely wrong. The items shouldbe aligned. Is there a way to achieve
this?
Bye
Hi,
the most common search & replace I do is "Replace in Selection". I
can do everything with the keyboard, including switching RegExp on
and off, but I need to use the Alt/option key to switch to In
Selection and the mouse to do it.
I was wondering, is there anyway to access those buttons with the
keyboard?
Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
Jabber ID: melo(a)simplicidade.org
Use Jabber!
there is any way to get the CSS code completion function to display the IDs
or class used in the html file?
let's stay I have the following on index.html:
<div id="lorem">ipsum dolorem</div>
Now, opening style.css file (in same project) and pressing [command] +
[escape] buttons, I would like textmate showing up the suggestion "lorem" as
the ID is present on index.html file.
...any suggestion? I hope I was clear enough :P
many thanks in advance.
--
View this message in context: http://www.nabble.com/CSS-code-completion-from-html-file--tf3704144.html#a1…
Sent from the textmate users mailing list archive at Nabble.com.
Does anyone know how to get TextMate to always use tabs for multiple
files instead of new windows?
Often I open files directly from Transmit and they aren't in their own
project, after more than 2 or 3 it becomes cumbersome.
Thanks!
Brian Armstrong
If anyone's got the time, I'd love to be walked thru the process of
breaking-up several existing commands so they can be included in each
other via a support library. The commands are listed here:
HTML - http://pastie.textmate.org/59923
Prince export - http://pastie.textmate.org/59927
Prince export (numbered) - http://pastie.textmate.org/59929
Preview - http://pastie.textmate.org/59926
You'll see that they are all variations on the same thing. The steps
are as follows:
1. Begin an HTML page
2. Use the "common layout" css
3. A perl command that transforms the document
4. End the HTML page
5. Do something with the HTML file
Depending on the command, other small things are added. Mainly, the
addition of different print stylesheets for each of the prince
commands. I've tried to make it as clear as possible in the code, let
me know if you need more direction.
I know that each of these code chunks could be broken up and reused
in each command (much like php includes) but I have no idea how to do
it.
Any help is appreciated, and feel free to email me directly.
Hello,
I want a snippet that inserts $\mu$ behind a number (for example
"10$\mu$").
The tab triggers is "mü"
So I have to type "10" "blank" "mü" "tab".
My snippet is "$$\mu m$$" But this does not word. I do not get the
dollar signs. And I do not know how to go back one letter. How can I do
that?
Bye.
Hi,
I assume like many others, my "~/Library/Application Support/
TextMate/" directory is a svn repo. I install extra bundles via the
svn externals mechanism. This works well except for when the bundle
name has a space in it because of this bug: http://
subversion.tigris.org/issues/show_bug.cgi?id=2461
Most annoying. How are others managing this?
--
LD.
I came up with these the other day, and thought someone else might
find these useful. They're very small bundles that simply let you type
(while working in HTML) and have properly coded typographic
characters.
I come from a print design background, and am used to being rather
particular with my typography. One of my biggest pet peeves is seeing
a double tick mark (") where a proper quote mark (") should be.
I've been learning to hand-code my websites, but something that always
frustrated me with HTML was having to code out – when I was used
to just hitting opt - (hyphen).
So I came up with the attached snippets that let me do what I wanted
to do - I can type the character as I'm used to typing it, and
Textmate inserts the proper HTML code.
I'll be honest, I got the idea for this when I tried out SkEdit - it
was the one feature that I missed in Textmate. But it was easy enough
to add myself.
Enjoy! I hope there are some typophiles that will like this!
Sorry if it's old news for some of you guys, but I just found out
that using MacFUSE and sshfs makes it super easy to use TextMate
projects/tabs with files on remotes servers (as long as you have SSH
access). I know the question comes back once in a while on here, and
I for one was never really satisfied with the workarounds people
suggested...
This solution makes it really dead simple to get access to all
TextMate Project features... I wrote up a little blog post with the
details if someone's interested:
http://minimaldesign.net/blog/workflow/remote-textmate-projects
Hope it helps :)
Dan, thank you so much that was exactly what I was looking for!
Thanks!
Brian
On 5/6/07, textmate-request(a)lists.macromates.com
<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. Re: Patch for LaTex Bundle (Xavier Cambar)
> 2. Re: Patch for LaTex Bundle (Charilaos Skiadas)
> 3. Re: periodic key binding freak-out (Grant Hollingworth)
> 4. Re: Patch for LaTex Bundle (Xavier Cambar)
> 5. Using Projects on remote servers - the easy way (Yann B)
> 6. Re: Feature request: "Open Terminal here ..." (Fred B)
> 7. question regarding CSS brackets (ZulloP)
> 8. Re: The Dvorak-Qwerty layout, 2 years later (Sami Samhuri)
> 9. Re: question regarding CSS brackets (Jacob Rus)
> 10. Re: question regarding CSS brackets (ZulloP)
> 11. Re: question regarding CSS brackets (Jacob Rus)
> 12. Re: Using Projects on remote servers - the easy way (Yi Qiang)
> 13. Re: Using Projects on remote servers - the easy way (Gerd Knops)
> 14. Find in Selection? (Niels Kobsch?tzki)
> 15. Scope and Preprocessing for personal Markup (J Fischer)
> 16. Reformat php? (Brian Armstrong)
> 17. HTML Special Character Bundles (Chip Cullen)
> 18. Re: Reformat php? (Dan Lowe)
> 19. Re: Reformat php? (Erwan David)
> 20. Re: Find in Selection? (Ciar?n Walsh)
> 21. Re: Find in Selection? (Jacob Rus)
> 22. Re: HTML Special Character Bundles (Jacob Rus)
> 23. Re: Re: Find in Selection? (Niels Kobsch?tzki)
> 24. Re: Re: HTML Special Character Bundles (Chip Cullen)
> 25. Re: question regarding CSS brackets (ZulloP)
>
>
> ---------- Forwarded message ----------
> From: Xavier Cambar <xcambar(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 17:14:37 +0200
> Subject: Re: [TxMt] Patch for LaTex Bundle
> Going on this way, I found out that the command was used to open
> files in a separate window.
> I am looking for a way to open incuded files in a tab. I thought of a
> recursive search, starting from the folder of the master file (if not
> defined, the currently opened one), or even better, opening the right
> file from the ones in the current project. Anyhow, there are many
> ways to make this efficient, but I have no idea how to open a file in
> a tab... Commands generally use 'mate', which (as far as I know)
> isn't able of this...
>
> Well, any idea?
> Xavier
>
> Le 4 mai 07 à 21:19, Charilaos Skiadas a écrit :
>
> > Xavier,
> >
> > Thanks for the patch, sorry it took me so long to commit it.
> >
> > Haris Skiadas
> > Department of Mathematics and Computer Science
> > Hanover College
> >
> > On Apr 20, 2007, at 12:27 PM, Xavier CAMBAR wrote:
> >
> >> Context:
> >> I needed to insert tex files which filenames contained spaces into
> >> my document. LaTex can handle this efficiently if quotes are
> >> provided in the \include (like in \include{"bla bla/bla bla"}).
> >>
> >> For easy moving along my document, I intended to use the "Open
> >> Included File" command. But that command doesn't handle the quoted
> >> filenames, as the quotes are taken into account as normal characters.
> >> So here I am with a line to be added to that command in order to
> >> correct that misbehaviour:
> >>
> >> 10: ...
> >> 11: if options.empty?
> >> 12: print "Did not find any appropriate item to open in #{ENV
> >> ['TM_SELECTED_TEXT'] ? "selection" : "current line" }"
> >> 13: else
> >> 14: options[0].each{|el| el.gsub!(/(^\")?(\"$)?/, '')}
> >> #<-- Here it is!
> >> 15: filepath = `kpsewhich #{e_sh options[0]}`.chomp
> >> 16: if filepath.empty?
> >> 17: ...
> >>
> >> I don't know how to commit changes in a bundle (according I am
> >> allowed to!). So now it's up to you, folks, to add it to the
> >> repository.
> >> Note that I quickly and unformally tested it, and everything seems
> >> ok.
> >>
> >> Xavier Cambar
> >
> >
> >
> ______________________________________________________________________
> > 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
>
>
>
>
> ---------- Forwarded message ----------
> From: Charilaos Skiadas <skiadas(a)hanover.edu>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 11:24:53 -0400
> Subject: Re: [TxMt] Patch for LaTex Bundle
>
> On May 5, 2007, at 11:14 AM, Xavier Cambar wrote:
>
> > Going on this way, I found out that the command was used to open
> > files in a separate window.
> > I am looking for a way to open incuded files in a tab. I thought of
> > a recursive search, starting from the folder of the master file (if
> > not defined, the currently opened one), or even better, opening the
> > right file from the ones in the current project. Anyhow, there are
> > many ways to make this efficient, but I have no idea how to open a
> > file in a tab... Commands generally use 'mate', which (as far as I
> > know) isn't able of this...
>
> For me the command opens files in a new tab, and not in a separate
> window. Perhaps the files you are trying to open are not in the
> project/folder?
>
> > Well, any idea?
> > Xavier
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Grant Hollingworth <grant(a)antiflux.org>
> To: textmate(a)lists.macromates.com
> Date: Sat, 5 May 2007 09:49:33 -0600
> Subject: Re: [TxMt] periodic key binding freak-out
> * Allan Odgaard <throw-away-1(a)macromates.com> [2007-05-05 02:12]:
> >The 0x200000 is the NSNumericPadKeyMask.
> >
> >Are you using a PC keyboard possibly with some adaptor? Is there a
> >num-lock key you can press? If so, try see if just pressing that
> >doesn't toggle the behavior.
>
> I'm using my MacBook Pro's built-in keyboard. Turning on numlock does give
> me that modifier, but it changes the key to its inset number pad equivalent:
> '*' instead of 'p'.
>
> Characters: *
> Unicode: 42 / 0x2a
> Keys: ⇧^*
> Key Code: 67 / 0x43
> Modifiers: 2490627 / 0x260103
>
> When I was having problems, the key stayed as 'p'. So somehow the mask was
> flipped on but without my keyboard layout changing.
>
>
>
> ---------- Forwarded message ----------
> From: Xavier Cambar <xcambar(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 18:29:58 +0200
> Subject: Re: [TxMt] Patch for LaTex Bundle
>
> Le 5 mai 07 à 17:24, Charilaos Skiadas a écrit :
> > For me the command opens files in a new tab, and not in a separate
> > window. Perhaps the files you are trying to open are not in the
> > project/folder?
>
> Yes, they are. Even better, whether the files are already opened in a
> tab or not doesn't change the result. They keep on (re)opening in a
> new window.
> Damn...
>
> Xavier
>
>
> ---------- Forwarded message ----------
> From: Yann B <textmate(a)minimaldesign.net>
> To: textmate(a)lists.macromates.com
> Date: Sat, 5 May 2007 13:02:10 -0400
> Subject: [TxMt] Using Projects on remote servers - the easy way
> Sorry if it's old news for some of you guys, but I just found out
> that using MacFUSE and sshfs makes it super easy to use TextMate
> projects/tabs with files on remotes servers (as long as you have SSH
> access). I know the question comes back once in a while on here, and
> I for one was never really satisfied with the workarounds people
> suggested...
>
> This solution makes it really dead simple to get access to all
> TextMate Project features... I wrote up a little blog post with the
> details if someone's interested:
>
> http://minimaldesign.net/blog/workflow/remote-textmate-projects
>
> Hope it helps :)
>
>
>
> ---------- Forwarded message ----------
> From: "Fred B" <fredb7(a)gmail.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 19:05:03 +0200
> Subject: Re: [TxMt] Feature request: "Open Terminal here ..."
> On 5/4/07, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
> > I updated the default command to use your script if either iTerm is
> > running or TM_TERMINAL is set to iTerm.
>
> Thanks Allan. One less custom command to worry about! ;)
> Glad you found the script useful.
>
> --
> FredB
>
>
>
> ---------- Forwarded message ----------
> From: ZulloP <info(a)webrevolution.org>
> To: textmate(a)lists.macromates.com
> Date: Sat, 5 May 2007 14:36:04 -0700 (PDT)
> Subject: [TxMt] question regarding CSS brackets
>
> I noticed Textmate automatically formats the curvy brackets in the following
> way:
>
> #test{}
>
> any way to modify it like:
>
> #test { }
>
> Many thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a10340…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
>
>
> ---------- Forwarded message ----------
> From: "Sami Samhuri" <sami.samhuri(a)gmail.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 15:34:27 -0700
> Subject: Re: [TxMt] The Dvorak-Qwerty layout, 2 years later
> On 5/5/07, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
> > As for what Leopard may or may not change, I can't say.
> >
>
> I suspected this would be the case.
>
> > But there is one new line in a header that has made me add "revisit key
> event
> > decoding" to the to-do. But don't get your hopes up, it's no simple
> > thing, and presently I have no idea if the new route is plausible.
>
>
> Ok thanks for the honest response. It's pretty much what I expected. I'll
> just transition to pure Dvorak.
>
>
> -- Sami
>
> ---------- Forwarded message ----------
> From: Jacob Rus <jacobolus(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sat, 05 May 2007 18:52:22 -0400
> Subject: [TxMt] Re: question regarding CSS brackets
> ZulloP wrote:
> > I noticed Textmate automatically formats the curvy brackets in the
> following
> > way:
> >
> > #test{}
> >
> > any way to modify it like:
> >
> > #test { }
>
> You'll have to be a lot more specific. TextMate doesn't "format" curly
> braces at all, to my knowledge. It does have a "typing pairs" feature
> which will insert a closing `}` when you type `{`. Is this what you are
> referring to?
>
>
>
>
> ---------- Forwarded message ----------
> From: ZulloP <info(a)webrevolution.org>
> To: textmate(a)lists.macromates.com
> Date: Sat, 5 May 2007 16:02:13 -0700 (PDT)
> Subject: Re: [TxMt] question regarding CSS brackets
>
> Hello Jacob Rus4, yes, I'm talking about the "typing pairs" feature...
> sorry!
> I would like to have #test{[space][curosor here][space]}
>
> I'hope is clear enoguh.
>
> Thanks for your help.
> --
> View this message in context:
> http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a10341…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
>
>
> ---------- Forwarded message ----------
> From: Jacob Rus <jacobolus(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sat, 05 May 2007 20:42:15 -0400
> Subject: [TxMt] Re: question regarding CSS brackets
> ZulloP wrote:
> > Hello Jacob Rus, yes, I'm talking about the "typing pairs" feature....
> sorry!
> > I would like to have #test{[space][curosor here][space]}
> >
> > I hope [that] is clear enoguh.
>
> Okay, what you'll want to do then is to create a [macro][1], which first
> types `{`, then types two spaces, then moves one character to the left.
>
> -Jacob
>
> [1]: http://macromates.com/textmate/manual/macros#macros
>
>
>
>
> ---------- Forwarded message ----------
> From: Yi Qiang <yqiang(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 18:07:39 -0700
> Subject: Re: [TxMt] Using Projects on remote servers - the easy way
>
> On May 5, 2007, at 10:02 AM, Yann B wrote:
>
> > Sorry if it's old news for some of you guys, but I just found out
> > that using MacFUSE and sshfs makes it super easy to use TextMate
> > projects/tabs with files on remotes servers (as long as you have
> > SSH access). I know the question comes back once in a while on
> > here, and I for one was never really satisfied with the workarounds
> > people suggested...
> >
> > This solution makes it really dead simple to get access to all
> > TextMate Project features... I wrote up a little blog post with the
> > details if someone's interested:
> >
> >
> http://minimaldesign.net/blog/workflow/remote-textmate-projects
> >
> > Hope it helps :)
> Fantastic write up! I was _very_ surprised at how easy it was to set
> up macfuse and sshfuse.
>
> This is off topic so please reply in private if you wish.
>
> Is it possible to automount sshfs volumes?
>
> Cheers,
> Yi
>
> --
> http://www.yiqiang.net
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Gerd Knops <gerti-textmate(a)bitart.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sat, 5 May 2007 22:48:44 -0500
> Subject: Re: [TxMt] Using Projects on remote servers - the easy way
> On May 5, 2007, at 8:07 PM, Yi Qiang wrote:
> >
> > Is it possible to automount sshfs volumes?
>
> Not sure if it works for sshfs volumes, but a little known feature is
> that one can drag a mounted volume into the 'Login Items' TableView
> (System Preferences/Accounts/Login Items). Works at least for webdav
> volumes.
>
> Gerd
>
>
>
>
> ---------- Forwarded message ----------
> From: Niels Kobschätzki <n.kobschaetzki(a)googlemail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 6 May 2007 07:44:26 +0200
> Subject: [TxMt] Find in Selection?
> Hi!
>
> Is there a way for do a "replace all" only in a selection? I can only
> find "Use selection for find" but that puts only the selected text
> into the find-part of the find-dialog.
> I searched for something like this in TextMate already quite often
> and therefore I think other ppl would use it as well but I can't
> remember that I've ever read a feature request for this, therefore it
> must be somewhere…
>
> Niels
>
>
> ---------- Forwarded message ----------
> From: "J Fischer" <regisjf(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sat, 5 May 2007 22:57:01 -0700
> Subject: [TxMt] Scope and Preprocessing for personal Markup
> Hi,
>
> Within the time constraints, I've done what searching I can through the
> docs, wiki, and mailing list archives to get a personal markup bundle
> working. Thanks to the clear documentation and a lot of the archived posts
> here, I have all the snippets and syntax coloring working. However, there
> are a couple of things that I still haven't worked out, which I could use a
> little help with. I apologize if they've been covered before and I missed
> them. If I had more time, I'd keep searching around for the answers, but
> with an upcoming deadline, I just have to get some guidance.
>
> My bundle is called "jmarkup" and I've set most of the scope selectors to
> "text." (BTW, I still don't competely get how to choose scope selectors,
> despite reading that section many times.)
>
> I'll probably do most of my writing in Latex or Markdown (or MMD), and
> currently I have to go back and forth between syntax coloring for either
> Latex or jmarkup.
>
> 1) Can I somehow set my scope so that I can see it colored while I'm in
> Latex and MMD?
>
> 2) Could someone point me to a place explaining how I could process my
> markup before the latex. E.g. So that when I hit the key combo to preview
> the Latex, everything is preprocessed to replace my [[note syntax ]] with
> Latex markup for left and right margin notes.
>
> 3) Referring to #2 above, could I have separate processing-replacements set
> up for whether I was making an output for myself (e.g. working draft with
> all notes and markup) or for my advisor (e.g. print draft without notes and
> hiding my in-line styles, like "revise" or "check facts")?
>
> 4) What would the best bundle be to use as an example of how to gather all
> "action" markups in to a separate document? For example, I might have a fact
> that is suffixed with [!check this!] and I want to gather all lines that
> have that [!...!] in them. I assume this might be similar to the TODO or
> GTDalt bundles but haven't checked them out yet.
>
>
> Thanks all for any advice and help. I know I've asked a lot here, but even
> just pointers to where I can find the best examples of implementations of
> each would really help me out.
>
> Thanks,
>
> Jeff
>
> ---------- Forwarded message ----------
> From: "Brian Armstrong" <barmstrong(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sun, 6 May 2007 01:22:19 -0500
> Subject: [TxMt] Reformat php?
> Hi All,
>
> I'm new to Textmate, and I have to say I am most impressed! What a
> beautiful piece of software. I downloaded the 30 day trial, and I am
> having problems with one thing: reformatting php code.
>
> Let's say I had a piece of code like this:
>
> // make sure it doesn't crash in an ugly way
> if (!function_exists('foo'))
> {
> die("this function required");
> }
>
> and I run the reformat on it, or ^Q, then I get this:
>
> // make sure it doesn't crash in an ugly way if
> (!function_exists('foo')) { die("this function required"); }
>
> Not very helpful, and you notice that the 'if' is now on a comment line!
>
> Note that this performs the same whether I have the file showing as
> HTML or PHP. Given the amount of work that's gone into PHP capability
> overall (great completion for example) I'm shocked that this is
> standard behavior out of the box.
>
> Would love to get some tips from the textmate masters on here. Thank you!
> Brian Armstrong
>
>
>
> ---------- Forwarded message ----------
> From: "Chip Cullen" <chip.cullen(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sun, 6 May 2007 16:07:10 +0900
> Subject: [TxMt] HTML Special Character Bundles
> I came up with these the other day, and thought someone else might
> find these useful. They're very small bundles that simply let you type
> (while working in HTML) and have properly coded typographic
> characters.
>
> I come from a print design background, and am used to being rather
> particular with my typography. One of my biggest pet peeves is seeing
> a double tick mark (") where a proper quote mark (") should be.
>
> I've been learning to hand-code my websites, but something that always
> frustrated me with HTML was having to code out – when I was used
> to just hitting opt - (hyphen).
>
> So I came up with the attached snippets that let me do what I wanted
> to do - I can type the character as I'm used to typing it, and
> Textmate inserts the proper HTML code.
>
> I'll be honest, I got the idea for this when I tried out SkEdit - it
> was the one feature that I missed in Textmate. But it was easy enough
> to add myself.
>
> Enjoy! I hope there are some typophiles that will like this!
>
>
> ---------- Forwarded message ----------
> From: Dan Lowe <dan(a)tangledhelix.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 6 May 2007 03:47:37 -0400
> Subject: Re: [TxMt] Reformat php?
>
> On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:
>
> > and I run the reformat on it, or ^Q, then I get this:
> >
> > // make sure it doesn't crash in an ugly way if
> > (!function_exists('foo')) { die("this function required"); }
> >
> > Not very helpful, and you notice that the 'if' is now on a comment
> > line!
>
> ^Q is a paragraph reformat, which as you have found is not so great
> for code. I believe what you are looking for is a way to (re-)indent
> code, in which case you want this:
>
> Text -> Indent Selection ( cmd-opt-[ )
>
> Note that you need to have a selection active for this to be
> available. Otherwise it will act on the current line only.
>
> -dan
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Erwan David <erwan(a)rail.eu.org>
> To: textmate(a)lists.macromates.com
> Date: Sun, 6 May 2007 10:05:23 +0200
> Subject: Re: [TxMt] Reformat php?
> Le Sun 6/05/2007, Dan Lowe disait
> >
> > On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:
> >
> > > and I run the reformat on it, or ^Q, then I get this:
> > >
> > > // make sure it doesn't crash in an ugly way if
> > > (!function_exists('foo')) { die("this function required"); }
> > >
> > > Not very helpful, and you notice that the 'if' is now on a comment line!
> >
> > ^Q is a paragraph reformat, which as you have found is not so great for
> > code. I believe what you are looking for is a way to (re-)indent code, in
> > which case you want this:
> >
> > Text -> Indent Selection ( cmd-opt-[ )
> >
> > Note that you need to have a selection active for this to be available.
> > Otherwise it will act on the current line only.
>
> Is there a way to rebind this ? On a french keyboard, [ is Shift-opt-5 thus
> a
> problem to get opt-[
>
>
>
>
> --
> Erwan
>
>
>
> ---------- Forwarded message ----------
> From: Ciarán Walsh <ciawal(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 6 May 2007 09:50:05 +0100
> Subject: Re: [TxMt] Find in Selection?
> On 6 May 2007, at 06:44, Niels Kobschätzki wrote:
>
> > Hi!
> >
> > Is there a way for do a "replace all" only in a selection? I can
> > only find "Use selection for find" but that puts only the selected
> > text into the find-part of the find-dialog.
> > I searched for something like this in TextMate already quite often
> > and therefore I think other ppl would use it as well but I can't
> > remember that I've ever read a feature request for this, therefore
> > it must be somewhere…
> Hold shift when doing the replace (either ⌃⌘⇧F or when clicking
> the replace button)
>
>
>
>
> ---------- Forwarded message ----------
> From: Jacob Rus <jacobolus(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sun, 06 May 2007 04:51:29 -0400
> Subject: [TxMt] Re: Find in Selection?
> Niels Kobschätzki wrote:
> > Is there a way for do a "replace all" only in a selection? I can only
> > find "Use selection for find" but that puts only the selected text into
> > the find-part of the find-dialog.
> > I searched for something like this in TextMate already quite often and
> > therefore I think other ppl would use it as well but I can't remember
> > that I've ever read a feature request for this, therefore it must be
> > somewhere…
>
> In the find dialog, try pressing the ⌥ (opt) key.
>
> -Jacob
>
>
>
>
> ---------- Forwarded message ----------
> From: Jacob Rus <jacobolus(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Date: Sun, 06 May 2007 04:59:59 -0400
> Subject: [TxMt] Re: HTML Special Character Bundles
> Chip Cullen wrote:
> > I came up with these the other day, and thought someone else might
>
> Have you tried smarty pants (or TM's markdown bundle which also runs
> smarty pants?)
>
> -Jacob
>
>
>
>
> ---------- Forwarded message ----------
> From: Niels Kobschätzki <n.kobschaetzki(a)googlemail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 6 May 2007 11:01:49 +0200
> Subject: Re: [TxMt] Re: Find in Selection?
> On May 6, 2007, at 10:51 AM, Jacob Rus wrote:
>
> > Niels Kobschätzki wrote:
> >> Is there a way for do a "replace all" only in a selection? I can
> >> only find "Use selection for find" but that puts only the selected
> >> text into the find-part of the find-dialog.
> >> I searched for something like this in TextMate already quite often
> >> and therefore I think other ppl would use it as well but I can't
> >> remember that I've ever read a feature request for this, therefore
> >> it must be somewhere…
> >
> > In the find dialog, try pressing the ⌥ (opt) key.
>
> Thx a lot (also for the thing with shift from Ciarán)
>
> Niels
>
>
> ---------- Forwarded message ----------
> From: "Chip Cullen" <chip.cullen(a)gmail.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Date: Sun, 6 May 2007 18:24:08 +0900
> Subject: Re: [TxMt] Re: HTML Special Character Bundles
> In a word, no. I had filtered out the markdown bundle, so I hadn't
> explored it. Besides, smartypants doesn't do exactly what I wanted to
> do, anyway, as I understand it. It takes "period period period" and
> turns it into "…"
>
> I was trying to have the effect of just typing from within an HTML
> document, using the typing that I am used to, and having TM
> automagically insert the right HTML code for that typographic mark.
>
> If Smarty Pants does this as well, I didn't see it. But thanks for
> pointing it out - I had no idea!
>
> On 5/6/07, Jacob Rus <jacobolus(a)gmail.com> wrote:
> > Chip Cullen wrote:
> > > I came up with these the other day, and thought someone else might
> >
> > Have you tried smarty pants (or TM's markdown bundle which also runs
> > smarty pants?)
> >
> > -Jacob
> >
> >
> >
> ______________________________________________________________________
> > 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
> >
>
>
>
> ---------- Forwarded message ----------
> From: ZulloP <info(a)webrevolution.org>
> To: textmate(a)lists.macromates.com
> Date: Sun, 6 May 2007 03:18:54 -0700 (PDT)
> Subject: Re: [TxMt] question regarding CSS brackets
>
> Many thanks for your help Jacob.
> --
> View this message in context:
> http://www.nabble.com/question-regarding-CSS-brackets-tf3697791.html#a10344…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
Hi All,
I'm new to Textmate, and I have to say I am most impressed! What a
beautiful piece of software. I downloaded the 30 day trial, and I am
having problems with one thing: reformatting php code.
Let's say I had a piece of code like this:
// make sure it doesn't crash in an ugly way
if (!function_exists('foo'))
{
die("this function required");
}
and I run the reformat on it, or ^Q, then I get this:
// make sure it doesn't crash in an ugly way if
(!function_exists('foo')) { die("this function required"); }
Not very helpful, and you notice that the 'if' is now on a comment line!
Note that this performs the same whether I have the file showing as
HTML or PHP. Given the amount of work that's gone into PHP capability
overall (great completion for example) I'm shocked that this is
standard behavior out of the box.
Would love to get some tips from the textmate masters on here. Thank you!
Brian Armstrong
Hi!
Is there a way for do a "replace all" only in a selection? I can only
find "Use selection for find" but that puts only the selected text
into the find-part of the find-dialog.
I searched for something like this in TextMate already quite often
and therefore I think other ppl would use it as well but I can't
remember that I've ever read a feature request for this, therefore it
must be somewhere…
Niels
Hello Allan & other TM friends,
I'm one of the disturbed folks who tries to make life difficult for myself
and those around me by using the Dvorak-Qwerty layout. Apple was kind enough
to create this monster, but not kind enough to provide the adequate means
for developers to fully support it in their apps[1].
Is there anything in the works to handle the DQ layout properly in TM2? I'm
debating a switch to a pure Dvorak[2] layout and since TM is the app I type
into for hours daily it has the largest influence on my decision. I know
it's foolish to think that maybe Leopard will include some new key handling
abilities just for us DQ guys, but I'm clinging to a shred of hope.
The only reason I'm bringing this up is that every now and then a new bundle
shortcut will catch me by surprise, ie. Cmd-Opt-/ (which is Cmd-Opt-[ in
DQ) for commenting blocks overwrote the shortcut for re-indenting a block or
line. Cmd-/ works as it should, but for some reason Cmd-Opt-/ uses the
Dvorak / instead of the Qwerty /. Some default shortcuts don't work at all
(show scope). It's not that big of a deal and I accept that this is the
price I pay for choosing an obscure layout. However, my dislike of surprises
while coding[3] outweighs the benefits of using DQ in the first place; hence
this message.
[1] http://comox.textdrive.com/pipermail/textmate/2005-August/005238.html
[2] Oh how I would/will miss the cut, copy & paste shortcuts. They suck on a
Dvorak layout.
[3] I know, I know. Why the hell do I use the cutting edge build of TM if I
don't want surprises? ;-)
--
Sami Samhuri
http://sami.samhuri.net
Hi
Just found something I really miss in TM. Maybe I just didn't find it
yet, although it's implemented ;-)
Having a project with several subfolders, it would be nice to just
right click (or hit a key) to open a terminal window at the current
file's location.
Is that possible somehow? I have seen "Open "..." with finder.app"
and stuff, but no terminal.app.
TIA
André
Context:
I needed to insert tex files which filenames contained spaces into my
document. LaTex can handle this efficiently if quotes are provided in
the \include (like in \include{"bla bla/bla bla"}).
For easy moving along my document, I intended to use the "Open
Included File" command. But that command doesn't handle the quoted
filenames, as the quotes are taken into account as normal characters.
So here I am with a line to be added to that command in order to
correct that misbehaviour:
10: ...
11: if options.empty?
12: print "Did not find any appropriate item to open in #{ENV
['TM_SELECTED_TEXT'] ? "selection" : "current line" }"
13: else
14: options[0].each{|el| el.gsub!(/(^\")?(\"$)?/, '')} #<--
Here it is!
15: filepath = `kpsewhich #{e_sh options[0]}`.chomp
16: if filepath.empty?
17: ...
I don't know how to commit changes in a bundle (according I am
allowed to!). So now it's up to you, folks, to add it to the repository.
Note that I quickly and unformally tested it, and everything seems ok.
Xavier Cambar
Every so often, TextMate stops handling key bindings for bundle items. Built-in commands still work as expected. When I check ⌃⇧P in Select Bundle Item, it shows ⌃⇧<some roundrect symbol>. The behaviour persists even when I restart TextMate. Logging out seems to fix it. Sometimes it fixes itself. I haven't found anything in console.log.
It just happened to me again. This time I used Key Codes[1] to check what TextMate was getting.
Key Down
Characters:
Unicode: 16 / 0x10
Keys: ⇧^P
Key Code: 35 / 0x23
Modifiers: 2490371 / 0x260003
Terminal saw the modifier as 0x260103. Later, TextMate started showing 0x260103, too, but the command still didn't work.
Finally -- and I have no idea what changed -- things started working again, and I now have a modifier of 0x60103 in all apps.
[1] http://www.petermaurer.de/nasi.php?thema=keycodes&sprache=english
On 4. May 2007, at 15:56, Simon Gregory wrote:
>> if find_app >/dev/null «bundle identifier of iTerm»; then
>> echo 'We got iTerm installed!'
>> fi
>
> I'm assuming that the «bundle identifier of iTerm» is the value
> from this key found in iTerm.app/Contents/Info.plist
>
> <key>CFBundleIdentifier</key>
> <string>iTerm</string>
Yes, unfortunately that bundle identifier is in the wrong format. It
should be something like: “com.«company».iTerm”.
It will likely work though. Alternatively you can do: find_app
iTerm.app (then it looks using the app name instead of the bundle
identifier, normally the former would be more ambiguous).
> One thing, would iTerm need to have been run once in order for the
> system to register it's presence?
If it is in /Applications and possibly ~/Applications, the system
will automatically register the application (at boot time) -- maybe
some other locations are also magic.
But at least running the app, will ensure the system has it in the
index.
Maybe I'm just missing something here, but:
Please make it possible to use a filter for the files scanned using
Find in project. I almost always have a situation where I'm searching
for something in my HTML files only and that something will be present
in almost all of the PHP files, thus adding a lot of noise to the
search result dialog.
There will also be situations where I'm searching for instance all
index.php files in a large project.
And while I'm at it, please make the Find in project faster ;^)
--
Sven Axelsson
I love the "Find in Project" command - especially when I'm working on
lots of HTML files. But it lacks something that the regular "Find"
command has - the ability to see multiple lines in both the "Find" and
"Replace" field. If the "FInd in Project" had that feature, it would
be much, much more useful. I work mainly in HTML, and it would really
help with things like updating menus across the site - pieces of code
that are rarely on a single line.
I know that you CAN replace multiple lines of code with "FInd in
Project", but having the ability to *see* them would help immensely.
For some reason whenever I try to replace multiple lines of code, I
get weird duplicates and other strange things. Granted, that could be
more indicative of my own ability ; ) - but if I could see all the
code at once that I'm using, I think I would run into fewer problems.
Any thoughts?
Hi,
A nice feature in TextMate is the automatic update of a dragged
folder inside the project drawer. But when you work with latex
projects and compile your document you'll get some help files, such
as aux, toc, lof, lot and so on. For this reason it would be nice to
have some kind of filter which is applicable for hiding certain
extensions when the folder is rescanned.
Would this be possible...?
Christian
Is there some way to control the appearance of the spinning progress
indicator on the HTML output pages? Some CSS, maybe? I'm writing a
command using the standard themes given by webpreview.rb, but the spinner
is practically invisible. I don't want to turn it off (I know about
TextMate.isBusy) or make any drastic changes, just change the color.
--
Steve King, <steve(a)narbat.com>
Hi all, I'm a Textmate newcomer. I'm using it to write my dissertation
in Latex. I ditched TexShop and I really love Textmate. I've watched
the video tutorial, read the documentation and have everything setup
and working. I have a master file and the compilation works
flawlessly.
The one thing I haven't been able to use is the \ref{} and \cite{}
completion. I have a bib file linked to the master file and my
bibliography shows fine when I compile the document. I just can't get
completion to work. Same thing with \ref{}, I added colon (:) to the
set of word characters but nothing. When I'm in a \ref{} or \cite{}
and press escape, nothing happens, I press option-escape and nothing
happens. Type the first few letters and press escape, nothing. If I'm
outside of \ref{} or \cite{} and type eq: and then escape I DO get
completion to work but not if I'm inside of the {}!!!!
If I'm anywhere outside an {} and press option-escape I get:
Label based on current word.. 1
Citation based on current work... 2
but if I choose either I get a crosshair pointer, what is this for?
I'm running Textmate version 1.5.4 (1360) and both the Lattex bundle
and support folder are the latest from SVN. Mac os X 10.4.8.
Thanks for your help,
Andres
--
Andres Gonzalez-Mancera
Biofluid Mechanics Lab
Department of Mechanical Engineering
University of Maryland, Baltimore County
andres.gonzalez(a)umbc.edu
410-455-3347
Hi
I am hoping someone has solved this problem.
I use latekmk.pl script as $TM_TEX_COMPILER to compile my LaTeX documents
from within Textmate and it works wonderfully on every document I've made,
except for any document that uses the exam package.
The problem is small: I must execute cmd-R twice to get it to compile the
number of points correctly. This is only a problem within Textmate; if I run
the script from the command line it works perfectly. And while it is a small
problem it is vexing, since latexmk.pl was made specifically to deal with
the need to run LaTeX etc. multiple times.
My guess is that there is a bug in either cmd-R (though I can't find one)
or somewhere in the bowels of Textmate.
Seeing as how I used this package frequently, almost daily, I'm guessing
that this need to cmd-R twice will cost me about an hour and a half of my
life in the coming year.
Best wishes
----
David
Maybe this is already in the works, but anyways:
Show invisibles needs a (separate) option to show spaces. Even better,
I'd like to see an option to show leading spaces only (Komodo has
this). Makes it easier to see the correct indent level.
--
Sven Axelsson
Hi there,
Sorry to raise an old question, but I can't find a definitive answer
in the archive - is it possible to turn off the tab bar? In a
previous post (Re: [TxMt] new beta, in Dec, 2004) Allan said, in a
rersponse to a question about hiding the tab/status bars:
> > Why remove the option to show/hide tab/status-bar ?
>
> I didn't thought anyone would actually use them, and if possible, I'd
> like to enforce that they're always enabled (since I'll rely more on
> these elements in the future).
>
> I can bring back the option to hide the tab bar.
Did this ever get brought back in? Is it a 'hidden' preference that
can be accessed? I never use the tab bar and would like to be able to
toggle it off if I can.
Thanks,
Nigel
Hi Folks,
A lot of my projects include some images and for getting a nice
overview, I also arrange these images, together with other related
files, within the project drawer.
If I right click on an image, I can open it with the standard
application (for example preview.app). Would it not be nice to have
an option "Open with..." and then be able to open it in the favorite
graphics program?
I know, it is possible to drag and drop the image on the dock icon of
the graphics program, but an option would easier.
Thanks
Christian
I have a command that relies entirely on the applescriptability of iTerm over Terminal. However as I can't guarantee that iTerm
is installed I'm looking for a way to detect it. Does anyone have any suggestions, specifically when it's not running?
Thanks,
Simon
Hello,
When I work with large projects and using the project drawer it would
be very comfortable and more usable if the folders and files could be
highlighted in some way. I mean exactly the same feature that ships
with OS X. When you right click on a folder/file you can choose a
colour (red, orange, green...) for this item.
Thanks
Christian
> Hi,
>
> I found a tiny error. Here the corrected utf-8 version of gspell.
>
> BTW In addition to that it is very easy to write out all google
> suggestions delimited by a '|' within the multiple word spell
> checking. With the help of a small command which shows this list as
> pull-menu you can edit each error very handy ;)
>
> Cheers,
>
> Hans
Thanks Hans, before reading your recent replies with the attached
files, I had already started work on UTF-8 version with environment
variable support (I receive the list in digest form, so I'm not
always up to date with the activity here.) I'm not quite sure if my
contribution is any better or worse than yours because I essentially
cannibalised the HTML bundle for encoding and decoding UTF-8 for POST-
ing and GET-ting with Google's servers. As a result my effort relies
on entities.txt existing in the Support directory in the Textmate
bundle (this means that I can no longer supply it as a singular
tmCommand), I genuinely do not know if this is a better method for
handling this sort of thing - perhaps someone on this list could help
clarify.
Incidentally, I think there was an error in the original version
which was inherited by the version you've supplied - the final tab
stop was not being preserved, to correct this remove the line 'text
+= "$0"' and replace 'print $text' with 'print "#{$text}$0"'.
[The GSpell bundle is available here][1]
[1]: http://homepage.mac.com/andy.herbert/.Public/GSpell.tmbundle.zip
Hey all. I just downloaded version 1.5.5 (1368) on OS 10.4.9.
1. Apple + Enter no longer moves the cursor down one line.
2. The ERB tag creator no longer works (I believe it was CTRL + Z)
Any ideas?
Hi Folks:
I just installed TM 1.5.5 (1383). I have perltidy installed in /usr/bin:
ls -lr /usr/bin/perltidy
-r-xr-xr-x 1 root wheel 97203 May 3 13:46 /usr/bin/perltidy
When I execute tidy from the perl bundle in TM, I get:
Couldn't find perltidy
Perltidy is available from here.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialo
g.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
I'm not sure why TM doesn't see perltidy in /usr/bin. Does anyone know
how to fix this?
Thanks,
David
Hi,
I'm used to TextMate with Full-screen, which is offered by SIMBL, but
when in full-screen, the drawer disappears for the screen. In fact,
it is still there, but moved to the other ede of the other screen
(yes, i have dual-screen).
To fix it, I've installed the Plugin from Hetima "The Missing Drawer"
which basically includes the drawer into the main panel. But it is
realy not convenient when the drawer is not needed, cause I haven't
found how to make it disappear...
Whatever, this led me to a feature request: a floating drawer.
Is there a way to have one? Even better, has anyone already built a
plugin or something for that purpose?
What do you think of it? A floating drawer, accessible via a
shortcut, controlled and navigated from the keyboard, would you take
benefit of this feature?
Xavier Cambar
I just noticed I get this from the command line on both individual
file and directories.
2007-04-30 19:52:04.221 mate[5199] An uncaught exception was raised
2007-04-30 19:52:04.221 mate[5199] [NOTE: this exception originated
in the server.]
*** Object does not implement or has different method signature
2007-04-30 19:52:04.221 mate[5199] *** Uncaught exception:
<NSInvalidArgumentException> [NOTE: this exception originated in the
server.]
*** Object does not implement or has different method signature
Trace/BPT trap
I just upgraded this morning. Not sure what I've done here...
Thanks,
Brett
>> I've got the completion set-up to complete from a document-parser
>> and a preference item. The parsed completions still work, but it's
>> stopped pulling completions from the preference item. I've checked
>> the item name in the bundle editor and the finder, and even tried
>> re-creating the completions from scratch, to no avail.
>
> It works while it's still lowercase, once it goes upcase it doesn't
> work anymore.
>
> thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Yes, you need to be matching lowercase letters. But sometimes the
match fails anyway.
I just tested again and it seems to be working. This is the worst
kind of bug, one that pops up randomly. I'll try to nail it down more
specifically and get back to you.
Hello,
I made some simple additions to the Objective-C Bundle, and was
wondering if anyone was interested in them.
* Comment Reflow - based on the Screencast by Allan
* Comment Code - comments out the current line of code (or the
selected lines of code), useful for debugging
* Uncomment code - undoes above
I know they are not very glamarous, but I was surprised they were not
already included in the bundle.
- Nithin
I'm having a problem with Code Completion. Here's the deal:
I've got the completion set-up to complete from a document-parser and
a preference item. The parsed completions still work, but it's
stopped pulling completions from the preference item. I've checked
the item name in the bundle editor and the finder, and even tried re-
creating the completions from scratch, to no avail.
Deleting the bundle and reinstalling it seems to fix the problem, but
only for a while. I've tried to track down what triggers its failure,
but I can't seem to isolate it.
Download: http://ollieman.net/files/beta.zip
If you could, install the beta and in Screenplay Mode type the
following:
int. location - d
And attempt to trigger the "Time of Day" auto-complete from the "D"
at the end of the line.
Any help is appreciated.
-- Oliver Taylor
I am getting the same problem when asking mate to open a file. If I use only "mate," TextMate opens. If I use "mate ~/Sites/file.html" TextMate comes to the front window, but the terminal gives the same "***Uncaught Exception" noted earlier.
Running on an intel Macbook Pro 10.4.9
Robert
On Wednesday, May 02, 2007, at 02:48PM, "Andrew Jaffe" <a.h.jaffe(a)gmail.com> wrote:
>Allan Odgaard wrote:
>> On 2. May 2007, at 23:23, Brett Terpstra wrote:
>>
>>> This is from mate.crash.log, sorry for the long paste:
>>
>> The crash log basically says ?the system function to send a message from
>> mate to TextMate crashed? -- so this says less than the Terminal output.
>>
>> But maybe there is some output (from TextMate) in the system console --
>> the first message you quoted said the error happened in the server
>> (TextMate), so if that is the case, details would likely have to be
>> found in hte console.
>>
>Alas, it just appears to say "mate crashed" and "crash report written
>to: /Users/jaffe/Library/Logs/CrashReporter/mate.crash.log"
>
>It seems to be happening with any use of 'mate'...
>
>Andrew
>
>
>
>
>
>
>______________________________________________________________________
>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
>
>
Could the Markdown bundle be modified to use a TM_MARKDOWN variable
(similar to the way the Subversion bundle uses TM_SVN) in the
"Convert document/selection to HTML" and other relevant commands?
I envision that the variable would contain whatever command(s) you
want to use for Markdown stuff and would default to the current
"Markdown.pl|SmartyPants.pl|perl…".
For example, I like to add the "--html4tags" option and get rid of
SmartyPants, but to do it currently, you need to modify the bundle.
(Which is fine in theory, but I worry that in practice, updates will
be missed.)
Or perhaps the "--html4tags" option should just be used/not used
automatically based on the value of TM_XHTML.
The current chunk of perl would probably be awkward to store in a
variable or to use as a default value, but perhaps it could be made
into a script in the Markdown bundle's support dir?
Just an idea. Thanks.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi All,
I've run into a glitch related to the C++ bundle of TextMate and
since I'm new to both TextMate and this list, I'm quite unsure how to
proceed with the bug report.
Here it is anyway. The symbol is not properly detected with
constructor in the form of:
Foo::Foo() :
boo(1)
{
}
"boo" is incorrectly detected as symbol instead of "Foo::Foo". My
bundle collection is quite up-to-date (rev. 7108).
Let me know if I should report this elsewhere.
Best,
Antoine
--
Antoine Beyeler
PhD Student
Ecole Polytechnique Fédérale de Lausanne
Laboratory of Intelligent Systems
EPFL-STI-I2S-LIS
Office ELE 132 - Station 11
CH-1015 Lausanne
Voice: ++41 21 693 73 54
Fax: ++41 21 693 58 59
Home page: http://lis.epfl.ch/119413
Project page: http://lis.epfl.ch/microflyers
Hi,
I have a question about TM's preference "word characters":
I also want to match a word if the word contains '\ '
Is this possible?
If I write into TM's preference "word characters" '_/\ ' it works
partly because TM takes all four characters, but I only want to match
'_' '/' '\ '
Any comments are helpful.
Thanks in advance.
Hans
I think TM do the things fine, as it simple and powerful renaming
files in the file drawer. That function has been for me really a
time-saver and is very natural that it was there as is. The solution
to the problem, IMHO, is to add a more complete behaviour to TM,
allowing Option-Drag of files in the drawer. Also, perhaps, info
for files (to make them executable, for example, via a dialog...
although I think this is not so important...)
This morning I downloaded version 1.5.5 (1138). I use TextMate with
Subversion every day. Today when I executed CTRL-SHIFT-A to do a
check in this got pasted into my document:
John Doe
12345 Main Street
Plainville
Any State 67890
USA
I searched through the bundles and did not see a bundle that used
that key sequence. I did notice that when I type that sequence the
Edit menu item at the top of the screen flashes briefly. Can anyone
shed any light on what might be causing this?
Thank you!
DigiLord
Hi
a newbie question, I think...
it was very easy :) to make a macro for quickfind the current word
(bind this to a Cmd-Opt-Shift-Left/Right arrows make move around the
source code really a charm).. but it has been a recurrent temptation
for me to wide the finding to the rest of the files in the project.
As I use the Cmd-Shift-F dialog I find it really more and more clever
(I used to miss the word boundaries check box.. but is ok as it is if
you know a little of regexps, of course, as it must be ;) The
problem is it was for me impossible to make the macro follow the Find
in project the current word... I suppose the problem exceeds the way
TM makes the project finding. TM establish a panel where you see
each line with the word highlighted (really clever) but it has no way
to jump to the word without the dialog... is it?
I can only remove one missing item from the subversion status window.
I if I try to remove another, it fails.
Steps:
1. Check the status on a folder.
2. A remove button appears next to files that are missing. Click the
remove button for a missing file.
3. Confirm the removal.
4. Try to remove another missing file.
5. Wait. Nothing happens.
The black loading gear just spins indefinitely in the top right hand
corner.
Andrew
The highlighting for the RoR bundle is wrong if an instance method is
named include:
object.include
highlights include as if it were an include at the top of the page.
It should recognize it as an instance method and leave it the normal
color.
TextMate colors the output of a diff (such as "svn di") which is
great, but I would like to change the colors. For example, I would
prefer that deleted lines are red on white instead of white on red (I
find the background color distracting).
I didn't see an entry in the TextMate Preferences for these. Am I just
missing it? Or can I change these via the defaults database or a
plist?
Thanks,
-Chuck
I have been running into a problem with Textmate that for me, anyway,
is a major hurdle. When I'm editing an HTML document, and I'm using
Textmate's project drawer, I often want to use the open document as a
basis for other documents. I go to "Save As..." and name the file, and
hit enter. In almost every other Mac OS X program that I know, that
command simply creates a new document with the old document as the
starting point.
However, with Textmate's project drawer, the old file has essentially
been renamed by the new one. I have to go back and re-add the old file
to have it show up in the Project drawer again.
I have searched the archives of the Textmate list, and one other
person has mentioned it - about a year ago. Some of the suggestions
included hiding the program and bringing it back, re-booting the
program, hiding the drawer - nothing works at all for me. I can't even
drag the old files form the finder, I have to go to FIle>Add.
So my question is: is there any hope for this bug to be resolved? Are
there any other fixes that I may not be aware of? I dunno - I would
think this would be a rather glaring problem that more people would be
clamoring to have fixed. I'm not a hardcore coder or anything - just
someone who writes his own HTML. It just seems sort of... well,
primary.
I do appreciate the power that Textmate has, and I can understand how
useful it can be to people's workflows. But every time I try to "get
into" it, something basic like this comes up as a roadblock and puts
me off from wanting to use it. (See my old discussion about the Open
Document in Running Browser command, which sadly still does absolutely
nothing) I want to love Textmate, I really do. Just any help at all
would be appreciated.
BTW: I'm on a MacBook Pro running OS 10.4.9 and using Textmate build 1.5.5/1368
Just noticed that getting documentation on a Ruby method (control H)
in TM 1.5.5. 1383 now gives an error:
web_preview.rb:70 in 'html_head' : undefined method '+' for nilClass
This was working for me on earlier TM versions and I haven't changed
anything in my Ruby setup for a long time.
Dave.
I've just been trying TextMate, trying to move away from TextEdit and
TextWrangler. One thing which is really bugging me is the way it underlines
hyperlinks on the 'Plain Text' setting. If I wanted that kind of behaviour
I'd use Microsoft Word! Is there a way I can set it up so that plain text is
exactly that, completely plain vanilla typing?
Thanks,
--
J. Simon van der Walt ----- Composer
<http://www.jsimonvanderwalt.com>
Is there a limit to the size of a plist for tm_dialog? If so, is
there a workaround? I think I'm hitting a limit, if I take this
shell escaped output and manually trim it, I can run it as a shell
script that seems alright:
/usr/lib/ruby/1.8/rexml/encoding.rb:22: command not found: /
Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/
Resources/tm_dialog -mp \<\?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\>photosets\</key\>'
' \<array\>'
[...hugefrickin'SNIP...]
' \<key\>title\</key\>'
' \<string\>Vista\ Point\</string\>'
' \</dict\>'
' \</array\>'
'\</dict\>'
'\</plist\>'
' select_photoset
/tmp/temp_textmate.1kkRWq:88:in /bin/bash: -c: line 1: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of filecall'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecall'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:49:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filefork'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:47:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filedialog'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in
Hello,
I noticed that my TextMate updated this morning to Version 1.5.5
(1383). Along with this came a new feature in the HTML Bundle which
I have found is causing me some annoyances. The feature I am talking
about is in response to ticket 20CC5FF4.
I am using PHP with Smarty as my template engine, and previously I
would include <!--{literal}--> in my code to escape Smarty parsing on
script blocks. Now when I do this the entire block of code becomes
commented out. While this is not a crucial bug it is a new annoyance
for me as it is very useful to have syntax highlighting on script
blocks.
Here is an example of my code:
<!--{literal}-->
<script language="javascript">
function foo() {
return "bar";
}
</script>
<!--{/literal}-->
If you require more information please just let me know. If anyone
has any idea how to fix this I would greatly appreciate it.
Thank you.
---
Philip Plante
913-302-9933
mail(a)pplante.com
Yesterday on the TextMate irc channel the [gSpell service for OSX][1]
was mentioned, which is a fairly neat way of spell checking (more
details on the gSpell homepage.) I decided to try and simulate the
service as a TextMate command which takes a selection and looks up
the most reasonable alternative with Google.
[The tmCommand is Available here.][2]
[1]: http://nspindel.com/gspell/
[2]: http://homepage.mac.com/andy.herbert/.Public/Check%20Spelling%
20Using%20Google.tmCommand
Hello,
Is it reasonable to have a 'find string' fail only because I happened to
have all the text selected in the document window? Changing the
selection text back to an ibar cursor seems to have made the sought
after string to be found without any other changes to the contents of
the document. That seems to have been my experience however I have not
re-examined this to be sure.
Cheers
AZ
> regarding to the multiple word checking I found a way to do it, but
> in Ruby I have no idea to get the REAL length of a (I guess) UTF-8
> string. The point is that s="Fähre" s.length returns 6 not 5. I tried
> to set $KCODE = 'UTF-8' in the script but it doesn't work.
Take a look at the new Rails Multibyte character support, I think
they tackled this problem already and the patches might point you in
the right direction. Hell, you might be able to swipe their string
extensions outright ;)
- Ben
Hello,
After a recent update (I'm not sure which one) to TextMate, I'm
finding that every time I write a comment in Python:
# whatever
and press Return at the end of the line, that TextMate is filling in
"# " at the start of the next line. This is really getting in my way,
and I'd like to turn it off -- but I can't find which trigger is
responsible for this.
I thought at first it'd be the "Continue Line Comment" snippet in the
Source bundle, but that triggers on Enter.
Is there any way to find out which command/snippet is responsible for
this without going through all bundles one by one?
Andrew
>Thanks. I like the --with-file, but the --with-directory could get
>annoying if you regularly want to save copies to a different
>directory.
Duplicating to the same directory is my most common use case. However there's always scope for both, ie adding the second
version to shift-apple-D.
If I remember correctly then --with-file will only work when --with-directory is specifed.
El 23/04/2007, a las 14:00, textmate-request(a)lists.macromates.com
escribió:
> De: Allan Odgaard <throw-away-1(a)macromates.com>
> Fecha: 23 de abril de 2007 03:03:18 GMT+02:00
> Para: TextMate users <textmate(a)lists.macromates.com>
> Asunto: Re: [TxMt] QuickOpen included files
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 20. Apr 2007, at 20:59, Juan Falgueras wrote:
>
>> I have change the source of the list of paths for QuickOpen
>> included files. It works fine:
>
> Thanks, seems to work fine here as well. Some comments:
>
> • we should differ between <system> and "user" include paths
actually the script does consider <system> and "user" paths and get
first the "user" path not looking for TM_HEADER.. when "user"
if (!$header) {
$line =~ /#\s*include\s*([<"])(.*?)[">]/;
$local = $1;
$header = $2;
}
if ($local eq '"') {
$t = $ENV{'TM_DIRECTORY'};
if (-f "$t/$header" ) {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
> • TM_HEADER_SEARCH_PATHS should default to the output from gcc/g+
> + (to not require user setup)
I have thought about it but, when? If you ask for echo | g++ -E -
v -x c++ - and then analyze the output (with the A.Tomazos perl
script, for example), you then don't want any TM_HEADER_SEARCH_PATHS,
but instead, to call to the g++ compiler for this. I've thought this
must be slow, and the answer to the previous query is near always
the same.
> • search path could depend on whether we are in source.c or
> source.c++ (the former has a smaller search path)
yes. The difference is (in my system):
C++
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/powerpc-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/local/include
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
versus
C
/usr/local/include
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
I have used the most frequently used C++ :)
> • additional search paths should be taken from the current Xcode
> project file, if any (and Xcode’s products build dir should also
> be a search path for frameworks)
oups! don't use XCode, sorry. I think it must be done asking XCode
(via AS) or hacking the XCode project file... (complicated and dirty) :(
> • need to handle framework inclusion, e.g. <Cocoa/Cocoa.h>
you are again wright:
% locate Cocoa.h
/Developer/ADC Reference Library/documentation/Cocoa/Cocoa.html
/Developer/ADC Reference Library/documentation/Cocoa/Conceptual/
CarbonCocoaDoc/Articles/CarbonInCocoa.html
/Developer/ADC Reference Library/documentation/Cocoa/Conceptual/
CarbonCocoaDoc/Articles/CarbonUIInCocoa.html
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Versions/A/Headers/Cocoa.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
Cocoa.framework/Versions/A/Headers/Cocoa.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h
/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/Cocoa.h
is not found by this simple script and there are:
% find /System/Library/Frameworks/ -iregex ".*\/Headers\/.*\.h" | wc -l
2112
many.
It was not a problem for me since I am working in a UNIX standard
programming way...
> • need to handle import as well as include (in the regexp)
is is easy to add it
>
> And if I understood Chris correctly, he’d like to optionally
> search under /Developer/SDKs/«chosen SDK».
As far as I have understood this is included in your Frameworks plus
XCode dirs expansion search
>
> Are there other things we’d like to support?
(;
Hi,
Two things tripped me up just now using the reST bundle:
(1) I'm not sure if it's broken or not, but the Validate Syntax
command didn't work for me as it stands, and it's the first line
that's tripping it up for me:
`TRST=${TM_PYTHON:=rst2html.py}`
I found that most of the rest commands used `TRST=$
{TM_RST2HTML:=rst2html.py}` and when I switched it in for that, it
seems to be working.
Just out of curiousity, where/how is this $TM_RST2HTML environment
variable getting set, anyway (and what's `:=`)?
(2) I feel like the "Convert Document to HTML" command should have
its output set to "Create New Document" instead of replacing the reST
in the file w/ the HTML so you don't blow out the file you've been
working on.
Thanks,
-steve
Hi,
I have to write much XSL stuff. I use among others the snippet
collection of Andreas Schöller (BTW thanks for that).
He was so kind to add information about the valid values of parameters.
example:
Snippet ou =>
<xsl:output
name=""
encoding="utf-8|ASCII|US-ASCII|iso-8859-1|utf8|KOI8R|cp1251"
indent="no|yes"
use-character-maps="mapping1 mapping2"
method="text|html|xml|xhtml"
/>
As usual I can use TAB to jump to each ${n:} token.
Now my question:
Would it be possible to convert e.g. the token 'text|html|xml|xhtml'
into a pull-down menu?
I tried it this way:
After pressing TAB TM highlights 'text|html|xml|xhtml'; I invoke a
command:
`echo -en "$TM_SELECTED_TEXT" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`
and I can choose what I want. After that, of course, I cannot use TAB
to navigate through the snippet any more, unfortunately.
I also tried a snippet like:
<xsl:output method="${1:`echo -en "text|html|xml|xhtml" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`}" encoding="${2:`echo -en "utf-8|ASCII|US-ASCII|iso-8859-1|utf8|
KOI8R|cp1251" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`}"/>
In principal this works and the TAB behaviour isn't disturb but I
have no visual feedback what I'm typing while the menus popping up
and the TAB mechanism starts at token 1 which I already entered.
Would it cost much effort to implement such a behaviour? Meaning if I
press TAB and within the new selection occurs a given delimiter (here
| ) or tag or what ever that the snippet parser will show this
selection as pull-down menu automatically without distroying the TAB
mechanism.
And, would it make sense as a global snippet feature?
Regards,
Hans
Forgive me if this is way too rudimentary of a question, but: I use TextMate
to compose some of my blog posts, and sometimes I copy/paste in text from
interviews I've done via email (or even chat). Is there any way to make
TextMate recognize when there's been a line break between two paragraphs and
auto-insert break tags? As it stands now, I need to go in and insert two
tags after every line-separated paragraph my interviewees write, which is
becoming a PITA.
Any thoughts are much appreciated
David Chartier
--
My work:
professional blogger, The Unofficial Apple Weblog: http://www.tuaw.com
Assistant Lead Editor, Download Squad: http://DownloadSquad.com
My play:
1FPS: http://www.dcharti.com/blog/
Vox: http://dcharti.vox.com
Hi
using Perl and C/C++ etc.. I think it would be very useful to
recognize (grammatically) when a call to a function is done. I know
this can be near impossible to solve (with regexps) in the Perl case,
since there is no need and many people not use parenthesis after the
name of the function. Anyway if you use them it should easily be
easy to recognize as function call.
If function calls are grammatically recognized, then the power of TM
will be increased with thinks like colouring, jump to the definition
(only active when in a function call scope), etc.
Juan F.
I don't know if this has been suggested before, but I'd like to right
click on a selection or an identifier (without having to double click
it first) and choose "Find in Project" which would give search results
in all files in a project (or a directory if I had opened one).
This would be great for quickly exploring code bases.
Is there a way to hook this up now given TextMate's flexibility and
the existence of the Edit -> Find -> Find in Project ?
-Chuck
Hi!
I'm behind a proxy here, and I'd like to use the blogging bundle.
Unfortunately, there's not much of information on this in the
internet, so could someone here help me out?
My favourised solution would be that TM takes over the system proxy
out of OS X's "Location"s. But a hint on how to set the proxy via env
would help, too :-)
TIA
André
Hi All
I am slowly making language bundles for the various languages used on
the Tandem (HP) NSK systems. So far I have been working on TAL, DDL
and the Make file syntax used by ACI. I also hope to do a COBOL/
SCOBOL bundle as well, as time available happens.
My question is this. At the moment it appears that all languages must
have their own separate bundle. Given that quite a few of these (in
particular DDL/Make and a couple of others) are going to be just
syntax highlighting, is it possible to have a combined bundle of
languages? or do I just suck down each desired language (there's not
many - maybe 6 or 7 by the time I eventually finish) having its own
bundle entry?
Cheers
Dean.
I'm having a problem populating the symbol list in my files. I have
created the following preference item:
{ showInSymbolList = 1;
symbolTransformation = 's/(^KW: )(.*)(%)/$2/;';
}
My document is filled with lines such as
KW: postscript essenceoftruth freedom % (fold)
However, the symbol list remains empty. I have double checked that
the scope selector for the preference matches the global scope of the
document and have closed the bundle editor window. Can someone help
me figure out why this is not working?
Thanks,
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, everyone.
It seems, that in Bulleted Lists the URLs don't get matched as
underlined, if they are in a scope of a bulleted list.
Wouldn't it make sense to change the Grammar, so it has begin/end
clauses for bulleted Items and then make an include rule for it ?
One Side effect also, of this is that hitting the Enter key has no result.
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGL/LF8tSzPOYuZvQRArbrAJ41564Jp/4Qco4TkJCskRB69SDTVQCgjYYV
co5cFXikJOmH/FeoQkbrY64=
=NuSj
-----END PGP SIGNATURE-----
It occurred to me that quite a few bundles (okay, at least one) make
use of /tmp.
I've been using /tmp/<uid>/ as several other applications under OS X
seem to use this directory, though I just realized it doesn't always
exist so I'm not sure which app creates it in the first place. I note
some applications also use /tmp/$USER/... Of course, there's always
just using /tmp directly.
Anyway, I'm wondering if it might be useful for:
a) All TextMate bundles to use a standard per-bundle temporary location.
b) For TextMate to create the top of this location at start and clean
it up at quit.
For example, TextMate might set TM_TMPDIR to /tmp/textmate-$USER/
<bundle_name> for each bundle, and create /tmp/textmate-$USER at
startup and remove (recursively) /tmp/textmate-$USER at quit.
Mostly thinking out loud.
Useful or not worth the trouble?
j.
Hi Folks,
Is there method to get a list of all current labels when writing a
tex document? Sometimes that would be easier for a proper selection.
Thanks
Christian
I'm writing a bundle for GNU Forth - mainly for giggles although I'll
release it if it gets good enough. I'd like ⎋ completion to be able to
complete Forth words - which can include any non-space character. Is it
possible to define the 'word characters' on a per-grammar basis?
--
Andy Armstrong, hexten.net
Since I'm lazy by nature :), when I create a new Project I don't save it
right away.
So yesterday, I shut down my Mac and TextMate prompted me to Save the New
Project, which I did. The project had about 15 or 20 tabs opened at the
time.
This morning I start up TextMate but none of the previously opened files
appeared. The project window was blank. I assume this is not expected
behavior since all my other projects open with the files they closed with. I
also had 2 other Projects visible at the time I shut down but likely it
doesn't affect this bug.
Thanks,
Ed
I'm working on adding a command to the TWiki bundle that creates a new
document with the raw text of an indicated TWiki URL. (I'll submit a
patch once I'm happy with it.) It would be nice if my command would
set the language of the new document created to "Twiki". How do I do
that?
I thought perhaps I could define a macro (and add it to the bundle)
that calls my command and then sets the language, but I couldn't seem
to get the macro recorder to record my command (or setting the
language).
--
Daryl
Hi mate(r)s!
I am a passionate hattrick[1] player, and I don't doubt that there
are some others around on this list as well. Now, has anyone ever
tried to create a hattrick bundle to write forum entries and
announcements? Actually, there's not much functionality needed, just
some formatting (like [b]bold[/b] and stuff), plus specialities like
[player=<putplayerIDhere>].
Anyone ever done this? I have tried to create a new bundle with a new
language, but I failed - no ruby skills (yet - learning it).
Hints?
TIA
André
[1] http://www.hattrick.org/
Hi
I installed ruby 1.8.5 and rails on mac osX 10.4.9 via darwinports.
Ever since, using the run command (cmd-R) for ruby programs from
textmate (latest version) gives me:
"/bin/bash: line 4: Sat Apr 21 17:18:00 CDT 2007 /usr/local/bin/ruby:
No such file or directory"
Interestingly, I get the same message if I try to run a python program
from textmate as well.
There is a file 'ruby' in /usr/local/bin/ and a file 'ruby' in /usr/
bin/ruby
>From the command line, "whereis ruby" gives me /usr/bin/ruby
Additionally, if I do the following:
>> 1. Open a new TM document
>> 2. Type echo $HOME
>> 3. Press control-R on that line of shell code
I get:
/Users/charleslsnyder
I previously posted this in the ruby group, but it is really a textmate
problem, and it was suggested I move the question to this group...
TIA
C L Snyder
A while ago there was a post about LaTeX syntax highlighting in the case of
\newcolumntype{R}{>{$}r<{$}}
where the math mode highlighting would leak outside the brackets.
Apparently this is now highlighted correctly in the stable version of
TextMate. Quoting from the original thread:
>> Should more complicated examples ever arise, I guess I can just put
>> the problematic lines into a separate file and use \input.
>>
> Or just let us know, and we'll try to fix it ;)
>
> Haris
Well, if you're asking for it, Haris, I'm frequently using constructs
like this one:
\newcolumntype{q}{>{$\rm}l<{$}}
which, unfortunately breaks the highlighting. My current workaround is this:
\newcommand{\eat}[1]{}
\newcolumntype{q}{>{$\rm\eat$}l<{$}}
But then again, this breaks syntax highlighting for another editor,
which I'm using on a Linux system.
Any ideas?
cheers
Hendrik
As we've discussed before, the current compiler selection logic (in the
Typeset & View command) is a bit of a mess. Below is a suggestion for how it
might be rationalised. Once we've agreed on a plan, I'm happy to implement
it.
One complication is that it's sometimes useful to have compilation under the
control of a custom script – either one that you've written for your
specific project, or a generic compilation tool such as latexmk. The way
that TeXShop deals with this is to have special program-designators "mytex"
and "mylatex", which signify that a user-specified compilation script should
be used. I propose that we adopt this mechanism.
The first task is to decide on the compilation route to use. This will be
one of: tex, latex, pdftex, pdflatex, xetex, xelatex, mytex, mylatex. I
propose trying the following things, in order:
1. Use the %!TEX TS-program specification in the source file.
2. Use the %!TEX TS-program specification in the master file.
3. Use the value of the $TM_LATEX_PROGRAM variable.
4. Sniff for \usepackage commands that suggest (DVI)latex/xelatex should be
used.
5. Default to pdflatex.
If the resulting value is mytex/mylatex, then:
1. Use the script specified in the variable $TM_LATEX_MYTEX or
$TM_LATEX_MYLATEX,
2. Use the script specified in the TeXShop configuration, if any:
defaults read TeXShop TexScriptCommand
defaults read TeXShop LatexScriptCommand
3. Give up, explaining why.
So, the variables $TM_LATEX_COMPILER and $TEX_PSTRICKS would no longer be
used. For backwards compatibility, we could continue to allow the value of
$TM_LATEX_COMPILER to trump all other considerations (perhaps with a warning
in the compilation window to the effect that this variable is deprecated,
and explaining the new way to do it).
Any thoughts?
Robin
Hi,
I really love TextMate but I hate drawers... I just tried Coda
(http://www.panic.com/coda) and I like its nice UI so, there is any
plan to implement a sidebar like that instead of the actual TextMate
project drawer?
In addition, I'd like to have multiples sidebars like:
- project sidebar
- local/remote file browser sidebar
- class/symbol browser sidebar
- custom sidebar
Luca
Calling all flex/flash/as developers:
We need to come up with a unified bundle design for these technologies. I
talked about about this with Allan and it sounds like there are several
people working on these same things. Here are my recomendations:
AS3 bundle:
Should contain ActionScript 3 language syntax, snippets, etc. that are
relevant only to AS3 as a language. (just as the ruby bundle only contains
ruby stuff and not rails stuff).
Flex2 bundle:
Should contain any extensions to the AS3 bundle that are relevant to flex.
Should contain MXML language syntax, snipptets, etc.
Should contain MXML and AS3 templates for new applications and components.
Should contain commands to build components and applications using the flex2
framework standalone lib. ("FlexMate")
Thoughts? Ideas? Improvements?
-dave
I'm looking for a way to start/stop the rails server (ruby script/server)
from TextMate. Ideally having the output popup and tail in a new window.
I've been trying to find a way to do this or to create an addition to the
bundle to do this but I've just started using TextMate (2 days) and as such
haven't had much luck.
One thing I tried was just having a command run 'ruby script/server' and
having the output as HTML but it didn't work.
Thanks
--
Ryan Galgon
rgalgon(a)gmail.com
I know this was briefly covered once, but I'm afraid I'm not getting
it. If I want to return two arguments with returnArgument:, how do I
change the name of the selector to pass them?
Thanks,
Brett
Is there a Mac OS X sh command for quoting text (to
Internet-standard)? I'm writing a "Save to URL" command to complement
the Twiki bundle "Open URL" command I described in a previous email,
and I need to convert all the "special characters" in the entire
document to the '%xx' quoted form so I can append it to a URL.
If there is no such thing, I'll write a Python script instead.
--
Daryl
Dear all,
I don't know whether this is a common feature request. But
nevertheless, ... ;)
(I also found nothing about it in this mailing list.)
Would it be possible to add the following feature to the normal Find
dialog?
Given a string "c( 1, 22, 333 , 4444 )" in a line.
I want to highlight item by item ('1', '22', etc.) by using the
normal Find function (APPLE+G).
To do so I would write for instance this regexp:
[,\(] {0,}(.*?) {0,}[,\)]
The problem is that the current Find function doesn't select only the
content of the regexp group '(.*?)', it also highlight the commas and
brackets.
My suggestion would be to change the Find function in such a way,
that if there is at least one group specified by '()' within the
regexp it only highlight the content of it. It also could select all
occurrences of it at ones, if desired.
This could be chosen with two options within the Find dialog, e.g.
'Match only group' and 'Match all groups'.
I don't know whether it would cost much effort to do this, but I'd
find it quite useful to have such a option.
Of course, one coud write a separate command using 'Insert Snippet'
but 'Insert Snippet' has some limitations.
Or is there an other way to do it with TM?
Thanks,
Hans
So somewhere along the line did the default markdown bundle loose the
snippets for links? The menu structure seems to be in the bundle
editor, but both the bundle in the app package and in svn seems to of
lost the links? Am I going bonkers here?
Sam D
Hi there,
Just playing with the R console mode. It's nice, so thanks to the writers!
I often want to edit collections (R lists), and it would be nice if tabbing
inside a collection had the action of moving the selection to the next item
in the list.
Would it be possible to write a command (to hard for a snippet, I think)
which takes over the tab key when there is no snippet bound to it, and
detects if the user is in a c(x,y,..) structure, and selects the next item
in the list?
So if the cursor is in item 1 like this
> a = c(1|11,222)
Then hitting tab would move to highlight all of item 2. Preferably hitting
shift-tab would move to the next previous item, or in front of the
collection if already at the head.
PS: One thing that keeps me in R, is the useful last command function (like
in tcsh, hitting "up" and "down" scrolls through a command history,
replacing the current line. Is it possible to scan the doc, make a list of
lines, and just give this as a drop down menu when up is hit hit?
Not that I want to dredge up a poo flinging flame fest, but did anyone
else see that with the release of Panic's Coda [0] they are using the
"Subetha Engine" [1]? Interesting that they've licensed the
collabrative part of the editor.
Dan
[0] http://www.panic.com/coda/
[1] http://codingmonkeys.de/subethaengine/
How do I limit the range of a find and replace operation? Say I want to
change "foo" to "bar" within one function in a file, but *only* in that
function. Is there a way to limit the find/replace operation to the
current scope, block, or selection?
I can kinda-sorta do it in an awkward way by pulling up the find dialog,
filling in my find and replace strings, closing the dialog, selecting the
region, and doing "replace all in selection". What I'd like is to have
the find dialog only operate on an already-selected region. Can this be
done?
Also, "replace all in selection" acts in an unexpected way with
column-based selections. Say I have the following text:
Lorem ipsum dolor Lorem ipsum dolor
Lorem ipsum dolor Lorem ipsum dolor
Lorem ipsum dolor Lorem ipsum dolor
|---|
I want to change the first "ipsum" to "foo" in every line, so I make a
column selection (marked by the |---| region) and do
replace-all-in-selection. I end up with:
Lorem foo dolor Lorem ipsum dolor
Lorem foo dolor Lorem ipsum dolor
Lorem foo dolor Lorem ipsum dolor
The five-letter word got replaced with three letters and two extra spaces.
If I do the opposite and replace "ipsum" with a longer word, the rest of
the lines are shifted rightward accordingly. My expectation is that when
I'm replacing with a shorter word the lines get shifted leftward to fill
the gap, not that my replacement string will be padded with spaces. Bug
or feature?
--
Steve King, <steve(a)narbat.com>
Ahoy Allan,
Any chance of making the bundle editor able to be ordered above all
the other panels and windows and everything?
I'm always keeping the "Go to Symbol" open and whenever I open the
Bundle Editor I have to close it.
That's starting to get old.
I know you aren't making changes to the 1.x branch anymore but,
could there be some secret nib change or defaults setting that I
could change to make that work?
thanks
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
I just got a new Mac and now I can't figure out how I got ^H working
before. Right now it works for standard Ruby stuff, but it can't find
stuff in gems, in particular Rails stuff. However I can use ri from
the terminal to find Rails rdoc just fine. Is there something else I
need to do? I'm sure it's something basic.
Thanks!
Steve
if the last line of the javascript file is a comment with no new line
at the end of it, then the command "Minimize current file" produces
this output:
/Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:73:in `<=': comparison of Fixnum
with String failed (ArgumentError)
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:73:in `mynext'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:122:in `action'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:168:in `jsmin'
from /Library/Application Support/TextMate/Bundles/JavaScript
Tools.tmbundle/Support/bin/jsmin.rb:197
The problem lying in the mynext method of jsmin.rb, where the while
(true) loop checking for the end of the comment doesn't check for
EOF. should be a simple fix.
Hi
I'm don't know if this has been a discussed topic in any other place,
this list or wiki, but is only a short question:
are there been considered the possibility of nested snipped?
of course I suppose this, as a major change, should be supported in TM2.
The current problem is a frequent one: you are inside and snipped
"influence area" (for example a C "for") and then in it you need
another snippet.. when you use the tab you will get in the outside of
the last snippet but have loosed any outer snippet control.
--- Juan Falgueras
I have change the source of the list of paths for QuickOpen included
files. It works fine:
-----------------------------------
#!/usr/bin/env perl
# to know header paths for your precompiler do:
# echo | g++ -E -v -x c++ -
# and save the header paths as path1:path2:etc
# in the TM pref env variable TM_HEADER_SEARCH_PATHS
$hpaths = $ENV{'TM_HEADER_SEARCH_PATHS'};
$line=$ENV{'TM_CURRENT_LINE'};
$header=$ENV{'TM_SELECTED_TEXT'};
if (!$header) {
$line =~ /#\s*include\s*([<"])(.*?)[">]/;
$local = $1;
$header = $2;
}
if ($local eq '"') {
$t = $ENV{'TM_DIRECTORY'};
if (-f "$t/$header" ) {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
@incs = split(/:/, $hpaths);
foreach $t (@incs) {
if (-f "$t/$header") {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
print "";
exit 1;
-----------------------------------
Juan F.
Hi All,
I know this has been asked before (by me) and that it probably has more
to do with the status of work in Movable Type itself, but I was
wondering about work towards getting Movable Type categories to work
with either of the textmate blogging systems...
Andrew
* Moved token file into ~/Library/Preferences
* Fixed error checking on search function
* escaped search string to fix "spaces" bug
* added proof-of-concept command for hotlinking a thumbnail to
original/large size image
* minor tweaking and cleanup
If you're blogging and using Flickr, let me know how this works for you!
Thanks,
Brett
I’ve just released version 0.5 of BlogMate. This release adds a few
fixes for Movable Type blogs and adds support for posting to Twitter
from BlogMate (without requiring command line PHP or anything insane
like that).
<http://www.ditchnet.org/wp/2007/04/22/twitter-from-textmate-with-
blogmate-05/>
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Is there currently any type of command/etc to get the character count
in current doc or selection?
I see the command in the Text Bundle 'Statistics for Document (word
count)' but this doesn't report the char count...
thanks!
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
I've been playing with the Flickr API. The ruby wrapper needed a lot
of work and I've only begun tweaking it, but here's the start for
anyone who's interested. It allows you to insert an image tag for an
image from either a specific photoset or from a search of your own
images. It uses simple popup dialogs and if you have a ton of images
in a result set (100+), might be a little awkward. Each command lets
you choose from the available sizes for each image.
You need to run the authorize command first, which will open a
browser window to authorize the bundle. Then return to TextMate and
confirm the dialog and it will write a token to the bundle
directory. As I'm writing this, I'm realizing I should probably put
that somewhere else, but it works for now.
I'm thinking about eventually making an image browser, but it would
be slow so I need to think about caching the files, and at that
point... I have to figure out if it's worth the time. The goal is to
make it simple to insert Flickr images in your blog posts, so we'll
see where it goes.
I'm semi-new to the whole textmate thing and loving the bundles,
however i seem to have had a cracking idea which could speed up our
company's development no-end.
What i plan on doing is coding a script in preference this would sit
somewhere on our server so it could be easily globally updated. This
script would ask a few questions and then generate a zip file or a
new folder in the repository, not sure which yet. The wish then is
to take these files and plonk them into a project. Now im pretty
sure the way to do this would be to pass back to the script that
opened the browser window some sort of reference. Do you guys (and
girls) know of a way to either a) post something back into a script
after a window has opened or find out the url of a web window when it
closes?
Many thanks.
Lawrence
I'm getting the following when trying to convert to pdf.
Couldn't find htmldoc
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Markdown.tmbundle/Support/bin
/Users/normanjenson/Library/Application Support/TextMate/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/Users/normanjenson/Library/Application Support/TextMate/Support/bin
I'm trying to convert php pages to something readable and then create
a pdf document. I drag the php page to a blank markdown page and
then try to convert to pdf. Also if I had a number of pages and
wanted page breaks between them in the pdf can anyone tell me how to
do it.
Thanks in advance for any help.
Norm
Hello,
I try to use the Blogging-Bundle. I setup an account:
# Blog Name URL
Just a blog http://xxxxUSERxxx.wordpress.com/
When I try to fetch post I get this error message:
Error: Invalid Endpoint specified: http://xxxxUSERxxx.wordpress.com/
What is the problem? I am using 1.5.5
Hi All,
I'm a fairly new TextMate user, and have a few things I miss from
previous editors. I'll just mention two:
1) Is there a way to see the size of the current selection on the
status bar at the bottom of the screen?
i.e. If I have 10 lines selected to show...
Line: 42 Column: 24 Selection: 10
I often edit data files where I want to (say) remove the last 100
lines, and that isn't easy to do.
2) Why does the column edit mode select an extra line at the end?
Say I've selected a block of five lines:
1
2
3
4
5
If I press the option key to get the first column, and then type
something, it also has a selection on the line after 5.
That is, you get:
//1
//2
//3
//4
//5
//
That always messes me up a bit.
I'm enjoying my new life in TextMate, and thanks for any suggestions.
-Craig Schmidt
Hi the list,
While trying to use the "Latex template" command, I received the
following error:
/tmp/temp_textmate.xPSxGN:14: undefined method `exit_tool_tip' for
TextMate:Module (NoMethodError)
I am using the (obviously latest) cutting-edge version of Text-Mate,
and neither the Latex bundle nor any plugin have been manually
modified or updated.
Thanks in advance,
Xavier Cambar
I am a new Textmate user so I'm still figuring out how things work.
Is it really not possible to have multi-keystroke key equivalents for
bundle items? With so many items available I think this would make it
a lot easier to have mnemonic shortcuts that way. Sure, I can (I
think, haven't actually tried it) fake this by messing with Textmates
KeyBindings.dict, but that doesn't feel right.
--
Sven Axelsson
I found a discussion regarding adding support for the Verilog
language dating back to 2005 on this list. Has anyone made any
progress on adding a language bundle for Verilog since then?
Thanks,
HM
Hi all,
I've written a command that performs an AppleScript to look up the
selected text in a FileMaker database. I have the command Output set to
"Replace Selected Text". It's all working well, except that the result
that's replacing my selection is always being followed by a newline--which
is definitely not being added by my AppleScript or FileMaker.
Any ideas on how to get rid of the added newline?
--
Tim Mansour <tim(a)neologica.com.au>
The current method the command Quick Open of the C bundle does use
is look for the file in several funny directories that not always are
then same c/c++ are looking into.
Is not easy to know where the cpp preprocessor look for the included
files. The only method I have found is from Andrew Tomazos and is a
small Perl script that makes c++ have mistakes and then shows us the
real places where it is looking into.
Running it once is enough, I think, and then pick up the directories
for a script to quick opening included files.
I would like to know who is the C bundle maintainer for to share this
things with him.
I also find a bit complicated the current way of making changes (yet
small changes) and then you will be out of updates of the official
bundle since yours will be always loaded before the official one.
Tx.
#!/usr/bin/env perl
$line=$ENV{'TM_CURRENT_LINE'};
$header=$ENV{'TM_SELECTED_TEXT'};
if (!$header) {
$line =~ /#\s*include\s*([<"])(.*?)[">]/;
$local = $1;
$header = $2;
}
if ($local eq '"') {
$t = $ENV{'TM_DIRECTORY'};
if (-f "$t/$header" ) {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
@incs = qw(
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/powerpc-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/local/include
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
);
foreach $t (@incs) {
if (-f "$t/$header") {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
print "";
exit 1;
I wrote:
> Oops. I got caught submitting a change without testing it. I don't
> seem capable of never repeating that mistake--that's where automated
> tests come in handy.
Is there any facility for creating automated tests for language grammar rules?
It would be useful to be able to define tests within rules or patterns such as:
test_matches = " _italic_ ";
test_no_matches = "snake_case_word";
...or perhaps...
test_matches = { " _italic_ " = 1; "snake_case_word" = 0; "
_italic_number_1_ _italic_number_2 " = 2; };
And then be able to run tests for a specific bundle (say from within
the bundle editor) like one would unit tests, and see if they're green
or if there's a problem.
Would it be possible to write a BundleTester bundle? I guess one
would just need to parse the indicated bundle's language property list
and run any tests found using Oniguruma. Would these test properties
be otherwise ignored?
--
Daryl
On 4/18/07, Daryl Spitzer <daryl.spitzer(a)gmail.com> wrote:
> > I got around to apply it, thanks.
>
> Thank you.
>
> > > While I was in there, I made the same change to the
> > > 'markup.bold.twiki' match.
> >
> > This won't work, since * is not a word character, so \b will actually
> > have the opposite effect, i.e. making foo*bar*fud match the inner
> > word as bold.
>
> Oops. I got caught submitting a change without testing it. I don't
> seem capable of never repeating that mistake--that's where automated
> tests come in handy. (Which leads me to a question which I will post
> separately.)
>
> > Instead it should probably be (?<!\w) and (?!\w) before/after the
> > match. I didn't make this change though.
>
> I think you made the right call. Unlike snake_case_words, I have yet
> to run across a real-world need for asterisks embedded within words.
> We should wait to "fix" it until it is proven to be a problem.
>
> --
> Daryl
>
>
> On 4/13/07, Allan Odgaard <throw-away-1(a)macromates.com> wrote:
> > On 5. Apr 2007, at 22:09, Daryl Spitzer wrote:
> >
> > > It is a bug that words surround by underscores in snake_case_words
> > > in a TextMate Twiki document are italicized. (In this example, the
> > > word "case" is italicized.) When displayed in TWiki, those words
> > > are not italicized.
> > >
> > > I made a small change to the Twiki language (in the Twiki bundle)
> > > to correct this--see the 'markup.italic.twiki' match in the
> > > attached patch.
> >
> > I got around to apply it, thanks.
> >
> > > While I was in there, I made the same change to the
> > > 'markup.bold.twiki' match.
> >
> > This won't work, since * is not a word character, so \b will actually
> > have the opposite effect, i.e. making foo*bar*fud match the inner
> > word as bold.
> >
> > Instead it should probably be (?<!\w) and (?!\w) before/after the
> > match. I didn't make this change though.
> >
> >
> >
> >
> > ______________________________________________________________________
> > 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
> >
>
I don't know if this is a problem with TextMate or a "feature" of OSX, but
I have a problem with the "Save As..." dialog. I want to be able to type
a full path into the Save As: filename box. So if I want to save the file
as "foo.txt" in the "/tmp" directory, I just want to type "/tmp/foo.txt"
rather than mousing around the dialog to navigate to the "/tmp" directory,
then entering the name "foo.txt".
(And, as luck would have it, MacOS "helpfully" hides the "/tmp" directory
from that dialog, so I can't even navigate there! But that's beside
the point; I could fix that with a symlink.)
As it is, if I type "/tmp/foo.txt" into the dialog I get a file in my home
directory named ":tmp:foo.txt". The translation of slashes to colons
makes me think this is probably a mis-feature of OSX rather than TextMate,
but even so, is there a way around it?
--
Steve King, <steve(a)narbat.com>
It is a bug that words surround by underscores in snake_case_words in
a TextMate Twiki document are italicized. (In this example, the word
"case" is italicized.) When displayed in TWiki, those words are not
italicized.
I made a small change to the Twiki language (in the Twiki bundle) to
correct this--see the 'markup.italic.twiki' match in the attached
patch. While I was in there, I made the same change to the
'markup.bold.twiki' match. But I intentionally didn't change the
'markup.raw.fixed.twiki' match, since I don't think it's likely that
someone will type a word with a pair of '=' embedded in it. Let me
know if you think I should resubmit the patch with this change (or
other changes) included.
--
Daryl
Thanks for pointing me in the right direction.
On my macbook, I found the keystrokes to be fn-option-F2.
On Tuesday, April 17, 2007, at 10:16AM, "Ciarán Walsh"
<ciawal(a)gmail.com> wrote:
> On 17 Apr 2007, at 17:43, Robert Ullrey wrote:
>
>> I am wondering if there is a way to get the systems contextual
>> menu to appear with suggested spellings without having to resort to
>> control-click?
>
> You can use ?F2 on the misspelled word.
Not sure if there's a wish list form somewhere anyways I have two semi odd
ones...
It would be handy if there was a overlay feature in textmate much like you
get in photo editing software. What would be really nice if there were X
layers and if you could choose to name each layer and hide and show a layer.
Also if each layer had a transparency setting it would be nice so you could
have 10 layers that combined would appear to be almost one document. Maybe
you could combine 10 peoples comments on your file.
My second wish list item is meta data for a text file. That is I could tag
line 1 as having meta data of "this line is great". If a user adds more text
to the document and line 1 is pushed down to line 10 that meta data should
stay with the original data it was tagged on.
These requests stem from code reviewing.
Not saying anyone gives a rats about or that this is even remotly possible
or usable. The ideas were on my mind and I thought I would post them.
Bob
Hi!
I used the blogging-bundle before w/out any problems. 5 minutes ago I
fired up Textmate and when I use the cat-snippet from the blogging
bundle I get the following error:
/Users/nik/Library/Application Support/TextMate/Support/lib/dialog.rb:
5: warning: already initialized constant TM_DIALOG
/tmp/temp_textmate.b4fiwD:5:in `require': No such file to load -- /
lib/blogging.rb (LoadError)
from /tmp/temp_textmate.b4fiwD:5
Does anyone know what to do?
Niels
Hello,
I'm looking at creating a bundle that can be used to provide peer code
reviews making use of TextMate for the majority if not all of the
process. I'm looking for high level input/suggestions. Does anyone else
think this would be helpful to them? Anyone else want to work on this with
me?
The high level process of this goes like this:
( A database is used to store a code file for review and all comments
submitted against that file. This allows metrics to be reported on as well
as allowing any number of people to review the same code at the same time
from many different locations. This also allows the status of comments to be
tracked and changed and what not. I think I can push and pull data from a
database pretty easily from TM. I'm looking at targeting PostgreSQL.)
0. Code creator submits a file to be reviewed via TM.(Submitting
actually inserts the code into the database)
1. Reviewer/s retrieves the stored file from the database and the file
contents are displayed in TM(This is all done via TM).
2. Reviewer/s comments on a line by line basis or select multiple lines and
comment via TM. Each comment should have a status such as BUG, STANDARDS
BROKEN, GENERAL, etc. I'm thinking of using GUI integration to allow data
input.
3. Code creator can comment on the comments left by a reviewer/s via TM.
Example "I did this because of XYZ".
4. Code creator makes fixes in their code via TM based on reviewer/s
comments.
5. Code creator submits changed code.
6. Reviewer/s can then flag a comment as FIXED, COMPLETED, CLOSED etc. These
would be user configurable values I'm just showing these ones as an example.
7. Repeat 0 to 6 until all comments are in a FIXED/COMPELTE/CLOSED state.
8. Mark review in the database as completed. This will keep anyone from
adding new comments. But the process above will all be in the database for
future reporting and what not if it's needed.
Things I wish I could do, but not sure that I can:
0. I can't mark a line in TextMate with a little graphic in the left
gutter to indicate that line has a comment on it. I do see maybe using the
HTML viewer like the TODO bundle does as an alternative. Is it possible to
highlight a line with a specific color on the fly? Say mark a line with a
BUG comment and the line will turn red and lines with comments marked as
GENERAL are yellow etc etc?
Thanks in advance for any input
Bob
Thought you would be interested in attending ApolloRanch, a
mini-conference for Adobe's new Apollo application. The event, held May
5th at the Fiske Planetarium in Boulder, Colorado, will provide you with
all the information and guidance you need to begin deploying Apollo
internet applications.
Adobe will be providing all training materials and take-aways, while
Creation Chamber and Xylem Interactive provide the food, beer, soft
drinks and venue.
Hope to see you there! (http://apolloranch.eventbrite.com)
- The Creation Chamber and Xylem Interactive Teams
<http://apolloranch.eventbrite.com?invite=MjYyNTkvcGxvY2t3b29kQGNyZWF0aW
9uY2hhbWJlci5jb20vMQ%3D%3D%0A>
ApolloRanch - Hosted by Creation Chamber and Xylem Interactive
Date
May 5, 2007
Time
5:00 pm - 11:30 pm
Location
Fiske Planetarium at the University of Colorado
2414 Regent Drive
Boulder, CO 80309
Hosted By Creation Chamber, Inc. & Xylem Interactive
Click for Details and Registration Information
<http://apolloranch.eventbrite.com?invite=MjYyNTkvcGxvY2t3b29kQGNyZWF0aW
9uY2hhbWJlci5jb20vMQ%3D%3D%0A>
http://apolloranch.eventbrite.com
<http://www.eventbrite.com/inviteaction?i=MjYyNTkvcGxvY2t3b29kQGNyZWF0aW
9uY2hhbWJlci5jb20vMQ%3D%3D%0A&o=1>
<http://www.eventbrite.com/aff?a=e&p=mgregform>
This email was sent by Eventbrite,
your total online solution to publish,
register, manage and promote events.
Host Your Events With Eventbrite
<http://www.eventbrite.com/aff?a=e&p=mgregform>
+ ----------------------------------- +
This message is for the named person's use only. It may contain confidential,
proprietary or legally privileged information. No confidentiality or privilege
is waived or lost by any mistransmission. If you receive this message in error,
please immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender. You must not, directly or indirectly,
use, disclose, distribute, print, or copy any part of this message if you are
not the intended recipient. Creation Chamber, Inc. reserves the right to
monitor all e-mail communications through its networks. Any views expressed
in this message are those of the individual sender, except where the message
states otherwise and the sender is authorized to state them to be the views
of any such entity. Thank You.
+ ----------------------------------- +
Sometime ago, Haris Skiadas wrote a nice spell checking bundle that allowed me to replace misspelled words with a key stroke rather then using the contextual menu. With control-; a cocoa dialog would appear with suggested spellings. I think it was run through ispell or aspell. I am wondering if there is a way to get the systems contextual menu to appear with suggested spellings without having to resort to control-click?
Thanks
Robert
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I thought, that was an Issue with my default Theme ( Texari ), but it isn't.
I can't get the line highlight to work in either themes.
( Using build 1368 )
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJIOp8tSzPOYuZvQRAqhAAKDQr8mcLMsnU/b02UVMqm8FS/ORpQCgzU2O
pO2GJs9aikM6MAUwnTTh5wg=
=R+qN
-----END PGP SIGNATURE-----
Hi text-peeps,
Is there a way to auto-select everything within a coding braket or
with in speech marks?
if(foo==bar)
{
select everything in here
}
and
<input type="text" value="select everything in here" />
?
Thanks,
DanC
--
danCourse
www.dancourse.co.uk
07790 13 83 23
Flash2.0 & PHP Freelancer
On Sun, 15 Apr 2007 16:35:47 +0200, Allan Odgaard wrote:
> On 15. Apr 2007, at 14:24, William Uther wrote:
>
>> How do I stop textmate from re-indenting on ';'?
>
> Bundles → Show Bundle Editor.
>
> Locate the macro named ‘Insert ; and Indent Line’ in the C bundle
> and delete it.
Thanks. I'd looked in the C bundle, I'd just missed that macro - it
was obviously blending into the foreground.
I changed the activation to a ; tab trigger rather than deleting the
macro entirely.
Be well,
Will :-}
Two quickies:
1. Is there a hot key to navigate to errors in the run window (after
running a unit test say)? I'm thinking of something like C-x` in
emacs. I know I can click on the line with the error, but then I have
to use the mouse :(
2. Is there a hot key to close all open tabs in a project, without
closing the project itself?
Thanks.
Steve
Hi there,
I've been digging the latex bundle for the past 6 months, but have a
serious productivity killer after updating the bundle from svn last
week:
Whenever I invoke "Insert Environment based on current word" (
Command-{ ), I got some temp file garbage. Searching the lists, I saw
that changing the bundle to "insert text" instead of snippet provides
more info.
Here is what gets spit out:
/tmp/temp_textmate.Z8ujaw:3:in `require': No such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui
(LoadError)
from /tmp/temp_textmate.Z8ujaw:3
So the require statement on line 3 of the bundle snippet fails.
Looking in SharedSupport/Support/lib, there is no ui.rb file, so that
is why it is failing.
I am using TextMate Version 1.5.5 (1372), and the svn bundle is up to
date as of revision 6993.
Any help appreciated - perhaps I should just role back to a differen
svn bundle version?
Jim
I use the Insert Close Tag command all the time when writing XML in
TextMate. Unfortunately, this command is inherited from the HTML
bundle, and that causes problems due to the differing semantics
between HTML and XML. Specifically, HTML defines certain self-closing
tags, such as <link>, but in XML these tags may have content and are
not self-closing. As a result, the Insert Close Tag can break in XML
mode. For example:
1. Create a new document
2. Switch to XML mode
3. Type <link>
4. Type some text
5. Call the Insert Close Tag command by typing Command + Option + .
Expected behavior: TextMate inserts the closing </link> tag
automatically
Actual behavior: TextMate beeps at you
Trevor
Hello
When I choose from the bundle Latex > Edit Configuration File
The in TextMate opening file is rather confusing. When I open this file
in Proprety List Editor ists clear, but in TextMate its rather cryptic ...
Is there something wring with my configuration, or is that normal. Also
I dont know, how to actually use this file.
Thanks
David
Hi!
Does GetBundle update all bundles to the state of the SVN-version or
only those bundles installed with GetBundle? I think about the LaTeX-
bundle for example.
Niels
--
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin
Inspired by the customization screencast [1], I decided to write a
reflow command for us Java users. It's designed for reflowing JavaDoc
comments. Based heavily on Allan's original code, it works well
except for one problem: The reflowed text is never indented, even
though I've set the output to "Insert as Snippet." Anyone know how to
fix this?
Here's the command:
#!/usr/bin/env ruby
# Grab comment text
txt = STDIN.read
# Remove beginning and ending slashes
txt = txt.gsub(%r{\A[ \t]*/|\s*\*/\s*\z}, '')
# Remove leading bullets
txt = txt.gsub(/^[ \t]*\*+[ \t]*/, '')
# Escape single quotes
txt = txt.gsub(/'/, "'\\\\''")
# Use fmt command to reflow text
txt = %x{ fmt <<< '#{txt}' }.chomp
# Put leading bullets back in
txt = txt.to_a.join(' * ')
# Escape special snippet characters
txt = txt.gsub(/[$`\\]/, '\\\\\0')
# Put cursor marker on last line
txt = txt.sub(/\n?\z/, '$0\0')
# Put beginning and ending slashes back in
txt = "/**" + txt + "\n */\n"
print txt
I've set the input to "Selected Text or Scope" and the scope to
"comment.block.documentation.java".
Thanks,
Trevor
[1] http://macromates.com/blog/archives/2006/04/12/customization-
screencast/
Hi List,
I'm using textmate now for round about two months (c,c+
+,latex,css,php,sql,html,css) and now i'm searching for a manual or
something to create my own templates.
Robert
:wq!
Hi all,
How do I stop textmate from re-indenting on ';'?
Textmate and I mostly agree on indenting, but we disagree about
how to indent some things. I'm happy with it getting this roughly
right when I hit return to get to a new line, BUT, if I change the
indenting and then type the rest of the line, having it screw up my
indenting when I reach the end of the line is REALLY annoying. And
no, just typing the ; first is not the answer I'm looking for.
I like the indenting being roughly right when I add a new line...
I just wish it wouldn't change it once I've explicitly set it (unless
I explicitly ask it two, and typing a ; to end a line is not asking).
Be well,
Will :-}
When working on R source files I am unable to enter dollar signs in
column editing mode. When I select a column and type $, only one is
entered in the first line and the column mode is left. This happens
regardless of width of selection.
On my system I can replicate this by creating a new R file consisting of
foo_bar
foo_bar
selecting the column with the underscore and typing $
which yields:
foo$bar
foobar
with the caret after the $.
Oddly this doesn't occur if I type another character before typing the
dollar sign.
TIA
Peter
>>> blah['name|']
>>> So, now what do I do???
>>>
>
> I think a nice new feature here would be to allow the null-action
> of "tab"
> to be to jump over any auto-created paired-chars. Then we could
> just tab out
> of the nest and carry on. It must be very seldom that users want a
> real tab
> character inside paired-characters.
I have disabled Auto Pairing in preferences and have defined several
commands like the next one for () pair. I feel it more intuitive and
coherent: you have a kind of snipped only when you are writing under
the assumption you are are inside pairs but you must ask for it apart
the usual ( character that is yet there. _For me_ is very stupid to
need to delete the ) char so frequently because you usually are re-
touching code, not writing it down like a literary work...
#!/usr/bin/env ruby
if ENV['TM_SELECTED_TEXT'] == nil
print '($1)$0'
else
$s = ENV['TM_SELECTED_TEXT'].to_s.gsub(/(?=[$`\\])/, '\\')
print "(#{$s})$0"
end
--- Command (Opt-Cmd-8, from old Mathematica), Use Selected text of
nothing, insert as a snipped
Then when you want a single (, use (.. and when you want a (|)|
use the command.
Hi Folks,
I am working on my german thesis and and arranged all tex files
within a project. One part - it's the abstract - is in english. When
I edit this english abstract TM slows down dramatically. Im not a
fast typing user, but after writing a sentence I have to wait until
TM catches up.
Parallel I checked the cpu usage and raises up to 60%. I do not have
this problem with other german tex files within my project.
Any hints how this problem could be solved? If the file is required,
just give me a shout.
Christian
Hi,
I'm new to TextMate and have the following question:
After highlighting rows of text, I can type Command+] and Command+[ to
change indentation levels, but I would like to hit Tab and Shift-Tab
instead (or as well).
Is there a way to configure TextMate for this?
-Chuck
I've finished a fairly stable version of an Actionscript3 Bundle for
Textmate.
With the upcoming release of Flash CS3 I couldn't wait any longer!
To all that need or want to play please visit:
http://blog.chromaticrain.com/page_id=5 Actionscript3 Bundle for TextMate
If you would like to support this bundle you can email me, leave comments,
or simply post a link on your blog or somewhere on the internet!
Cheers,
Robert Payne
Flash Developer
--
View this message in context: http://www.nabble.com/Actionscript3-Bundle-For-TextMate-tf3575232.html#a999…
Sent from the textmate users mailing list archive at Nabble.com.
OK, so we know there are plenty of people here that would like to be
able to do everything with the keyboard so they have to reach over to
the mouse as little as possible.
Me, I confess I use the mouse ALL the time:
- Moving more than 2 lines? Use the mouse...
- Making ANY kind of selection? Use the mouse...
- Browse through code? Use the mouse...
...
I never could get the hang of using a gazillion shortcuts to make the
cursor fly, and I have been programming professionally (well, at
least making a living of it) for 25 years.
So am I really alone, or are there others out there like me? If yes,
please speak up! I think we need to join and speak up, so that Alan
knows we exist and stops catering exclusively to the "keyboard only"
users!
My name is Gerd, and I like to use the mouse!
I've used TextMate off and on for a while. But, something is driving
me nuts, and it's so painful that I must not be doing something
correctly. I need help.
If I type
blah['
then TM will obligingly add
']
So my cursor (|) ends up like this
blah['|']
I guess it's trying to help me. So, I type 'name' and my cursor is
now like this
blah['name|']
So, now what do I do???
I want keep typing. I want to get outside the ']', not inside it.
But, I can't figure out how. Right now, I just hit right arrow twice.
But, this is such a pain, it can't be right. What am I missing?
-Paul
Hello:)
First, actually I work with TexMate and gwtex based on TL 2007 but I
need for my work
at school a portable PC (with Ubuntu )
With Ubuntu, I installed (by hand) TL2007, because Debian and Ubuntu
works only in "experimental" with
TL 2005.
I would like to have the same distibution on OS X and Ubuntu, The
only solution is to install TL2007 on the MAC
but i would like to know if they are some difficulties :
With linux i've texmf in /$HOME and texlive in /usr/local/texlive
with now 2007/ and texmf-local/
I think there is no problem to work with TextMate and TL2007 but can
you confirm that !
Actually with gwtex, i have a problem with "documentation for
package", perhaps i need to make some adaptations for this with TL2007
Greetings Alain Matthes
Bask in the glory of true awesomeness!
Export Ruby strings directly into TextMate from irb or anywhere Ruby
runs locally!
http://pastie.textmate.org/53655
"I want this text in textmate".to_mate
…will create a new temp file with the filename of the object_id and
then open it in TextMate.
There's also String.to_safari()
If you want to keep the temp files filename the same, just pass in
the filename with the method.
"I want this text in textmate".to_mate('fred')
Enjoy
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Total bummer, 'cause that means I'll have to wait *at least* that long for TM2.
It's what's best right? Right? RIGHT? Oh god... (breathe oliver breathe)
Hello,
I am a relatively new TextMate user and am still learning all the ins
and outs of it, but it certainly is a lot of fun :) When I am doing
python development, a lot of times I just want to set a breakpoint in
my code, and the way to do that in python is:
import pdb; pdb.set_trace()
Typing that each time got boring, so I wrote this little snippet for
it. I would like some feedback, especially with the way I am
figuring out the right indentation level :)
------------------------------------------------------------------------
#!/usr/bin/env python
# This TextMate command inserts a breakpoint ABOVE the currently
selected line
# Yi Qiang (yqiang _at_ gmail dot com)
import os
import sys
text = sys.stdin.readlines()
line_number = int(os.getenv('TM_LINE_NUMBER')) - 1 # TM counts from 1
spaces = (len(text[line_number]) - len(text[line_number].expandtabs
(4).lstrip()))
debug_string = (' ' * (spaces)) + 'import pdb; pdb.set_trace()\n'
text.insert(line_number, debug_string)
sys.stdout.write(''.join(text))
------------------------------------------------------------------------
-
Cheers,
Yi
--
http://www.yiqiang.net
Inspired by a [recent thread][1], I've come up with a couple of
commands to facilitate using TextMate's project features on a remote
directory. To sum up, the problem is: I want to work with files in a
TextMate project from the local filesystem (for speed, Subversion
compatibility, and other reasons), but the files I'm working on are
useless unless they're on some remote machine.
I say "remote projects" in quotes because the project is actually
local, but created from a directory that is intended to be an exact
copy of one from a remote machine. The commands are similar in spirit
to some of Dreamweaver's "Site" features, for those who care about
such things. I've been using these commands pretty heavily on a
project at work and am pleased with the results, so I thought I'd share.
The two commands are "Get Remote Project" and "Upload Project
Changes". The commands have a global scope (ideally, they would be
scoped to "files that belong to a project", but I don't know if
that's possible). They essentially save all files and call `rsync -
au` on your directory in different directions. The basic process is
that you create a project in TextMate from a local directory, then
set a variable in that project called `WHERE_I_CAME_FROM` that
contains a location rsync understands, like `user@server:/remote/
path`. When you're ready to see the changes on the server, use the
"Upload Project Changes" command.
## Setting up a project
Here are two ways to set up such a project:
(Note the trailing / on the rsync "source" path. It matters.)
* Get the files and create the project
1. Make a local copy
mkdir foo
rsync -au user@server:/remote/path/ foo
2. Open the directory as a project in TextMate
mate foo
3. Set `WHERE_I_CAME_FROM` in the project to `user@server:/
remote/path/`
4. Save the project
* Create the project and get the files
1. Create and open the project in TextMate
mkdir foo
mate foo
2. Set `WHERE_I_CAME_FROM` in the project to `user@server:/
remote/path/`
3. Run the "Get Remote Project" command (currently ⌃⌘P)
4. Watch your files appear in the drawer
5. Save the project
I prefer the second method right now, but if the final two steps in
the first method could be automated (set a project variable and save
the project), the whole process could be turned into a shell script,
or possibly a command in TextMate.
## Subversion
I haven't had any issues using this method when the remote directory
in question is a Subversion working copy. You basically end up with
another working copy (and it's normal with Subversion to have working
copies spread everywhere, so this is no big deal). I've been doing
commits and other modifications to the working copy locally and have
had no issues using rsync to update the remote side afterward
(although, theoretically, you could acheive the same thing by running
`svn update` on the remote copy).
## Outstanding Issues
* Deleted files
If you delete a file from your disk/project, the deletion won't
be replicated. You need to either remove the file in both places
manually, or if using Subversion `svn update` the other end after the
removal has been committed to the repository. There is a `--delete`
option in rsync, but I consider it too dangerous to be on by default.
* Keyboard Shortcut
⌃⌘P wasn't my first choice. I'm open to suggestions.
According to the manual, project related shortcuts should use ⌃⌘,
but I don't think this has been stricly followed which made it hard
to find something. There are other commands using ⌃⌘P and since
they have a more specific scope than these "remote project" commands,
they will win in those scopes.
As for overriding ⌘S to run these commands, that would be
convenient in many situations, but innappropriate in most. The
commands really only need to be used if you're in a project and
`WHERE_I_CAME_FROM` is set, so it wouldn't really be appropriate to
have ⌘S trigger them unconditionally as they currently exist.
* Extended Attributes
If you're going from Mac to Mac, you might consider adding the -
E option to the rsync command to be sure metadata is included. It's
not there by default because most of my remote machines are running
Solaris and -E makes rsync on Solaris poop in its pants. Perhaps
there should be another variable that could be set in TextMate or a
specific project that holds your preferred rsync options for these
commands.
* Project variable name
I'm sure I should use something more grown-up sounding than
`WHERE_I_CAME_FROM` in the long run, but what? I didn't see any
naming conventions for project variables in the manual. Are `TM_*`
variables meant to be only things that the application is aware of or
should all TextMate specific variables start with that?
## Other commands?
I've thought about adding a TextMate command that will do an `svn
update` on the remote path. This would be for deleted files or for
people who aren't comfortable updating the various `.svn` directories
using rsync (I know you're out there).
I've also considered adding a command that will run `rsync -aun` in
both directions to show you what will happen if you run one of the
commands without actually making the changes. Would either of these
be useful?
If you have need for something like this, try these commands out and
let me know what you think. Thanks.
[1]: http://thread.gmane.org/gmane.editors.textmate.general/18573
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi Haris,
> This still doesn't answer my question. The question really is how
> does the FILENAME part look like exactly. Doesn't matter if you used
> \include or \input, but the script used to be a bit picky about the
> FILENAME. For instance it used to be that it would only work with
> files with extension .tex, though that was recently fixed.
Needless to say, Haris, this answered my issue. The template I was
using had quotes around the filenames, on removal, it all works fine.
I'm not sure whether the quotes are correct style or not, but this was
the problem, everything works now.
Perhaps if quotes are common, then these can be set to be ignored by TextMate?
Thanks again for your efforts!
Suhaib.
Hi,
A small problem using xelatex on TM:
I've just decided to use the Mactex install because the Fink XeTeX packages didn't seem to work out of the box for me. I've managed to get a sample file to compile and produce a pdf using Texshop configured with this new XeTeX installation.
When I want to process the same file with Textmate, i get an error:
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6
...
! LaTeX Error: File `article.cls' not found.
Looking at the log file from Texshop reads, "(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls" where Textmate would complain and stop.
What do i need to configure for textmate to look for files in this texlive distribution?
(Pdflatex files using tetex work fine)
Best regards,
baptiste
----- Message d'origine ----
De : "textmate-request(a)lists.macromates.com" <textmate-request(a)lists.macromates.com>
À : textmate(a)lists.macromates.com
Envoyé le : Jeudi, 12 Avril 2007, 13h00mn 40s
Objet : textmate Digest, Vol 31, Issue 28
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. Re: textmate Digest, Vol 31, Issue 27 (adawson(a)vixiom.com)
2. Re: Re: Announcing LaTeX Watch 2.0, with PDF support
(Robin Houston)
3. Re: Command-backtick not working?!?! (Victor Maurice Faubert)
4. Re: Re: Announcing LaTeX Watch 2.0, with PDF support
(Alain Matthes)
5. Re: Command-backtick not working?!?! (Michael Larocque)
6. Re: Command-backtick not working?!?! (Michael Larocque)
7. Re: Command-backtick not working?!?! (Michael Larocque)
8. Re: Command-backtick not working?!?! (Charilaos Skiadas)
9. Re: Command-backtick not working?!?! (Michael Larocque)
10. Unwanted newline after Replace Selected Text (Tim Mansour)
11. Re: LaTeX Bundle: Auto-completion broken in multi-file
projects (Suhaib Fahmy)
12. LaTeX with TL2007 (Alain Matthes)
Out of Office Reply:
I'm travelling Tuesday April 10th through Thursday the 12th.
thanks,
Alastair
I'm glad it's working now, and your PGF/TikZ illustrations are beautiful!
Perhaps I should remark that I'm not _advocating_ the use of PostScript specials. It's simply that I have mundane reasons for using them, currently. The first version of Watch was written for my own use, so I made it work with the documents that I'm writing. Since then, I've tried to make it more generally useful, hence PDF being the default mode in the current version.
I look forward to the day when I never need to use another PostScript special, and I can do everything with PDFLaTeX.
Robin
At 12:00 +0000 2007-04-11, textmate-request(a)lists.macromates.com wrote:
>Content-Transfer-Encoding: 7bit
>From: Charilaos Skiadas <skiadas(a)hanover.edu>
>Precedence: list
>MIME-Version: 1.0 (Apple Message framework v752.2)
>To: TextMate users <textmate(a)lists.macromates.com>
>References: <FE72A777-CD43-45F0-91D5-6A07CFDC8EBD(a)prolumina.com>
>In-Reply-To: <FE72A777-CD43-45F0-91D5-6A07CFDC8EBD(a)prolumina.com>
>Date: Tue, 10 Apr 2007 12:49:19 -0400
>Reply-To: TextMate users <textmate(a)lists.macromates.com>
>Message-ID: <9964CE10-4767-4DCA-924D-4B36A280BB42(a)hanover.edu>
>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>Subject: Re: [TxMt] Command-backtick not working?!?!
>Message: 15
>
>
>On Apr 10, 2007, at 11:51 AM, Michael Larocque wrote:
>
>>Hi folks,
>>
>>I have a weird TextMate problem on my MacBook Pro. (My other
>>systems don't exhibit this behaviour) On this system, when I
>>command-` to switch windows in TextMate, it 'beeps' at me and
>>doesn't switch windows. All other apps (iTerm, Safari, Mail, etc)
>>work as per usual. Probably the only 'customization' that I've done
>>is that I keep svn up'ed in /Library/Application Support/TextMate.
>>I'm really at a loss as how to debug this. Any ideas greatly
>>appreciated.
>>
>I would bet that somehow by accident cmd-` has been bound to some
>bundle item. Press ctrl-cmd-T, then click on the magnifying glass
>and set it to "key equivalent", and press cmd-`, and if it shows any
>items in the list then those are your culprits.
>>Carpe viam,
>>Mike
>>
>>Michael Larocque
>>Chief Cook and Bottle Washer
>>Prolumina Communications Inc.
>>http://prolumina.com/~mlarocque/
>>
>
>Haris Skiadas
>Department of Mathematics and Computer Science
>Hanover College
I can confirm this behaviour as well. In my case, it's an old
Machine Name: Power Mac G4 (AGP graphics)
Machine Model: PowerMac3,1
CPU Type: PowerPC G4 (2.9)
running Mac OS X 10.4.9. The list shown is empty,
yet I get a beep and no window switch.
However, looking at Keyboard Shortcuts in System Preferences
shows I had Keyboard Navigation unchecked; checking it makes
it work correctly. Perhaps this is Michael's problem?
--
Vic
Le 11 avr. 07 à 14:11, Robin Houston a écrit :
> I'm glad it's working now, and your PGF/TikZ illustrations are
> beautiful!
>
> Perhaps I should remark that I'm not _advocating_ the use of
> PostScript specials. It's simply that I have mundane reasons for
> using them, currently. The first version of Watch was written for
> my own use, so I made it work with the documents that I'm writing.
> Since then, I've tried to make it more generally useful, hence PDF
> being the default mode in the current version.
>
> I look forward to the day when I never need to use another
> PostScript special, and I can do everything with PDFLaTeX.
>
> Robin
>
Thanks for your script!
If you want, you can send to me some files (.tex and .pdf) of your
work and I try to see if I can make a package with tikz for you.
I know diagrams package and I think with tikz, we can make something
more simple with only pdflatex.
I know xy and i work with it the first time but how it's possible to
work with the xy syntax ???
( very strange but I liked this package !)
Alain
On 2007-Apr-11, at 02:19 , Allan Odgaard wrote:
> On 10. Apr 2007, at 17:51, Michael Larocque wrote:
>
>> I have a weird TextMate problem on my MacBook Pro. (My other
>> systems don't exhibit this behaviour) On this system, when I
>> command-` to switch windows in TextMate, it 'beeps' at me and
>> doesn't switch windows. All other apps (iTerm, Safari, Mail, etc)
>> work as per usual. Probably the only 'customization' that I've
>> done is that I keep svn up'ed in /Library/Application Support/
>> TextMate. I'm really at a loss as how to debug this. Any ideas
>> greatly appreciated.
>
> Some things mentioned here: http://macromates.com/wiki/
> Troubleshooting/KeyBindings
>
> The key is a system key, so as such, TM itself should not see nor
> handle it, which makes it slightly more weird.
>
> Try create a new user account to test if the problem is local.
>
This is getting really weird. It is no longer a problem. Here's what
I've done since yesterday:
My TextMate project files and some of the projects are on an 2GB
encrypted disk image. As part of some 'housekeeping' duties, I wanted
more space on the disk image, so I created a new 4GB disk image and
copied all of the files over to the new disk image. Upon opening up a
couple of the projects in their new location, command-` now seems to
work. Bizarre.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
On 2007-Apr-11, at 07:11 , Victor Maurice Faubert wrote:
>
> I can confirm this behaviour as well. In my case, it's an old
> Machine Name: Power Mac G4 (AGP graphics)
> Machine Model: PowerMac3,1
> CPU Type: PowerPC G4 (2.9)
> running Mac OS X 10.4.9. The list shown is empty,
> yet I get a beep and no window switch.
>
> However, looking at Keyboard Shortcuts in System Preferences
> shows I had Keyboard Navigation unchecked; checking it makes
> it work correctly. Perhaps this is Michael's problem?
> --
> Vic
Thanks Vic, but this wasn't my problem.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
On 2007-Apr-11, at 10:34 , Michael Larocque wrote:
>
> On 2007-Apr-11, at 02:19 , Allan Odgaard wrote:
>
>> On 10. Apr 2007, at 17:51, Michael Larocque wrote:
>>
>>> I have a weird TextMate problem on my MacBook Pro. (My other
>>> systems don't exhibit this behaviour) On this system, when I
>>> command-` to switch windows in TextMate, it 'beeps' at me and
>>> doesn't switch windows. All other apps (iTerm, Safari, Mail, etc)
>>> work as per usual. Probably the only 'customization' that I've
>>> done is that I keep svn up'ed in /Library/Application Support/
>>> TextMate. I'm really at a loss as how to debug this. Any ideas
>>> greatly appreciated.
>>
>> Some things mentioned here: http://macromates.com/wiki/
>> Troubleshooting/KeyBindings
>>
>> The key is a system key, so as such, TM itself should not see nor
>> handle it, which makes it slightly more weird.
>>
>> Try create a new user account to test if the problem is local.
>>
>
> This is getting really weird. It is no longer a problem. Here's
> what I've done since yesterday:
>
> My TextMate project files and some of the projects are on an 2GB
> encrypted disk image. As part of some 'housekeeping' duties, I
> wanted more space on the disk image, so I created a new 4GB disk
> image and copied all of the files over to the new disk image. Upon
> opening up a couple of the projects in their new location, command-
> ` now seems to work. Bizarre.
Weirder and weirder. A few hours later and the behaviour is back! And
I haven't changed anything system or application-wise. And it's only
happening with TextMate. Does anyone have any ideas about debugging
this? Is there some utility that will allow you watch key presses and
follow their path through the system?
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
On Apr 11, 2007, at 4:40 PM, Michael Larocque wrote:
> On 2007-Apr-11, at 10:34 , Michael Larocque wrote:
>>
>> This is getting really weird. It is no longer a problem. Here's
>> what I've done since yesterday:
>>
>> My TextMate project files and some of the projects are on an 2GB
>> encrypted disk image. As part of some 'housekeeping' duties, I
>> wanted more space on the disk image, so I created a new 4GB disk
>> image and copied all of the files over to the new disk image. Upon
>> opening up a couple of the projects in their new location, command-
>> ` now seems to work. Bizarre.
>
> Weirder and weirder. A few hours later and the behaviour is back!
> And I haven't changed anything system or application-wise. And
> it's only happening with TextMate. Does anyone have any ideas
> about debugging this? Is there some utility that will allow you
> watch key presses and follow their path through the system?
What if you just open 5 new untitled windows and have no projects
open? Can you still not toggle among them with cmd-backtick?
> Carpe viam,
> Mike
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
On 2007-Apr-11, at 15:20 , Charilaos Skiadas wrote:
> On Apr 11, 2007, at 4:40 PM, Michael Larocque wrote:
>> On 2007-Apr-11, at 10:34 , Michael Larocque wrote:
>>>
>>> This is getting really weird. It is no longer a problem. Here's
>>> what I've done since yesterday:
>>>
>>> My TextMate project files and some of the projects are on an 2GB
>>> encrypted disk image. As part of some 'housekeeping' duties, I
>>> wanted more space on the disk image, so I created a new 4GB disk
>>> image and copied all of the files over to the new disk image.
>>> Upon opening up a couple of the projects in their new location,
>>> command-` now seems to work. Bizarre.
>>
>> Weirder and weirder. A few hours later and the behaviour is back!
>> And I haven't changed anything system or application-wise. And
>> it's only happening with TextMate. Does anyone have any ideas
>> about debugging this? Is there some utility that will allow you
>> watch key presses and follow their path through the system?
>
> What if you just open 5 new untitled windows and have no projects
> open? Can you still not toggle among them with cmd-backtick?
Thanks Haris. I think I've solved the problem. Of course, I thought
the issue was gone earlier today, so...
I have Menu Master installed, and I just added TextMate to the its
exclude list. That seems to have fixed it. However, I have MM
installed on my G5 and TM isn't in the exclude list, and I don't see
the problem on that system. As well, this issue only arose on my
MacBook Pro within the last week or so. So there could be some other
subtle issues.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Hi all,
I've written a command that performs an AppleScript to look up the
selected text in a FileMaker database. I have the command Output set to
"Replace Selected Text". It's all working well, except that the result
that's replacing my selection is always being followed by a newline--which
is definitely not being added by my AppleScript or FileMaker.
Any ideas on how to get rid of the added newline?
--
Tim Mansour <tim(a)neologica.com.au>
Hi Haris, thanks for the reply.
> When you say that you have a master file listed in the project
> options, I assume you mean that the variable TM_LATEX_MASTER is set?
> Is it the full path to the file, or just a relative path? Try with a
> full path also, see if that fixes it.
Yes, TM_LATEX_MASTER is set in the project preferences and it's the
full path. As I say, compiling the code works flawlessly.
> How do your \include commands look like?
I was just using \input{FILENAME} in the master file, but tried
\include as well, makes no difference, I get the same error. Does
anything need to be added to the chapter files? At the moment, they're
just snippets of code starting with a \chapter{}.
> Are you running the newest version of the bundle, checked out from
> svn and updated?
I just followed the instructions on your site to get this up and
running. Retrieved the LaTeX bundle and updated, now at revision 6976.
But is there anything that needs to be done to get the app to use the
new bundles or is it automatic?
> How and when was LaTeX installed in your system?
Used the i-Package installer around 2 months ago.
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
Thanks for your help
Suhaib.
Hello:)
First, actually I work with TexMate and gwtex based on TL 2007 but I
need for my work
at school a portable PC (with Ubuntu )
With Ubuntu, I installed (by hand) TL2007, because Debian and Ubuntu
works only in "experimental" with
TL 2005.
I would like to have the same distibution on OS X and Ubuntu, The
only solution is to install TL2007 on the MAC
but i would like to know if they are some difficulties :
With linux i've texmf in /$HOME and texlive in /usr/local/texlive
with now 2007/ and texmf-local/
I think there is no problem to work with TextMate and TL2007 but can
you confirm that !
Actually with gwtex, i have a problem with "documentation for
package", perhaps i need to make some adaptations for this with TL2007
Greetings Alain Matthes
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hi Haris, thanks for the reply.
> When you say that you have a master file listed in the project
> options, I assume you mean that the variable TM_LATEX_MASTER is set?
> Is it the full path to the file, or just a relative path? Try with a
> full path also, see if that fixes it.
Yes, TM_LATEX_MASTER is set in the project preferences and it's the
full path. As I say, compiling the code works flawlessly.
> How do your \include commands look like?
I was just using \input{FILENAME} in the master file, but tried
\include as well, makes no difference, I get the same error. Does
anything need to be added to the chapter files? At the moment, they're
just snippets of code starting with a \chapter{}.
> Are you running the newest version of the bundle, checked out from
> svn and updated?
I just followed the instructions on your site to get this up and
running. Retrieved the LaTeX bundle and updated, now at revision 6976.
But is there anything that needs to be done to get the app to use the
new bundles or is it automatic?
> How and when was LaTeX installed in your system?
Used the i-Package installer around 2 months ago.
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
Thanks for your help
Suhaib.
Hi folks,
I have a weird TextMate problem on my MacBook Pro. (My other systems
don't exhibit this behaviour) On this system, when I command-` to
switch windows in TextMate, it 'beeps' at me and doesn't switch
windows. All other apps (iTerm, Safari, Mail, etc) work as per usual.
Probably the only 'customization' that I've done is that I keep svn
up'ed in /Library/Application Support/TextMate. I'm really at a loss
as how to debug this. Any ideas greatly appreciated.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
At 12:00 +0000 2007-04-11, textmate-request(a)lists.macromates.com wrote:
>Content-Transfer-Encoding: 7bit
>From: Charilaos Skiadas <skiadas(a)hanover.edu>
>Precedence: list
>MIME-Version: 1.0 (Apple Message framework v752.2)
>To: TextMate users <textmate(a)lists.macromates.com>
>References: <FE72A777-CD43-45F0-91D5-6A07CFDC8EBD(a)prolumina.com>
>In-Reply-To: <FE72A777-CD43-45F0-91D5-6A07CFDC8EBD(a)prolumina.com>
>Date: Tue, 10 Apr 2007 12:49:19 -0400
>Reply-To: TextMate users <textmate(a)lists.macromates.com>
>Message-ID: <9964CE10-4767-4DCA-924D-4B36A280BB42(a)hanover.edu>
>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>Subject: Re: [TxMt] Command-backtick not working?!?!
>Message: 15
>
>
>On Apr 10, 2007, at 11:51 AM, Michael Larocque wrote:
>
>>Hi folks,
>>
>>I have a weird TextMate problem on my MacBook Pro. (My other
>>systems don't exhibit this behaviour) On this system, when I
>>command-` to switch windows in TextMate, it 'beeps' at me and
>>doesn't switch windows. All other apps (iTerm, Safari, Mail, etc)
>>work as per usual. Probably the only 'customization' that I've done
>>is that I keep svn up'ed in /Library/Application Support/TextMate.
>>I'm really at a loss as how to debug this. Any ideas greatly
>>appreciated.
>>
>I would bet that somehow by accident cmd-` has been bound to some
>bundle item. Press ctrl-cmd-T, then click on the magnifying glass
>and set it to "key equivalent", and press cmd-`, and if it shows any
>items in the list then those are your culprits.
>>Carpe viam,
>>Mike
>>
>>Michael Larocque
>>Chief Cook and Bottle Washer
>>Prolumina Communications Inc.
>>http://prolumina.com/~mlarocque/
>>
>
>Haris Skiadas
>Department of Mathematics and Computer Science
>Hanover College
I can confirm this behaviour as well. In my case, it's an old
Machine Name: Power Mac G4 (AGP graphics)
Machine Model: PowerMac3,1
CPU Type: PowerPC G4 (2.9)
running Mac OS X 10.4.9. The list shown is empty,
yet I get a beep and no window switch.
However, looking at Keyboard Shortcuts in System Preferences
shows I had Keyboard Navigation unchecked; checking it makes
it work correctly. Perhaps this is Michael's problem?
--
Vic
This new version uses PDFTeX by default, and will try to use TeXShop as the
previewer.
(Note that TeXShop is part of MacTeX 2007.)
The bundle is available (for the moment) here:
http://www.puffinry.demon.co.uk/LaTeX%20Watch%202.0.dmg
This version should be almost ready to be incorporated into the LaTeX
bundle, so please let
me know about any problems.
The default behaviour can be changed by setting shell variables, as follows:
1. If TM_LATEX_VIEWER=TeXniscope, it will use TeXniscope instead of TeXShop
(If you should happen to want LaTeX Watch to use a different previewer
from 'Compile and View',
you can set TM_LATEX_WATCH_VIEWER=TeXShop to override the
TM_LATEX_VIEWER setting.)
2. If TM_LATEX_WATCH_MODE=PS, then it will compile via DVI, and use GV to
preview.
3. If TM_LATEX_WATCH_DEBUG=console, additional status messages will be
printed to the console;
if TM_LATEX_WATCH_DEBUG=dialog, these status messages will pop up in
dialog boxes.
Incidentally, there is a utility in Support/bin/check_open that may be more
generally useful.
It uses the Carbon API to check whether a particular document is open in a
particular application.
(This is used to stop watching the document when you close its preview
window.) Of course
the same thing could be done with AppleScript, but that is too slow.
(Another alternative
would be to use the Perl-Carbon bindings that are included in 10.4, but that
would not work on
earlier OS versions.)
Since it's a bit of a pain to install GV, and since several
widely-distributed versions have
irritating bugs, I wondered about including a GV binary in the package. As
an experiment,
I built gv-3.5.8 as a universal binary with libXaw3d statically linked in,
and it comes to
about 3MB. Does anyone have an opinion on this?
Robin
Hi,
I have a tiny question.
Would it be possible to implement a kind of a 'onChange'-trigger in
TM (à la Javascript).
The normal way to invoke a command is to use a key combination, fine.
But I would like to invoke a specific command/macro based on the
current scope by changing the content of document (inserting/deleting).
The application range would be multifarious.
For 'onLoad' and 'onSave' I rebound the apple+O/S in conjunction with
TM_SCOPE. This works perfectly.
Thanks,
Hans
I'm trying to create a bundle command that will compile a Flex (.mxml)
file using fcsh (the flex compiler shell
http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell) unlike the
mxmlc compiler fcsh keeps things in memory so it's much much faster.
Long story short to use the fcsh compiler you would open up the Terminal
and run
$ fcsh
which launches the compiler, then you compile the mxml file as you
normally would
(fcsh) mxmlc /pathto/my.mxml
that mxml file gets assigned an ID (say '1'), from then on you use the
command
(fcsh) compile 1
I can get fcsh to run from a bundle command, but how I can I have it
wait to launch then run 'mxmlc /pathto/my.mxml' the first time but then
'compile 1' thereafter? (All within the original Terminal window). If
all three steps together are impossible, could I have it just run
'compile 1' in a Terminal window in which I've manually run steps 1 and 2?
thanks!
Hi,
In the begin pattern for meta.preprocessor.macro.c (see
http://macromates.com/svn/Bundles/trunk/Bundles/C.tmbundle/Syntaxes/C.plist)
I count the following groups:
1: (define)
2: ((?<id>[a-zA-Z_][a-zA-Z0-9_]*))
3: (?<id>[a-zA-Z_][a-zA-Z0-9_]*)
4: (\()
5: ( \s* \g<id> \s* (, \s* \g<id> \s*)* (?:\.\.\.)? )
6: (, \s* \g<id> \s*)
7: (\))
This doesn't seem to match up with the order in beginCaptures, where 6
is given the scope punctuation.definition.parameters.c. Shouldn't it
be 7 that is given that scope instead?
Regards,
Hector
File Drawer is one of my favorites marvelous of TM. I have, for
example, a folder hierarchy full of perl samples (for teaching). I
get really pleasured when so easily I can rename them (01-hello.pl,
02-read.pl, etc) to reorder following a difficulty criterion. But, I
found an annoying bug (or perhaps three, but it depends on the way
you define "bug":)
1) If you press enter to finalize the name edition (as you usually
do in Finder items renaming to finalize the edition), the <enter>
char not only doesn't finalize totally the edition but goes to the
edition window changing it.
2) If you are changing the name of a file and in the middle of the
process you switch to the Finder, for example, when return to TM, it
doesn't recognize the changed file (and is red highlighted) as in TM
the change of the name is not "completely" done, but in the Finder
system, yes.
3) It would be great if simply changing the files between the file
names with the tab key the edit window could follow it. It would
help a lot knowing what where you renaming. I am not sure about if
the currently is the desired behavior, but then I don't understand
the reason.
Juan F.
The macro described here has a few oddities.
http://comox.textdrive.com/pipermail/textmate/2005-October/006444.html
<quote>
1) move to beginning of line (ctrl A)
2) regexp search for: (?=\S|$)
</quote>
Lets say '#' indicates where the cursor is.
When I press Home on the following line..
@implementation App#Controller
Then the cursor is placed between '@' and 'i'.
When I press Home on the following line..
x -(IBAction)te#st:(id)sender {
Then the cursor is placed just before '-'.
Pressing home on an empty line then the cursor is
placed on the following line.
Is there a better smart-home macro?
preferable a smart-home macro that can toggle
between line-begin and text-begin.
--
Simon Strandgaard
http://opcoders.com/
Regardless of whether I've changed any code or not, the XCode build
goes in a few seconds sometimes and other times takes a minute or
two... any idea what might be holding up the script? Thanks,
Ben
Hi,
I've been showing off TextMate's LaTeX power to lots of friend in
academia, but I've hit a hitch. While reference and citation
completion work fine in a single source file, it fails in a multi-file
project. I have a master file listed in the project options, and the
project compiles fine with all the necessary citations and references
complete, but I can't get auto completion using alt-escape to work, I
just get "Could not find file" pasted into my braces. This is the case
whether I include a search string or not.
Any ideas what the deal is? Unfortunately I can't be sure that it was
working before as this is my first multi-file project.
Thanks.
Suhaib.
While trying to do a svn commit from within TextMate, I get this error:
===
Couldn't find /usr/local/bin
We need Ruby to proceed.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/usr/local/bin/
/usr/local/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/pgsql80/bin
/usr/local/pgsql81/bin
/usr/local/mysql/bin
/sw/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
===
A command-line svn commit within the same checkout works perfectly -- so
I don't think that this is a svn problem.
Ruby is definitely there; the Rails app I'm developing works fine:
$ which ruby
-> /usr/local/bin//ruby
The error is particularly weird, as it clearly is looking at
"/usr/local/bin/" when trying to find "/usr/local/bin". What can this mean?
I'm using TM build 1372 (latest), MacOS 10.4.8.
I'm guessing that this is a configuration problem, but I can't figure
out what I've got set wrong.
Many thanks in advance for any pointers!
View Revision in the subversion bundle is not working for me. The
dialogue window appears briefly and then disappears. Checking the
console, there is the following error message:
error 63 (File name too long) opening sem /tm_dialog async/
markkalderon/1.
The thing is, my file names aren't particularly long. The command
chokes no matter how small the file name. Any ideas how to debug this?
Thanks, Mark
Hi happy TextMate users!
I just started toying around with hobo[1] and I like it quite a lot!
Especially DryML is really nice! Does anybody else use DryML? How
do you edit DryML-files? Is there a syntax-definition? There
doesn't seem to be a DryML bundle.
Kind regards, Niko.
[1] http://hobocentral.net
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Hello,
I setup a command to execute psql from TextMate. Psql is the command line
utility one can use to send SQL commands to the PostgreSQL database and get
the results of the queires sent. It was very easy to setup and get working
the problem is that on queries that return relatively large amounts of data
the OS as a whole lags and gives the spinning wheel of death during
the execution of the command(I had output set to HTML). The test case I
used was to execute the command on a query that returns about 140,000 rows
with about 4 columns of data so pretty skinny data overall relative to
typical database data. Is there any way to make TextMate not consume the
machine during the executing of this command. Maybe only show X amount of
row instead of all the data? I noticed TextMate was consuming 500+ megs of
memory and had around 1.8 gigs of swap. Not sure if those levels were
directly related to the query output or not. All I know is TextMate didn't
handle that use case very well.
Regards,
Bob
I would like to be able to define how large a window should be for specific
files when I open them. For example, when I do XML, I like to have a very
wide window, if I do text only, a small window is fine. Is there a way to
tell TextMate how wide a window should me when you open it?
Thanks.
Marc Chanliau
Hi everyone,
am new to this lovely Textmate but I'm well well impressed looking at the
screen-casts.
However, how do I set it up for Automation? Just that option isn't showing
anywhere. I want to be able to make it fill in my XHTML tags for me.
Thanks,
DanC
--
danCourse
www.dancourse.co.uk
07790 13 83 23
Flash2.0 & PHP Freelancer