by SystemMailbox{3CC00CFB-F2D0-40E7-A97E-9CCFC54BF4ED}
----- Original Message Header -----
Subject: Re: [TxMt] Ditch the drawer
From: ed(a)westernfreight.com;
To: textmate(a)lists.macromates.com;
Cc:
-----------------------------------
Warning: Attachment contains virus code or meets the filtering/blocking rules. Use caution when accessing the contents.
Hi.
wondering if I'm missing something, or else how I'd go about this.
in vim / emacs one can specify a 'repeat count' for input, so i could
easily insert 80 '-'s by typing (in vim) 80i-<esc>
which is far less boring than holding the key down, and maps well to
instances where a more complex repeated sequence is needed.
can we do something like this in TM, as a built-in ? I mean in the
general sense, though if there are commands to 'underline words' etc
I'm still interested in those.
cheers,
David
> I can add it to the default bundle, if this is of
> general use.
Please do :)
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi.
When using a construct:
x = case x
when expr1
...
when expr2
...
else
...
end
I find that TxMt does not correctly indent after the CR after "case x"
and then de-dents after the first "when" so that:
x = case x
when...
becomes:
x = case x
when expr1
However it correctly indents when not assigning from case so that:
case x
when...
becomes:
case x
when expr1
Which seems like a bug.
M
--
Matt Mower :: http://matt.blogs.it/
I think the draw is okay. Saying that Edmundo's mock looks nice but
it's just fussing if you ask me (which you didn't :D).
I didn't make the switch to SubEthaEdit from BBEdit because it didn't
have a project draw. BBEdit v8 had a project draw that cost me more
to upgrade than Textmate cost me to buy outright.
Go Textmate and it's Draw! Infact BBEdit from memory didn't have
heriachical listings either. But that part of my memory is a bit
vauge. The pain! The pain (of developing in 3 colour syntax
highlighting).
Howdy,
I'm evaluating build r790 and chose to create the "mate" link in
~/Applications, which is already in my path when I open Terminal.app.
However, TextMate somehow requested admin privileges; I _cancelled_ and
I got back an error message: "Creating the link “/bin/mate” failed with
the following reason: Permission denied".
Am I expecting the wrong thing?
Thanks,
--
Luís Bruno
I've got PC USB keyboard connected to Mac Mini.
Using Ukelele I've remapped Context-Menu key to act as Delete (&x7f;). It
works in all applications except TextMate, which keeps opening context
menu (offering various web searches) when I press that key. Other remapped
keys work in TextMate fine.
Is that a bug/feature? Can it be fixed/disabled?
--
regards, porneL
Hi,
I noticed that the mate CL tool has a -r --recent option to add the
file to the Open Recent menu but this doesn't seem to work for me.
Am I doing something wrong? Also I would say that this should be the
default but it isn't a big deal since I can just alias mate as mate -r.
Thanks,
Jason
> Heh, I suppose I'm somewhat demanding then, even coming close to
> the mouse would be a showstopper for me.
> I used triggers though and got it all working nicely with that,
> however, it does not paste after being selected. Not even if I
> double-click the mouse. What happens is that the item gets pushed
> up to first place in the clipboard, you then manually have to paste
> it in.
> And now I have probably spent more time talking about this than
> I'll ever gain even by having the behaviour I want :)
>
> anyways, despite it's "shortcomings", this is the best clipboard
> manager I've seen (or rather, best to my tastes)
>
> Andreas
Butler <http://www.petermaurer.de/butler/> is an excellent launcher
similar to Quicksilver, and has a clipboard manager mapped to ctrl-
alt-v which shows the last 7 clipboard entries, any of which can be
pasted by pressing the corresponding number. This seems to be more
kind to the keyboard-fanatical.
(& I highly recommend Butler overall: extremely customizable, fast
and unobtrusive. Beats the hell out of using Spotlight for opening
apps, preferences, a terminal window, etc.)
Nate.
---------------------
CLIXEL Design & Coding -- http://clixel.com/
BRAINFAG Comics -- http://brainfag.com/
Hi,
I'm not sure there's anything to be done about this but I figured I
would ask anyway.
I'm using Fugu to manage a remote site via SFTP and have configured it
to invoke TextMate as my editor. This makes it quite easy to edit
files on the remote site.
However the unintended consequence is that, every time I switch away
from TxMt, it saves the remote file which is, quite often, a work in
progress.
I'm not sure there is any sense in which TxMt is aware that it is
editing a file that is being edited from a remote site but, in case
there is, would it be possible to control whether auto-save is
activated for such files?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Are there any plans to ditch the drawer? I wouldn't mind the file
list working like Mail, iTunes, iPhoto or most of the newer apps
coming out lately. I don't think the Drawer works, especially for
large hierarchies and 12-inch screens - both of which I am plagued with.
Thanks,
Colin D. Devroe
I'm trying to get the Template functionality working. I have authored
a template, but when I use the New from Template... menu item, I get
the file name 'untitled', which is not what I want to use in my file.
I see that if I have a project, I can choose a template to use, but
the list is different to the one in New from Template..., and I
cannot choose my newly created template.
Is this functionality useable, or is it still in a state of flux? Am
I missing something?
Drew
---------------------------------------------------------
Drew McCormack
www.maniacalextent.com
Can anyone out there with superpowers in writing shell script help with the
following? Id like to write a command that can locate the currently selected
word as a file within the project (assuming the word is the name of a class
or some such thing) and open that file. Now I know what you¹re all saying,
just copy the selection and paste it into the ³Go To file...² window, I just
thought this might be, you know, fractionally quicker, add up all those
extra clicks and key presses and over the course of a day I might save, oh,
10 seconds or so. ;-)
I just know someone out there can do this, but the more I stare at
combinations of locate, grep, perl and whatnot the more I can feel my sanity
ebb away.
Go on, you know you want to.
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi,
I just noticed that my syntax highlighting seems a bit messed up.
I've attached a screenshot, you can see that the "def" isn't getting
the keyword style but, by a process of switching themes about,
appears to be getting the entity style.
I also attached screenshots of the ctrl+shift+p output for the def &
end statement to show what TxMt thinks they are.
I updated to 790 this morning, don't remember seeing this before then.
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
>> [...] Also a command to take the selected text, add ".inspect # =>"
>> and push it to the clipboard.
>
> Have a look at Ruby -> Execute Line as Ruby (ctrl-shift E, which is
> unscoped, so it works in all contexts).
>
> It will execute the current line or selection via Ruby and insert the
> result (either using .to_s or .inspect, depending on the result type).
Yeah, but the script I linked to actually runs the program and gives
you (almost) real-time debugging while you're editing the file. Do you
have any good ruby one-liners that you use a lot?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I like the fact that I can have several folders each representing a
"project" within a TM Project.
However, it becomes quite confusing when editing files in a Project
set up this way.
- TurbogearsProject(group)
- Admin/
-admin/
-controllers.py
-static/
.
.
-Website/
-website/
-controllers.py
-static/
.
.
When editing the file "controllers.py" from folder Admin/admin/ and
Website/website/controllers.py there's no distinction between the two
files in the editor.
The list in cmd-T shows the files as "controllers.py - website" and
"controllers.py - admin". Is there any way I can get the same in the
file tab in the editor?
regards
/rune
---------------------------------------------------------------------
Behind the firewall, nobody can hear you scream...
Hi all,
Have downloaded the demo (1.1b17 (769)) and currently evaluate
TextMate (vs bbedit/textwrangler) against my needs. It looks like the
editor I was missing :)
Indeed I work on the support of the CLAIRE language which have
special construct that are often impossible to describe with other
editor's syntax facilities. The way TM handles languages/scopes and
other language inclusion is the best I've ever seen. I could create a
CLAIRE bundle that, for the first time, handles correctly the syntax
of CLAIRE (and, trust me, I'm not a regex guru...)!
My question is about a language description design. I tried (but
failed) to design the grammar such anything that is a valid CLAIRE
construct is described by a specific pattern and anything else falls
into the scope of 'invalid.illegal.something'. For instance, in
CLAIRE, a variable scope is introduced with a 'let' construct :
let x := 1, y := 2 in (x + y) // valid
let x := 1, y := 2 *BAD* in (x + y) // invalid : *BAD* illegal
The rule that describe the 'let' construct would look like :
let <#var-def-list> in <#any>
Which can't be described with a begin/end pattern, unless I can
reference a repository rule from whitin the begin/end pattern. Can we
do that ?
Is there a way to acheive this ?
Sylvain
I posted a bug report about TextMate basically not handling Japanese
well at all but am wondering if anyone has had problems working with
other double-byte languages or Arabic?
Cheers
Kyle
--
mobile web gear | pukupi.com | 34°40'n 135°30'e
I may simply be confused, but I just had a global find/replace
operation appear to go rather haywire on me and thought I'd ask about
it. The following values were entered in the dialog...
Find: <cfif Session.InAdminGroup IS "Yes">
Replace: <cfif Session.InAdminGroup>
"Ignore case" was checked and "Regular expression" was unchecked.
Here's what I ended up with in each replaced instance...
<cfif NOT Session.In<cfif Session.InAdminGroup>>
That doesn't seem quite right to me.
--
Jack Baty
Fusionary Media - http://www.fusionary.com
Found this util today:
http://eigenclass.org/hiki.rb?
Enhanced+xmp+code+evaluation+and+annotation
You feed it code and it puts the output in comments, i.e.
a = 5
a # =>
would return
a = 5
a # => 5
I set up a command to save and run this filter to replace the document
and bound it to F10. Also a command to take the selected text, add
".inspect # =>" and push it to the clipboard.
Anyone interested?
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
How do I add my precious KID templates to the dropdown menu in the
dialog resulting from cmd-N?
(Yes, they are present and working in the File->New from template
menu item)
regards
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
Like most on this list, I love TextMate.
There are tons of useful features in it, and I keep finding new ones every date.
I just stumbled on the Cmd-T file-find the other day, in fact. I just
learned that my peeve about columnar selection was based on my
ignorance of the fact that you can toggle to columnar by hitting
Option after starting the selection. Every day, I'm pleasantly
surprised by a new feature.
However (and you knew that was coming...), the help files are a bit
sparse, and the discoverability of some features is pretty bad.
(By the way, the documentation wiki[1] seems to be down right now.)
Screencasts are all the rage now, and I was thinking of making little
30 second - 1 minute demo vids of some useful but hidden TextMate
features.
The problem with that idea is that it's not just the screen people
will be interested in, but the keyboard interaction.
I'd like to provide a keyboard overlay on the demo vids, which would
show which keys are being depressed to get the specific features to
activate.
Does anyone know how to do this?
I'm familiar with vnc2swf and wink. I'm also considering buying
Camtasia and/or Snapz Pro.
I guess a "stay-on-top" utility could be used and just be captured
along with the subject app usage.
Any pointers appreciated...
[1]
http://macromates.com:3000/read/book/1
I didn't see this in the list, but that doesn't mean it's not there.
It would be cool to have a back/forward functionality like in a
browser. For example, I often use cmd-T to find a file to look up the
signature of a class method or whatever. Then I want to go back to
the last file I was viewing. If I have more than 8 files open, the
tabs become useless. I could use cmd-W to close the file, but often
times I have three files that I'm working on at one time and it would
be nice to be able to just quickly switch between them in the order
in which i've looked at them.
Browser-ifying the tab system is a pet request of mine that I hope to
someday see realized. TextMate is an amazing editor - thank you
again, Allan.
Ed
> Did you try with tm-file:// ? The following works for me:
>
> echo "<meta http-equiv='Refresh' content='0; URL=tm-file://localhost$
> {HOME}/Sites/index.html'>"
>
> And alternate way to redirect is btw via the html “support library”
> found in the TM_SUPPORT_PATH (first library “includes” (sources) the
> library):
>
> . "${TM_SUPPORT_PATH}/lib/html.sh"
> redirect "tm-file://localhost${HOME}/Sites/index.html"
Neither of these are working for me:
. "${TM_SUPPORT_PATH}/lib/html.sh"
redirect "tm-file://localhost${TM_PROJECT_DIRECTORY}/public/index.html"
echo "<meta http-equiv='Refresh' content='0;
URL=tm-file://localhost${TM_PROJECT_DIRECTORY}/public/index.html'>"
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
I apologize if this has been brought up before.
Cutting and pasting text when in Python mode always pastes the text
four spaces (my indent width) to far to the right .
When pasting inside a <class>, text is pasted 8 spaces to far to the
right measured from the current cursor position.
<cmd>[ shift left does not work on my norwegian key map. (<cmd>]
shift right does.)
As you might imagine these two together is quite annoying ;)
regards
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
Greetings,
I am using Subversion on OSX and I seem to be having trouble using TM
as the editor for commit messages. When I set the environment
variable SVN_EDITOR to mate, it pulls up the editor whenever I do an
svn commit, but when I save the file and type continue, it does the
commit with no message.
Is this a known bug or am I doing something incorrectly?
-Aaron
I've only been using TextMate a day, like it, but am struggling to
find resources on $TM_DROPPED_FILE, etc.
In HTML, I would like links created with $TM_DROPPED_FILE to use
absolute not relative paths to the project root and I would
appreciate any info on how to do this.
Cheers
Kyle
On Nov 22, 2005, at 7:08 PM, Urbanose wrote:
> Maybe a "/" between "localhost" and "$TM_PROJECT_DIRECTORY" ?
>
> Le 22 nov. 05 à 21:04, Benjamin Jackson a écrit :
>> I'd like to do a simple preview command to keep an html file in live
>> update as I edit css. This doesn't seem to work:
>>
>> echo "<meta http-equiv='Refresh' content='0;
>> URL=file://localhost$TM_PROJECT_DIRECTORY/public/index.html'>"
>>
>> What am I missing here?
>> ___________________
>> Ben Jackson
>> Diretor de Desenvolvimento
>>
>> ben(a)incomumdesign.com
>> http://www.incomumdesign.com
>>
>>
>> ______________________________________________________________________
>> 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
>
>
>
>
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
I'd like to do a simple preview command to keep an html file in live
update as I edit css. This doesn't seem to work:
echo "<meta http-equiv='Refresh' content='0;
URL=file://localhost$TM_PROJECT_DIRECTORY/public/index.html'>"
What am I missing here?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
While searching for "drawer" on the tm user list via google (
http://www.google.com/search?&q=drawer+site%3Acomox.textdrive.com%2Fpiperma…
) I found that the mailing list archive isn't being indexed by google,
since May 2005.
I thought I'd just link to prior discussions, but finding them will be tough..
The domain doesn't have robots.txt, so I'm not sure what's going on there...
Allan,
I have a question about the list of templates available under the "New
File.." dialog (the one you get when inside a project), the ordering of
available templates seems a little bizarre and I was wondering whether there
is any underlying logic there I could take advantage of to get my templates
to always appear at the top. In a bundle I have made 7 or so templates and
one of them always sites at the bottom of the list, whereas the others site
at the top, they are for Actionscript so each one starts with AS2.. As the
name, I would have thought they would site together but for some reason they
don't. The other thing that I wondered if could be changed was the items
actually in that list, it doesn't seem to be affected by which bundles are
active whereas the "New From Template" menu command is. Got any plans for
this dialog or improvements in the pipeline?
Regards
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I know find in project is in for a revamp some time in the future, but
in the mean time, if I run it on a project with many many many files or
with a few really really big files, it goes spinning beachball of death
for eternity and killing is the only thing left to do -- which kinda
sucks when you have unsaved changes.
Is there anything that can be done about this?
Hi. I've just started using Mutt as my primary mail reader on my Mac, and
I'm having trouble relearning my emacs key bindings from my Linux days
(Ctrl/Alt aren't quite the same!). So I thought I'd give TM a try as my
default email editor.
Is there any support for editing emails out there? I'm specifically
wondering whether it's possible to turn the following on when opening in
some kind of "email mode":
* highlighting of quoted text (i.e. different colour)
* automatically entering line wrap mode
* knowledge of how to wrap quoted paragraphs (i.e. with ">" at the
start of each line)
Thanks,
Graham
--
Graham Ashton
Hi,
I'm trying to make my TextMate behave more or less in the same way as
emacs (I understand that Meta-x-u and similar keybindings may become
available in the future..)
Until then, I've created the DefaultKeyBinding.dict file (and It
works) but I can't for the life of me find how to issue a "undo"
command.
I really "need" to bind $^- to "undo".
I also "need" to rebind (rather than unlearn) crtl-s to save and
possibly disalble ctrl-x in the process. Can anyone help me with this?
btw. TextMate is great. Bought a license to day.
/rune
"Never attribute to malice what can be adequately explained by
incompetence"
This may have been answered before and I didn't see it. Is there a
reason that the snippets variables/values (not sure what they're
called) can only go to 9?
Mike Stickel
Screenflicker Developments
www.screenflicker.com
p: 403-923-7667
e: mike(a)screenflicker.com
> Why doesn't it come close?
>
> The only advantage I see with the separate window is keyboard support
> for the results, and probably easier to setup the capture stuff, but
> for that I could add a bash function or similar, that one would pipe
> the output through.
That's exactly it, it seems purpose designed for debugging, all the extra
fields for specifying line number, file name and so on, I think its very
clever, getting the same result in the html option is a lot more effort,
plus there's the keyboard navigation thing. I think its one of your best
inventions, is there any harm in leaving it in?
Chris Jenkins
Working in Python I clicked on the 'Tools widget' (is there an
official nomenclature for that? I mean the one with the gears icon
that gives access to the commands and macros...) and it opened up
positioned at the 'Python' submenu.
"That's cool!" I thought, but a quick test with a Textile document
showed that it was just a coincidence pertaining to my particular
list of enabled languages.
So: why no add it as a feature:
when activating the 'tools widget' it will focus on the submenu of
the currently active language.
just my $0.02
best regards,
tom
Hola,
if I well remember, in a previous version of TextMate there was an
html command, in HTML bundle, to tidy the page collecting in she
<style<</style> section all the attributes of the tags into body. i.e.:
<p align="center">hello</p> become <style ...> text-align:
center; </style> in the Head section, and in the bode we have
<p>hello</p>
How can I find this command to insert in the bundle?
Many thanks and regards!
Salvo M.
In looking at the Markdown bundle I came up with the idea that a
dropped HTML file (or snippet) could be run through html2text.py or
similar to generate Markdown formatting. I went to add a new drop
command, but realized I don't know what the approved way to add the
script is -- if there is one. I wil refrain from adding it as a
template file :)
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
Hi,
[novice question alert!]
I would like to tell TextMate that if it encounters a heredoc with the
name 'END_SQL' in my perl script, the text within the heredoc is sql.
For example:
my $rows = $dbh->selectall_arrayref( <<END_SQL );
SELECT name, city
FROM people
WHERE country='nl'
END_SQL
>From
<http://macromates.com/blog/archives/2005/07/06/introduction-to-scopes>,
I get the impression that something like that is possible. But I cannot
get it to work. Can someone hint me in the right direction?
It seems TextMate is the only application I know where it is hard to
find a solution because there are /too many/ information resources:
mailing list, wiki, manual, irc and weblog. ;-)
Thanks
http://nslog.com/textmate
--
__ ____
/ / / __/ Brian Lalor "If you still have gas, you're
not lost."
/ _ \/__ \ blalor(a)bravo5.org -- Jacques Strappe
/_.__/____/ http://bravo5.org/
Hi,
While applescript is not how TextMate does its magic internally, it would be
nice to have some document creation tools, as this is how apps work together
in workflows on Mac.
I'd like to see the following script which works in SubEthaEdit work for
TM.
(*
View Source in SEE
Chris Biagini <http://assortedgeekery.com>
updated Jan. 5, 2005
*)
tell application "Safari"
set mySource to the source of document 1 as string
set myName to name of document 1 as string
end tell
tell application "SubEthaEdit"
make new text document at end of documents with properties {mode:"HTML",
text:mySource, name:"Source of: " & myName}
activate
end tell
Dr Timothy Bates <tim.bates(a)ed.ac.uk>
Reader in Differential Psychology
University of Edinburgh
Dept Psychology
PPLS
7 George Square
EH8 9JZ
wk +44 131 651 1945
FAX +44 131 651 3461
home +44 131 332 3543
Mob +44 790 386 4573
Easy on the flames, boys:
http://www.theappleblog.com/2005/11/18/textmate/
It's a weak review, not even scratching the surface of TM's
extensibility and ease of use, but that kind of review could take
weeks to write. :-)
--
Brian Lalor / blalor(a)bravo5.org
Stewardess: We know you have your choice of bankrupt carriers
and we
appreciate you choosing us.
I just noticed something strange. I turned off Soft Wrap, and then
set Wrap Column to use Window Frame. I had show right margin
indicator turned on in preferences. What I get is this:
I guess it's a drawing problem...
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Does anyone know if it is possible to use forms in the html output window
when running a command?, Id like to use a form to take certain certain user
input and pass those values to a perl script hidden inside the language
bundle and get the result from that perl script back inside the same html
window. This is for a help lookup facility that asks the user to type a
search term in and select various scoping options. I can do it using
osascript to open an Applescript ask dialog, but I wanted something that was
more integrated with TM.
Many thanks to anyone who can suggest something,
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hello All,
I'm new to TextMate, moving over from BBEdit. I'm still exploring the
application, but have already purchased a license, as it really
"feels right."
First question relates to something I frequently did in BBEdit --
"Process All Lines", where I might prefix and suffix each line in a
selection. Is there a way to do this in TextMate?
(I've seen there's an "Edit Each Line in Selection" menu item in
TextMate, but I can't figure out what it does, or how to use it.)
Many thanks in advance.
--
Matt Henderson
matt.henderson(a)gmail.com (personal) | matt(a)makalumedia.com (work)
http://matt.makalumedia.com
What I'm looking for is the ability to select the contents of a quoted
attribute (HTML for instance), preferably with a keyboard shortcut.
About 75% of my workday is spent editing existing HTML documents, and
this ability would be a HUGE time-, and wrist-, saver. I hate having to
go to the mouse and drag select every time I need to change the href
contents of an A tag.
If this ability already exists, either in TextMate, or even native to
OS X (I'm a newcomer), please, please, please tell me where to find it.
If it doesn't, please, I beg you, add it to this AMAZING piece of
software.
Thank you.
Warren L. Parsons
This isn't quite what I'm talking about.
I want to be able to place my cursor inside *any* given quote pair, hit
a keyboard shortcut, and have everything between the quotes selected. I
just gave "href" as an example.
>
> command-F
> Find : (?<=href\=")[^"]+
> Regular expression
> Next
>
> Manually replace the address selected
>
> command-G to select next match