Hello all,
I've been doing some haskell programming lately, and I noticed that
the haskell TextMate bundle doesn't handle string and character
literal lexemes correctly. I've made some changes to improve this
support on my computer, but I'd love to see this in the official
repository. Can I supply a patch somehow?
Thanks,
Nick
Hi,
Textmate has starting to hang when closing the application. I don't
have to do anything special for it to happen, just open a project,
work on it and then try to close textmate.
Textmate 1.5.7 (1436)
Leopard 10.5.1
Plugins(Don't know how to check plugin version but they are the latest
from Ciarán Walsh blog)
ProjectTree
Svn
TMLabels
log attached
Thanks,
-Erik
Hello,
I have made a small edit to the Lua plist file.
Currently the Lua bundle does not recognize "local function foo ()" as
the beginning of a fold. In Lua, "function foo() end" is actually
syntactic sugar for "foo = function() end", thus functions can be made
local with "local function foo ()".
I have edited the plist file so that it recognizes "local function" as
a fold start, however because I am new to Textmate I don't know how to
match whitespace characters. The space should probably be matched with
that instead.
greetings,
Tom
Hi.
I just updated my bundles and Support folder from SVN and Blogging
bundle stops working... If i write `cat` and press tab to fetch
categories i get this error:
/tmp/temp_textmate.BuBXl2:8:in `require': /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:400:
syntax error, unexpected tLSHFT, expecting kEND (SyntaxError)
<<<<<<< .mine
^
/Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:410:
syntax error, unexpected tEQQ, expecting kEND
=======
^
/Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:420:
syntax error, unexpected tRSHFT, expecting kEND
>>>>>>> .r8583
^ from /tmp/temp_textmate.BuBXl2:8
All i know about Ruby - its name. Ruby ;) Maybe someone can help?
Hi,
I have a Russian colleague. He is really hooked of TextMate's
possibilities. Unfortunately he is very poor in English. He asks me
whether there are plans to localize TextMate.
AFAIK TM's code isn't written in that style. Meaning there's no
'Localizable.string' etc. And I know that it would cost much effort
to rewrite the entire code in that way. But anyway it's only a
question ;)
Thanks,
--Hans
Folks,
I'll keep it short:
Anyone got a "newsreader" (desktop, NOT web app) that will put ALL
posts to a subject in one ever-appended document that I can just
scroll down to read? Something intelligent that will chop all
quoting, signatures, header blather? Again, that's: ONE (growing)
document per subject per email list. Thanks. From my subscribed
reading, I figure this lists' members prefer well-tuned tools and
someone may have a solution to share.
hello:)
I would like to use Quick Look with .tex , .sty , .cls files created
with TextMate but all the hacks found on the net or in the list
don't work.
Do you know a good way to make this ?
Best Regards
Alain
Hi,
I occasionally need to hard wrap text, meaning that carriage returns
are inserted to make the text wrap at a certain column. The Text
bundle has a command to do this; it's called "Reformat to Column".
Because of this unorthodox name, I always have trouble searching for
it because I expect the command to have the word "hard" or "wrap" in
it. Could it be changed? For example, I noticed that the "Statistics
for Document" command has "(Word Count)" in parentheses because few
people wanting to find a word count command would search for the word
"statistics". And I suspect few people wanting to find a hard wrap
command would search for the word "reformat". How about renaming the
command to "Reformat to Column (Hard Wrap)"?
Trevor
You can edit the tidy configuration in TextMate. Open the bundle editor and
find Tidy in the HTML section.
I altered mine to this:
> # BEWARE. Errors are suppressed.
> "${TM_TIDY:-tidy}" -f /dev/null -q --indent auto -utf8 -wrap 0
> --wrap-attributes 0 --break-before-br 1 --clean y --word-2000 y --tab-size
> $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE|\
> if [[ "$TM_SOFT_TABS" == "YES" ]]; then cat; else ruby -pe '
>
> unless $in_pre
> tab_size = ENV["TM_TAB_SIZE"].to_i
> space, text = /( *)(.*)/m.match($_)[1..2]
> $_ = "\t" * (space.length / tab_size).floor +
> " " * (space.length % tab_size) + text
> end
>
> $in_pre = true if(/<pre>/)
> $in_pre = false if(/<\/pre>/)
> '
> fi
>
You can play with your own preferences to make it like you like it. The
docu is:
http://tidy.sourceforge.net/docs/quickref.html
Tidy is handy, but I haven't been able to make it work exactly like I like
(HTML tidy or Perl tidy), but it's at least close.
I did check to see if your line would be broken up, and it was not.
tigercore wrote:
>
> The HTML Tidy function used to tidy the code in this format:
>
> <p>Paragraph Text here</p>
>
> but not for some reasons its doing it like this:
>
> <p>
> Some text here
> </p>
>
> And putting everything on a new line. It's also changing the doctype from
> XHTML Transitional to XHTML Strict.
>
> Anyone know why it's doing this? Is it a preference or somhing I have
> changed somewhere?
>
>
--
View this message in context: http://www.nabble.com/HTML-Tidy-Weirdness-tf4771947.html#a13907232
Sent from the textmate users mailing list archive at Nabble.com.
[I'm reposting for a third time, since I wasn't subscribed at first, then I
reposted as a subscriber, then deleted my *accepted* post. N00b. :confused:]
I created a bundle command to open a file from a repository directory, based
on the selected text. It was put in the Text bundle, with no particular
context.
Here's my current (working) command.
open "file:///path/to/repository/volume/$TM_SELECTED_TEXT.pdf"
This will open the PDF file with the selected filename. (I use open since I
want to see the PDF in Acrobat, not TextMate.)
However, now there's arbitrary (unknown) text attached to the filename, so I
want to use a wildcard in this command.
I got a suggestion to use an unquoted * as a wildcard. But if AAAA is
selected, this command:
open "file:///path/to/repository/$TM_SELECTED_TEXT"*
will open a file in Textmate named AAAA*, which is not what I want: I want
AAAA.pdf and AAAA-morestuff.pdf to open.
Any help is appreciated.
Thanks
Darryl
[I originally had this question attached as a comment to a TextMate blog
entry, where Allen Odegaard posted the * wildcard suggestion, but it didn't
work in this context.]
--
View this message in context: http://www.nabble.com/repost%3A-Command-to-open-arbitrary-files-in-TxMt-tf4…
Sent from the textmate users mailing list archive at Nabble.com.
Thanks all.
The easy answer (which I missed in the rel notes) is to use
TM_FULLNAME instead.
Works a treat!
Cheers,
John.
On 30 Nov 2007, at 12:00, Allan Odgaard (via digest) wrote:
> From the r1431 release notes:
>
> [NEW] TextMate sets TM_FULLNAME (unless you set it yourself)
> to the user’s full name, so no longer necessarily to fiddle
> with niutil and dscl to obtain it.
>
> So it should not be necessary for commands/snippets to try and
> obtain the full username themselves.
YES!
You heard it here first folks.
I just added a Select Balanced HTML/XML Tag macro to the Experimental
bundle!
I've been trying different ways of making this work since I first
started using TextMate back in, what like 2004 or something?
I've tried regex, I've tried Ruby, I've tried everything I could think
of...
But finally I've come up with something very simple.
The only real downside is that it's EXTREMELY slow. Like 1 second from
running the macro until it's done. But that's WAY faster than using
the mouse to manually select that same code, or trying to use the
keyboard to manually select it.
This is frankly the #1 biggest missing feature of TextMate that
directly impacts my life.
If this breaks anything, just remember that it's undoable. Command-Z
is your friend.
Please also report and and all problems to me with an example of the
code that it chokes on.
If you only want to DOWNLOAD this macro alone, just visit this link
and double-click the file.
http://macromates.com/svn/Bundles/trunk/Bundles/Experimental.tmbundle/Macro…
—Thomas Aylott – subtleGradient—
Hi,
I only have a tiny question and I didn't find anything in the archive.
E.g. I have that grammar snippet:
name = 'meta.tag.any.html';
begin = '(<)([a-zA-Z0-9:]+)(?=[^>]*></\2>)';
end = '(>(<)/)(\2)(>)';
beginCaptures = {
1 = { name = 'punctuation.definition.tag.html'; };
2 = { name = 'entity.name.tag.html'; };
Is it possible to name the beginCaptures 1 and 2 according to values
found in the regexp groups like for group 2
name = 'meta.tag.any.html';
begin = '(<)([a-zA-Z0-9:]+)(?=[^>]*></\2>)';
end = '(>(<)/)(\2)(>)';
beginCaptures = {
1 = { name = 'punctuation.definition.tag.html'; };
2 = { name = 'entity.name.tag.html.$2'; };
or
2 = { name = 'entity.name.tag.html.$self'; };
$2 or $self referring to the actual content of the found regexp group
2 to get:
<meta.tag.any.html>
<punctuation.definition.tag.html><</punctuation.definition.tag.html>
<entity.name.tag.html.title>title</entity.name.tag.html.title>
<punctuation.definition.tag.html>></punctuation.definition.tag.html>
Thanks,
--Hans
Since upgrading to OS X 10.5 the TM_USERNAME variable used in bundles
has been unset.
The following command is the problem:
TM_USERNAME=`niutil -readprop / /users/\$USER realname`
Seems that the niutil command has been dropped from 10.5 onwards and
replaced by the dscl command.
The following gets the current users real name but prepends it with
the property key:
dscl . -read /Users/$USER RealName
returns:
RealName:
John Hunter
I'm not sure how you get the value without the key.
Has anyone got a solution to this? It affects most of the templates.
Apologies if its been covered before.
Thanks
--John
With the imminent release of Rails 2.0, I've started working on a
project in earnest on edge rails.
I'm finding some things to be broken in the Ruby on Rails bundle due
to the Rails changes. For example.
* generating a migration from textmate doesn't seem to work, it
prompts for the name, and runs but nothing is generated.
* the mcol snippet(s) get confused by the use of 'sexy' migrations
in schema.rb
* Partial extraction isn't savvy to the changes in file naming
(e.g. x.rhtml is now x.html.erb)
So what are the plans for tracking the rails changes in the bundle?
And is there any hope that the bundle can deal with multiple rails
versions? I'm sure I'm not the only one who needs to work with
different rails versions on different projects.
How are others dealing with this?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
What is the correct policy for making change to a Bundle in the code
repositories?
I want to improve the "Bold" command in the "Dokuwiki" bundle.
Currently the command is:
**${TM_SELECTED_TEXT:text}**
Which works, but is rather simplistic. I happen to also use the
"MultiMarkdown" bundle which is intelligent, if you hit the key combo
(Command-B) while selecting already bolded text, it will un-bold it.
if you hit the key combo while no text is selected, then it places
the cursor within the bold typing area, etc.
Since "Dokuwiki" and "MultiMarkdown" use the same syntax for bolding
(surround text with double '*'), that would mean I would just need to
copy the command code from "MultiMarkdown" over to replace the
Dokuwiki bundle's version.
I don't want to step on the toes of either Bundle creator (copyright,
etc).
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
Hello:)
I'm with Leopard 10.5.1 and TextMate 1.5.7 (1436).
I created a latex project : i dropped some files .sty and a folder
with subfolders in the project drawer.
my project :
file_a.sty
file_b.sty
mainfolder
file_c.tex
file_d.tex
subfolder
file_e.tex
file_f.tex
I can't remove the references to subfolders and I can't remove the
references
to a single file inside a subfolder like file_e.tex
I can't delete the reference of a file in the main folder like
file_c.tex
I can only delete the reference to the main folder
In conclusion, I can remove only the references to file_a.sty and
to mainfolder :(
When I say : I can't delete, I need to say that's when I close TM
and when I re-open , the files are always in the project drawer .
I try to save the project but the result is the same but move to trash
works well :)
Perhaps i take a wrong way to create my project
An idea ???
Regards Alain
Hi,
I use Textmate 1.5.5 on my MacBook Pro (2,33 MHZ, OS X 10.4.9) t
mamage my rails project with about 500 files in the project.
Every time I switch from the active TM to another application and then
back again, TM spins the wheel for about 5 secs. May be it is checking
files or something else.
I only installed the TmCodeBrowser additionally, nothing else.
Is there a way to make TM instantly responsive after activating it?
thanks,
Alex.
I have raised to the grade of a neophyte bundle author recently and
released my own perfect TextMate GTD bundle. It's conceptually based
on Henrik's Tasks bundle, but implemented differently to allow for
some additional features. You can find some links at beneath if you're
interested.
Now I'm interested in getting this into the official TextMate
repository. I'm quite sure that my bundle doesn't adhere to any
required style- or naming conventions and I'm keen to tackle that next.
Can you point me to some kind of guideline or other document here? I
haven't been able to find anything about the process of getting a
bundle approved and published.
Also, I'd greatly appreciate feedback, suggestions, criticism ...
regarding the bundle. I'm using it myself, but I'd love to learn what
others think about it.
Thanks a lot!
[1] about my initial motivation:
http://www.artweb-design.de/2007/11/20/taskmate-the-perfect-gtd-tool-to-be-…
[2] release announcement:
http://www.artweb-design.de/2007/11/24/taskmate-the-missing-gtd-tool-for-yo…
[3] download, install & usage notes:
http://www.artweb-design.de/projects/taskmate
[4] Henriks Tasks bundle:
http://henrik.nyh.se/2007/08/tasks-bundle
--
sven fuchs svenfuchs(a)artweb-design.de
artweb design http://www.artweb-design.de
grünberger 65 + 49 (0) 30 - 47 98 69 96 (phone)
d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)
Hi,
I'm having a difficulty with a keychain item (Internet password)
created by a Blogging bundle.
The Blogging bundle works fine (I can retrieve posts and upload a
post). But when I launch Keychain Access, selecting the keychain item
created by the Blogging bundle causes the Keychain Access to crash.
I selected all password items in the Keychain Access one at a time and
determined that the item created by the Blogging bundle always causes
Keychain Access to crash. Running Keychain First Aid also did not help
(it runs but does not report any problems with keychain).
I'm using TextMate 1.5.7 (1436) on Mac OS X 10.5.1 on a MacBook Pro. I
did not upgrade from Mac OS X 10.4 so I cannot confirm whether I
observed the same issue in Mac OS X 10.4.x or not (sorry).
Can anyone help on this issue? Does anyone have similar issues with
Blogging bundle?
Thank you for your help.
--
Takashi Yoshida
tyoshida [at] mac [dot] com
I think this happens sometimes, but not all the time ...
When using the diff bundle, I know there are some minor differences
between two files, but diff will mark the entire documents as the
difference, even though maybe 90%+ of the lines are the same.
FileMerge does the same thing.
However, if I copy one entire file to the clipboard and compare, diff
will correctly define only the different lines as the differences.
Is there a preference I need to set or a format change I need to make?
Thanks.
--
Dwayne
Hello,
Is there a way to control which documentstyle, etc. is used when
generating latex from a multimarkdown document? The default settings
aren't what I need but I'm not sure where to start tinkering.
Thank you.
jeff.
> De: Michael Sheets <bundles(a)textmate.org>
> Fecha: 27 de noviembre de 2007 08:56:50 GMT+01:00
> Para: TextMate users <textmate(a)lists.macromates.com>, Hans-Joerg
> Bibiko <bibiko(a)eva.mpg.de>
> Asunto: Re: [TxMt] Bug en Dup-line
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Nov 26, 2007, at 11:04 AM, Hans-Joerg Bibiko wrote:
>
>> ;P I don't see the forrest for trees.
>>
>> OK hopefully the last one ;)
>>
>> <Duplicate Line : Selection (Tiger:Leopard).tmCommand>
>
> Looks good to me, passed all the tests I threw at it. :)
>
> Committed, thanks!
Thanks, it also did to me.
- Juan Falgueras
The other day I did an SVN commit from textmate.
In the commit message window I pasted in some text I'd copied from a
message from a client from BaseCamp.
When I tried to commit, it failed complaining about mixed line endings
(paraphrasing from memory).
It seems to me that this is something that the subversion bundle could sanitize.
I tried to figure out how to patch this, but I think that this is all
handled within the internal CommitWindow.app which I can't (or don't
know how to) look at.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
Hi!
Recently i was pointed that i can use a "slug" keyword to tell
blogging bundle to set post slug. And it was fine with one minor
problem - Fetch Post command doesn't fetch that slug... It even
fetches tags (keywords) for WordPress 2.3 but no slug. So I decide to
try to tune blogging bundle for myself. And it was not very hard. Here
is a result (blogging.rb file, line 405 aprox.):
doc += "Title: #{self.post['title']}\n"
#added: this line will populate slug back to post
doc += "Slug: #{self.post['wp_slug']}\n" if self.post['wp_slug']
doc += "Keywords: #{self.post['mt_keywords']}\n" if self.post['mt_keywords']
I tested it only with Wordpress 2.3 (i use it) so try it with care ;)
P.S.
Why I need it? I often use post headers like "Вообще-то, я ждал
Франции..." (russian) and then set a slug like "waiting-for-france".
And sometimes i edit my post and forget to write slug again. And post
slug become something like this:
"%d0%b2%d0%be%d0%be%d0%b1%d1%89%d0%b5-%d1%82%d0%be-%d1%8f-%d0%b6%d0%b4%d0%b0%d0%bb-%d1%84%d1%80%d0%b0%d0%bd%d1%86%d0%b8%d0%b8".
Plus from this point i can't send link to my friends (that didn't so
happy to own Mac) becouse Safari shows it like
"http://nilcolor.prosound.fm/2007/11/21/вообще-то-я-ждал-франции/" -
yep, with pure russian chars in address bar :)
P.P.S
Hope this change or better one will be implemented asap in svn copy of
blogging bundle.
I think I've find a bug in the duplicate line TM proc:
If you are in _the middle of_ a line with accented chars, dup-line
(⌃⇧D) do an strange thing sending the char besides the cursor to
the dupped line:
cout << "Estadística|" << endl; (| indicates the cursor) and
press ⌃⇧D
makes
cout << "Estadística << endl;
cout << "Estadística"" << endl;
I don't know if this bug is already booked, my apologizes if so do.
.juan falgueras
On 26 Nov 2007, at 9:32 AM, Allan Odgaard wrote:
> I myself rely heavily on the Edit in TextMate input manager and a
> bunch of snippets/commands bound to the text.mail scope.
I had thought that Edit in TextMate had died with the coming of
Leopard. Certainly it is gone from my menus, and deleting and
reinstalling the link has no effect.
Is this not the case? If it isn't, how might I get the feature back?
— F
Hello everyone,
All of the discussion on this list about LaTeX made me curious. I've
installed LaTeX on my MacBook and everything is moving along nicely
(so far the Multimate->LaTeX seems like the best thing since sliced
pickles!). However, I've run into a problem (and I'm pretty sure
it's not a textmate problem, which is why I labelled this e-mail OT).
I've downloaded the apa.cls from http://www.ilsp.gr/homepages/
protopapas/apacls.html but I cannot figure out which folder I should
place it into for it to work properly. Can anyone help?
Thank you in advance.
--
j.
I was wondering if there's a way to turn off this feature or at least to
delay it.
Currently when a file is in scope, its file name is selected in the Project
Drawer and file listing scrolls to make the file name visible. This is
usually a good feature.
On occasion though this is more disruptive than helpful. It would be nice if
there was a way to keep the current view of the file list in the Project
Drawer stay in place and not jump back and forth right away when we open or
close files. I often scroll away from the current file location to open
files in another area but when I close the file, the view will jump back to
the and then I have to scroll again to section I'm interested in.
What I think would be nice is if there can be a short delay in auto
selecting the file name in the list once a file is closed. The way we can
still select from the view that's currently available but after a few
seconds it can jump to the file that is currently being edited.
Cheers,
Ed Wong
For better Erlang integration I want to run some stuff in the background, see:
http://www.rsaccon.com/2007/11/faster-interaction-between-erlang-and.html
Based on my still very basic understanding of TetxMate, the best way
to achieve this, I think is to to write a plugin.
Does there exist any tutorial or recommendation on how to get started
? Or do I just have to read the source code of the exsting plugins ?
I am familiar with C in general, but unfortunately no experience yet
with Objective-C.
regards
--
Roberto Saccon
http://rsaccon.com
I know there are a few of masters of the art of creating magical code
on the TextMate list. I'm wondering if TextMate, with a little,
perhaps a lot, of clever programming might be the solution to a very
common small business problem.
Many small business owners are searching for a simple way to create
and send customized boilerplate email to individuals and occasionally
to Address Book groups. Before you get the wrong idea, I'm *not*
referring to the usual 'bulk' email program, that market is already
well served.
I know small business owners would be delighted to discover a
straightforward, highly automated way to welcome new customers and
periodically communicate with them by email.
Marketcircle's Daylite, an OpenBase SQL CRM, is the best solution I've
been able to find. Objective-Decision's Contactizer Pro, Christian
Fries' Serial Mail and MacTank's Mail Template also attempt to address
this need. Bulk mail programs aren't likely to be the answer.
Overview:
- family businesses are usually frugal
- paraphrasing Occam/Ockham "All other things being equal, the
simplest solution is the best."
- leverage Apple's Address Book
- leverage Apple's Mail
- use TextMate to create email merge templates (provide an easy way to
add Address Book fields to the merge template. Joe Pagliaro does this
nicely with drop-down Address Book field selection in his program
Mailings.)
- merge data from Address Book into the TextMate merge template and
transfer the merged text to Apple Mail for editing and sending
Potential workflow:
1. Select an existing Address Book client record (Spotlight)
2. Select a merge template (right click)
3. Magic happens, an email appears in Apple's Mail, ready to send.
I'm not a coder, so, it's a given that my idea may be ridiculous. It's
possible Christian Fries was on the right track with Serial Mail.
http://www.christian-fries.de/osx/SerialMail/index.html
Cheers,
Frank
I suspect this is more like a feature request than anything else, but
does anyone have a hack/workout/methodology for color labels in the
project drawer - I know that open or unsaved files have a slightly
different toned icon - than saved file icons - is there any way /
plans to enhance this further?
I know that I for one would LOVE this feature..
regards
-s.i
I never noticed this issue before, but if I have a php file with html
in it like so:
<html>
<head></head>
<body>
<div>
<?
echo "hello world";
?>
</div>
<body>
</html>
I get code colorization to the first div tag the closing div, body
and html tags go uncolorized - is this just me? I'm thinking this is
a new issue, because I've never noticed it before?
-saul
To commands that I think would be awesome (since the last time I made
a request my project drawer got all colorful :0)
has anyone attempted to match the functionality of markupmaker
(http://www.accessify.com/tools-and-wizards/developer-tools/markup-
maker/)
as a textmate command? -- my head would explode if somebody had that
handy (seriously EXPLODE!)
- saul
I've just attempted to add folding for POD to TM's Perl language
definition - forgetting that I've already tried it previously. POD
looks like this:
=head1 A heading
=head2 A sub heading
=cut
The =cut always ends the POD. So my patterns look like ^=(?!cut) and
^=cut\s*$ respectively. That doesn't work because the folding
mechanism expects a recursive syntax - each opening 'thing' requires
its own closing 'thing'.
So I was thinking about how the problem could be solved and it
occurred to me that it'd be interesting to have an extension to
regular expression syntax that allowed an assertion to be made about
the matching scope.
Assuming the assertion was called ?^ you could match the text 'foo'
only in storage.type.sub.perl or entity.name.function.perl with
something like this:
(?^storage.type.sub.perl|entity.name.function.perl:foo)
Generally (?^ <scope re> : <re> ) would allow <re> to match only if
the current scope name matched <scope re>.
To solve my folding problem the code that scans for folds would have
to be scope aware - which may not be feasible architecturally.
And I realise that extending RE semantics to grok rich text is a bit
of a big undertaking - but I thought it was a cute idea :)
--
Andy Armstrong, Hexten
The Completion command shortcut ⎋ (the most important command to me)
was gone. Then I discovered that I can assign a new Menu command via
System Preferences. I assigned ⌘⎋ ant it becomes to work again!
- Juan Falgueras
hi :)
i've written some classes in php and would like to document my methods
so i'm typing in doc_fp, hit tab and voila:
/**
* undocumented function
*
* @return void
* @author /bin/bash: niutil: command not found
**/
8-)
i can't remember seeing this before i switched to leopard ( format +
install ) but what is that command? netinfo-something?
regards,
oktay.
Hi,
I encountered a tiny bug in the Ruby code for: "Insert Close Tag"
If one has he following HTML code:
<HTML><HEAD><TITLE>foo</TITLE></HEAD><BODY>
<HR>
and press OPT+APPLE+. it will insert </HR> not </BODY>.
The reason is here:
# remove all self-closing tags
if ENV.has_key?('TM_HTML_EMPTY_TAGS') then
empty_tags = ENV['TM_HTML_EMPTY_TAGS']
before.gsub!(/<(#{empty_tags})\b[^>]*>/, '')
end
The regexp is not case insensitive! TM_HTML_EMPTY_TAGS are written in
lower case only.
Ergo:
# remove all self-closing tags
if ENV.has_key?('TM_HTML_EMPTY_TAGS') then
empty_tags = ENV['TM_HTML_EMPTY_TAGS']
before.gsub!(/<(#{empty_tags})\b[^>]*>/i, '')
end
Cheers,
--Hans
lo there all,
i am brand new to textmate. I love it !
My only issue is that when i am editing a project on a remote
computer, i get a lot of spinning beach ball action while something is
going on. From what i have found on google, it is checking to see if
any files have changed.
Now, i saw mention of a remote project plugin, but i could not find a
way to download it.
Has someone found a good solution for this ? I am working on a ruby on
rails project on a remote server.
thanks all, and great editor / IDE you have here..
shawn
Hi,
Heureka!
I found a way to select something - calculated on run-time - by using
a normal macro (plus command) without TMTOOLS!!
The problem was if I have a script which outputs a text chunk or a
regexp how can we select that text/regexp in a TM window?
The approach is actually very simple. I copy the text/regexp into the
shared find pasteboard; place the caret to a proper location; and
execute 'findNext'. Thus I wrote a tiny C program which copies a
string into the shared find pasteboard. OK, then I wanted to write a
man page for that command on basis of the normal pbcopy man page, and
I figured out that pbcopy is already able to do this ;)
Fine. The only problem was that if I write a tmcommand à la:
echo -en "FINDTEXT" | pbcopy -pboard find
it doesn't work because "pbcopy -pboard find" is called from inside
of TM. If I execute that in a Terminal, switch back to TM it works.
The solution: I have to execute this in a new bash environment.
The basic tmcommand (example name "SELECTTEXT"):
RESULT=$(A SCRIPT WHICH RETURNS A TEXT OR REGEXP)
export RESULT
/bin/bash -c 'echo -en "$RESULT" | pbcopy -pboard find'
#place the caret to a proper location to be able to execute 'findNext'!
open "txmt://open/?line=$LINE&column=$COLUMN"
After executing that command the string $RESULT is in the shared find
pasteboard, and the caret is set.
Next step > the macro:
Before we can execute 'findNext' (= APPLE+G) we have to set the
parameters of the find panel, meaning whether we want to do a regexp
search or not; ignore case or not.
Thus record a macro à la:
1) open find panel, set the desired parameters, and do a dummy search
for something which is NOT in the document -e.g. look for \xFFF3; and
close it
2) execute the command "SELECTTEXT"
3) APPLE+G
That's it. The nice side-effect is that the macro changes nothing
within TM's find panel ;)
And the macro does not affect the undo buffer, it does not change the
text etc., and the selection is done instantly.
But attention:
The only tricky point : Be aware of correct escaping!!
On that basis I wrote the "Select XML/HTML balanced tags" script
which will come as soon as possible. I only have to fix some tiny
things.
Comments?
Regards,
--Hans
El 21/11/2007, a las 13:00, Robin Houston escribió:
> Shouldn't the search string be ¥([^¥]*)¥ instead of what you have?
> Yours is just looking for a single character between the Yen signs. I
> tried my regular expression, and it seems to work even when there are
> backslashes.
of course :]. Thanks Robin.
-Juan Falgueras
I created a bundle command to open a file from a repository directory, based
on the selected text. It was put in the Text bundle, with no particular
context.
Here's my current (working) command.
open "file:///path/to/repository/volume/$TM_SELECTED_TEXT.pdf"
This will open the PDF file with the selected filename. (I use open since I
want to see the PDF in Acrobat, not TextMate.)
However, now there's arbitrary (unknown) text attached to the filename, so I
want to use a wildcard in this command.
I got a suggestion to use an unquoted * as a wildcard. But if AAAA is
selected, this command:
open "file:///path/to/repository/$TM_SELECTED_TEXT"*
will open a file in Textmate named AAAA*, which is not what I want: I want
AAAA.pdf and AAAA-morestuff.pdf to open.
Any help is appreciated.
Thanks
Darryl
[I originally had this question attached as a comment to a TextMate blog
entry, where Allen Odegaard posted the * wildcard suggestion, but it didn't
work in this context.]
--
View this message in context: http://www.nabble.com/A-TextMate-command-to-open-an-arbitrary-PDF-file-tf48…
Sent from the textmate users mailing list archive at Nabble.com.
What is TextMate's equivalent to BBEdit's 'Add Line Breaks'
Example:
- TextMate Soft Wrap set to 66 characters
- How do I Hard Wrap my document at 66 columns?
Reformat Paragraph works, if I just want to reformat a few paragraphs,
but I'm hoping there is a TextMate command that can be applied to the
entire document and that won't reformat lines separated by a single
return.
Hi.
GTDAlt has acquired an odd behaviour. I don't know why - it may be
related to an install of the Safari 3 beta. Regardless, I haven't been
able to debug, and would really appreciate any help.
I choose 'Current Actions' and get my big list. I click 'none' for
contexts, to clear the board and ready to select only one or two
contexts. The checkboxes for the contexts ripple off, and the actions
disappear -- until we get half-way down, when the actions don't move.
Toggling the context checkboxes does nothing. I'm stuck with about half
my actions permanently visible.
Has anyone else experienced this behaviour? Even better, can anyone
help? Like the previous poster, I've grown very attached to GTDAlt, and
this is the core piece of functionality.
Bruno
I don't understand why Find (regexp) doesn't find the text when
using backslashes (it seems)
it works when no \ are in the searched text.
- Juan Falgueras
Allan?
Begin forwarded message:
> From: Apple Developer Bug Reporting <devbugs(a)apple.com>
> Date: November 15, 2007 12:41:40 PM PST
> To: steve(a)geeksrus.com
> Subject: Attention: Bug ID 5551893: Spaces needs hints for windows
>
> Hi Steve,
>
> This is a courtesy email regarding Bug ID# 5551893.
>
> <GMT15-Nov-2007 20:37:26GMT> Vanaja Pasumarthi:
> Engineering has provided the following feedback regarding this issue:
>
> There is an SPI hint that TextMate can use.
>
> NSWindowCollectionBehaviorMoveToActiveSpace
>
> Bug reports requiring your update will appear under ‘My Originated
> Problems’. Please review this bug report and provide the requested
> information via the Apple Bug Reporter. Once your report has been
> updated, Engineering will be alerted of the new information.
>
> <http://bugreport.apple.com>
>
> Thank you for your assistance in helping us discover and isolate
> bugs within our products.
>
> Best Regards,
>
> Vanaja Pasumarthi
> Apple Developer Connection
> Worldwide Developer Relations
> **************************************************************************
> THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE
> **************************************************************************
> -------------------------------------------------------
> Bug ID #: 5551893
> Bug Title: Spaces needs hints for windows
> -------------------------------------------------------
> <GMT21-Oct-2007 18:17:34GMT> Steve Riggins:
> Summary:
> TextMate's find dialog opens on wrong space (and btw can you fix
> radar, this is twice now it has failed to submit a bug report and
> lost my work. Clipboard ftw).
>
> Steps to Reproduce:
> * Go to Space 1
> * Launch TextMate
> * Switch to space 3
> * Command-Space to open LaunchBar (or command-control-space if using
> default)
> * Open demo file
> * Command-F
>
> Expected Results:
> expected find dialog to open on current space
>
> Actual Results:
> Space switched to space 1 and then dialog opened.
>
> Notes:
> This seems to be due to TextMate hiding/showing the Find dialog in
> order to keep all of it's state (size of text fields, etc) There
> should be a API hint or NIB hint to tell spaces to show this window
> on the current space, vs. last space it was on.
>
>
>
Dear list members,
just want to introduce my approach to circumvent the sometimes
missing build-in FTP/SSH functionality of TextMate. I created a
bundle which provides commands to download and upload single files or
files inside of TextMate projects from and to remote hosts.
Read on if you are interested:
http://fuerstnet.de/ftp-ssh-bundle-textmate
I would be glad to get your feedback!
Regards,
Bernhard