I was very pleased to find that the TM Service plays well with
Apple's iWork Pages. I love the TM editing service and use it every
day and twice on Sundays... Pages doesn't have any regexp search and
replaces, etc, and it's nice to kick in TM when I need it.
I also am a big fan of the column editing, but that's another story...
Just a positive post while we all try to resist asking Allan when the
next beta's coming out. Doh! Oops.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi
I have my project drawer open, but how do i make all files open in
textmate? im using php - which open fine, but also xsl, which open in
my old editor (jedit). Shouldnt clicking the file while in textmate,
not open it in textmate?
Thanks
Eoghan
Hello,
I recently purchased TextMate and love the product. I start
understanding more of it every day. Kudos to the development team.
I'd like to make a request (or maybe this is currently possible and I
just don't see it?) to be able to have the state of the project be
"remembered" as I open and close projects/TextMate. Meaning, if I have
25 folders in a project, and I have 6 of those folders listing
contents, I'd like that state to show up next time I open TextMate
instead of having to navigate through the project again and open those
folders.
I searched the archives and couldn't find any similar requests or
notes, so apologies if this redundant.
P.S. Is there some kind of "intro to TextMate" documentation that
basically runs over what snippets, macros, etc. are and how they are
used/created/handled in TextMate? Just a basic doc on "here's what
makes TextMate great" with some examples would be terrific.
Keep up the good work.
--
Thanks,
Jeremy Brown
I love textmate to death and use it exclusively for all my development
since its release.
The only area where I wish for some improvement is the file management.
Most of my work is in projects which contain hundreds of files and
folders so this limits the tab bars usefulness quite a bit. It seems
to be easier for me to start several textmate instances one pointing
to different logical parts of the application.
The first and bigger proposal is to bring intelligent file opening to
textmate. This works much like quicksilver. A hotkey opens a edit
window and an attached dropdown window specializes itself more and
more as you type.
A simple search would be "user" which would offer you all files with
the word user in them.
A more complex example would be typing "usrg" with would find
USeR_Gateway.rb, USeRGlobals so on. I recommending installing
quicksilver for a demonstration of the paradigm. Its great emerging
technology and would be a great competitive advantage to have natively
in TM. The same code could later be used to jumping to methods within
a file.
Another proposal would be introduction of intelligent tab fading.
During inactivity the least recently used tabs start to fade out and
close themselves after a while. This happens slower when there is lots
of space in the tab bar and faster the more items there are. This
would be great to cut the tab clutter and get rid of files
automatically with which you are done. Currently i'm finding myself
using close all windows all the time.
--
Tobi
http://www.hieraki.org - Open source book authoring
http://blog.leetsoft.com - Technical weblog
Hello everyone.
I have used TextMate for close to a month now and really like it.
One thing I would love to have is vertical guides, that flow from
opening if/while/for til they close( Yes I program in Python, why do you
ask ;) ). Kind of how many mail programs quote messages. Ofcourse there
is a chance that the guide-line will hit a comment or unindented code
(Not in Python though), but it could just skip drawing on that line. The
vertical lines could use different colo[u]rs for different indentation
levels.
Another thing that would be nice, was if I could double click a nib-file
in the project drawer and it would launch Interface Builder. Right now
it shows me the contents of the nib folder, meaning I have to open the
nib via the Finder. A step I would rather not do.
Joachim Mårtensson
Apologies if this has been discussed before, I'm away from my mail archive
and I couldn't search.
One of the more useful features of vim (for me at least) is the ability to
pass a number as a parameter to a command, most of which used that as the
number of times to repeat the command (though there are more specialized
commands, like n%, which positions the cursor n% of the way down from the
top of the file). This is especally useful for operations like "delete
the next 10 tokens" (10dw), or jump down 25 lines (25j -or-
25<down-arrow>), and I really made use of it when prototyping OCaml code
with its toplevel loop, where errors in long functions are pointed out by
the number of characters from the start of the input string, not its line
and column numbers... So if I am told there's a problem with the code
between characters 2674 and 2679, I just have to position the cursor at
the top of the text I entered and enter 2674<right-arrow> and it will take
me to the start of the offending code.
Now, as far as I can tell, TextMate doesn't have anything like this built
in (a "repeat the next event n times" command), or am I just missing it
somewhere? If it's not in there, could you consider this as a feature
request for such a thing?
One more thing, might it be possible to alter the behavior of Go to
Line... to also accept a negative number, -n, and go to line n from
the bottom?
Would anyone else find these things useful, or am I the only odd one in
the bunch?
William D. Neumann
---
"There's just so many extra children, we could just feed the
children to these tigers. We don't need them, we're not doing
anything with them.
Tigers are noble and sleek; children are loud and messy."
-- Neko Case
Think of XML as Lisp for COBOL programmers.
-- Tony-A (some guy on /.)
Hi,
I just noticed today an unexpected save behaviour. Sometimes after I
started editing a file, I realise that I should have named the file
something else. No problem, I drop into my terminal and rename the
file. Normally (even MS Word behaves like this), the program realises
the name change and updates it's menu with the new file name. TM just
saved the file again, with the old name and I got stuck with two files
with the same content. That is the first time I've seen that happen.
//johan
What's New:
Version 1.1.1rc1:
. Much improved handling of unknown character encodings.
. Improved method of locating valid External Editors.
. * Support for TextMate as an External Editor.*
. Support for vi and emacs as External Editors.
. Fix for date sorting.
. Much cleaner backend code (a continuing effort).
. Experimental spring-loaded folder support.
. Improved update checking.
. Filename abbreviation with ellipsis, like the Finder.
. SHA1 Checksum: 91aa62516af0a49c10e7bf8f46c9c790089da7e0
http://www.macupdate.com/info.php/id/8761
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /If you can't describe what you are doing as a
process, you don't know what you're doing./-- W. Edwards Deming
dear everyone,
I have added a couple of commands to the Invisibles.tmbundle. One
turns the 'smart' quotes that look awful in HTML, etc., into plain
quotes. The other deletes all 'non-ASCII' characters.
Now your favorite non-English language might have some characters
that Invisibles thinks are gremlins and which get colored red and
deleted in the Zap. You can change the pattern yourself to better
suit your needs, in the Invisibles.plist and the Zap Command. You may
want to refer to an ASCII chart (just google it).
You can get this last bundle from http://math.sfsu.edu/hsu/textmate/
but most of the fun stuff is happening at the TextMate SVN site.
http://anon:anon@macromates.com/svn/Bundles/trunk
Perhaps soon there will be a cron script that zips up the latest
Bundles automatically...
best, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Sorry about that, it appears my email client decided to receive every
message I had ever received all over again, and generated an auto reply to
the digest message with nothing in it.
Damn Entourage....
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
On 19/1/05 12:00 pm, "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. Solution for cut to end of line (emacs ctrl-k)? (Brad Miller)
> 2. Re: Solution for cut to end of line (emacs ctrl-k)?
> (Allan Odgaard)
> 3. Re: feature request: autosave (Ryan Schmidt)
> 4. Re: feature request: autosave (Allan Odgaard)
> 5. feature request: named bookmarks (Nick Hristov)
> 6. Re: Solution for cut to end of line (emacs ctrl-k)? (Brad Miller)
> 7. Re: feature request: named bookmarks (Sam Andrews)
> 8. Re: feature request: named bookmarks (Allan Odgaard)
> 9. feature request: toggle foldings for blocks of type x
> (Ralph P?llath)
> 10. Re: Solution for cut to end of line (emacs ctrl-k)?
> (Allan Odgaard)
> 11. Re: Solution for cut to end of line (emacs ctrl-k)?
> (Allan Odgaard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 18 Jan 2005 09:49:55 -0600
> From: Brad Miller <bonelake(a)mac.com>
> Subject: [TxMt] Solution for cut to end of line (emacs ctrl-k)?
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <994BDC6A-6968-11D9-BEFA-000D93B6E43C(a)mac.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> For the last 7-8 weeks I've been trying to retrain myself to not use
> ctrl-k/ctrl-y. Apparently it cannot be done. I've spent more time
> undoing the crazy results of ctrl-k followed by ctrl-y than I care to
> talk about.
>
> I've tried the macro route, and I now understand that macros have their
> own clipboards, which explains why the text that I cut inside the macro
> just dissappears forever.
>
> As suggested by someone on this list earlier (back in November), I've
> created a macro to select to end of line, followed by a command that
> cats the selected text into a temp file, and I've put both of those
> little commands inside yet another macro bound to ctrl-k. I've bound
> ctrl-y to a macro that cats the file into the current buffer. The
> problem with this approach is that now ctrl-k / ctrl-y have their own
> private little clipboard. so ctrl-y can't paste anything from the
> system clipboard or a 'regular' cut/paste.
>
> Does anybody have a better solution to this problem yet? I'm so happy
> with so many things about TextMate, and I have paid the license fee,
> but this morning I found myself trying out other editors again :-(
>
> Thanks,
>
> Brad
>
> Brad Miller, PhD
> Assistant Professor
> Luther College
> http://www.cs.luther.edu/~bmiller
> jabber: bnmnetp(a)jabber.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iD8DBQFB7TAot6pClM1VKiYRAr1/AJ95KPx7Pm+5DEnUC8Vi76NPx4KhWACfQSWB
> IrUCwUhZ5DZQ87C5rFsfsUA=
> =xeLB
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 18 Jan 2005 17:08:14 +0100
> From: Allan Odgaard <allan(a)macromates.com>
> Subject: Re: [TxMt] Solution for cut to end of line (emacs ctrl-k)?
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <284FF324-696B-11D9-BE69-000D93589AF6(a)macromates.com>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
>
> On Jan 18, 2005, at 16:49, Brad Miller wrote:
>
>> [...] so ctrl-y can't paste anything from the system clipboard or a
>> 'regular' cut/paste.
>
> You can get the contents of the clipboard with 'pbpaste' and store
> stuff on it with 'pbcopy' (they use stdin/stdout). Unfortunately they
> do not use UTF-8. But maybe you can make a better solution than your
> current (i.e. one that use/interact with the „real‰ clipboard) until I
> get around to native support for kill-buffers.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 18 Jan 2005 18:23:12 +0100
> From: Ryan Schmidt <textmate-2004(a)ryandesign.com>
> Subject: Re: [TxMt] feature request: autosave
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <A16CD5D8-6975-11D9-9289-000D9335D2CC(a)ryandesign.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> It seems nobody has mentioned the autosave implementation that I find
> best:
>
> While a document is open and "dirty" the editor saves a copy of the
> file periodically in a temporary location (probably in something like
> ~/Library/ApplicationSupport/AppName/TemporaryFiles). Even after such
> an auto-save, the document still appears to the user to be dirty, and
> behaves the same way as it would without autosave. When the user asks
> to save the file, it actually gets saved to its real location. Clicking
> the close box asks if you want to save, as usual. Closing a document
> also removes the temporary file.
>
> The point of this is to prevent data loss in the event of application
> crash or power loss. The next time the editor opens, it checks its
> temporary file directory and opens any that are still there, and they
> appear exactly the way they did last time the app was open -- as dirty
> windows, and if the user saves them, they go where they originally
> were.
>
> I think Mail.app has got a pretty good implementation of this. Of
> course it's adapted to emails, not files. In Mail.app it makes sense,
> if you're composing an email and quit without saving or sending, that
> it auto-saves this mail to the Drafts folder, and the next time you
> open Mail.app it auto-opens the mail again. That doesn't make sense in
> an editor. But the save-a-copy-to-save-my-ass-if-my-Mac-crashes feature
> has merit.
>
> As some others have already said, littering the directory with .bak
> files is a bad idea, for the can-be-read-from-a-webserver reason as
> well as the wreaks-havoc-on-the-version-control-system reason, not to
> mention making it impossible to find the file you need. Creating backup
> files with dates in the name is equally bad; if that's what you want,
> then you need to read about and use a version control system.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 18 Jan 2005 18:31:04 +0100
> From: Allan Odgaard <allan(a)macromates.com>
> Subject: Re: [TxMt] feature request: autosave
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <BA915C2C-6976-11D9-BE69-000D93589AF6(a)macromates.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Jan 18, 2005, at 18:23, Ryan Schmidt wrote:
>
>> I think Mail.app has got a pretty good implementation of this. Of
>> course it's adapted to emails, not files. [...]
>
> I also love Mail.app for that! I was actually considering it for
> TextMate, because then it could take the job of stickies, which I do on
> occasion want it to -- but there should be some way to control it of
> course.
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 18 Jan 2005 15:12:01 -0600
> From: Nick Hristov <hrisnik(a)iit.edu>
> Subject: [TxMt] feature request: named bookmarks
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <9850AC38-6995-11D9-9D09-0050E4D0063B(a)iit.edu>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Apologize if this has been requested before.
>
> I would really like to see named bookmarks in TextMate. I think that a
> small popup button on the bottom of textmate window next to the "Line:
> " field will be cool.
>
> Userland, what's your take on this?
>
> Nick
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iD8DBQFB7Xuh53uNWFjvs2YRAidpAJ9Y2g5qH+pppJ1eEHDH537dETFfoQCfUmeU
> EJnudYkXx2MOq5+i5czURCY=
> =leUB
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 18 Jan 2005 18:29:27 -0600
> From: Brad Miller <bonelake(a)mac.com>
> Subject: Re: [TxMt] Solution for cut to end of line (emacs ctrl-k)?
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <2D66B7A8-69B1-11D9-AA0A-000D93B6E43C(a)mac.com>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
>
> Thanks,
>
> No I'm very confused.... I tried substituting
>
> pbcopy for cat > "/tmp/fakeKill" and
> pbpaste for cat "/tmp/fakeKill"
>
> in my two commands, which work fine except for the lack of
> compatibility with the clipboard. Sadly, when I run the pbpaste
> command I just get a spinning beach ball for about 30 seconds and then
> nothing gets pasted.
>
> I tried running pbpaste from the command line, just to see if the
> pbcopy part was working, and the copy part appears to work when I
> create the macro, but when I test it it does not work anymore. It does
> not seem like the selectToEnd of line part is working....
>
> Any ideas?
>
> Thanks,
>
> Brad
>
> On Jan 18, 2005, at 10:08 AM, Allan Odgaard wrote:
>
>> On Jan 18, 2005, at 16:49, Brad Miller wrote:
>>
>>> [...] so ctrl-y can't paste anything from the system clipboard or a
>>> 'regular' cut/paste.
>>
>> You can get the contents of the clipboard with 'pbpaste' and store
>> stuff on it with 'pbcopy' (they use stdin/stdout). Unfortunately they
>> do not use UTF-8. But maybe you can make a better solution than your
>> current (i.e. one that use/interact with the „real‰ clipboard) until I
>> get around to native support for kill-buffers.
>>
>> ______________________________________________________________________
>> 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
>>
> Brad Miller, PhD
> Assistant Professor
> Luther College
> http://www.cs.luther.edu/~bmiller
> jabber: bnmnetp(a)jabber.org
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 19 Jan 2005 08:54:51 +0000
> From: Sam Andrews <sam(a)samandrews.com>
> Subject: Re: [TxMt] feature request: named bookmarks
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <41EE205B.2050903(a)samandrews.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>> I would really like to see named bookmarks in TextMate. I think that a
>> small popup button on the bottom of textmate window next to the "Line: "
>> field will be cool.
>>
>> Userland, what's your take on this?
>
> i've always wanted to see a per-project to-do list (in a drawer, i expect)
> that
> can be linked to named bookmarks.
>
> so... open project drawer, select to-do view, chose entry - tm opens the file
> and jumps to the bookmark. then if you clear the bookmark in the left-hand
> margin it checks off the to-do (or sub-to-do) and vice versa.
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 19 Jan 2005 10:33:44 +0100
> From: Allan Odgaard <allan(a)macromates.com>
> Subject: Re: [TxMt] feature request: named bookmarks
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <3660346E-69FD-11D9-9B58-000D93589AF6(a)macromates.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Jan 19, 2005, at 9:54, Sam Andrews wrote:
>
>> so... open project drawer, select to-do view, chose entry - tm opens
>> the file and jumps to the bookmark. then if you clear the bookmark in
>> the left-hand margin it checks off the to-do (or sub-to-do) and vice
>> versa.
>
> Probably you can pull something similar off with a command that greps
> through all project files (e.g. after TODO) and have the pattern set to
> parse grep's output.
>
> This will give you a list of all bookmarks which can then be clicked to
> jump to the appropriate file. Using the format string you may be able
> to present it with the indent you speak of.
>
> Though you won't get the checkmarks ;)
>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 19 Jan 2005 10:58:33 +0100
> From: Ralph P?llath <lists(a)poellath.org>
> Subject: [TxMt] feature request: toggle foldings for blocks of type x
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <ADF2F1FB-6A00-11D9-8702-000D9334815A(a)poellath.org>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi,
>
> One thing that I'd love to see in TM is the ability to fold all blocks
> of a certain type, e.g. multiline comments.
>
> Cheers,
> -Ralph.
>
>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 19 Jan 2005 11:10:44 +0100
> From: Allan Odgaard <allan(a)macromates.com>
> Subject: Re: [TxMt] Solution for cut to end of line (emacs ctrl-k)?
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <61A52A64-6A02-11D9-9B58-000D93589AF6(a)macromates.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Jan 19, 2005, at 1:29, Brad Miller wrote:
>
>> Sadly, when I run the pbpaste command I just get a spinning beach ball
>> for about 30 seconds and then nothing gets pasted.
>
> hmm... yes... problem is that when TextMate claims ownership of the
> clipboard, all others need to ask TM for the contents, but TM is busy
> asking pbpaste for the command result.
>
> But if you make ctrl-k write to the normal clipboard, ctrl-y should
> just be re-bound to cmd-v!?!
>
>> I tried running pbpaste from the command line, just to see if the
>> pbcopy part was working, and the copy part appears to work when I
>> create the macro, but when I test it it does not work anymore. It
>> does not seem like the selectToEnd of line part is working....
>
> Come to think of it, the problem is probably the same as to when not
> using pbcopy (local clipboard in macros).
>
> I did a little bit of experimenting, and I can make it work if I let
> the macro execute this command (input: selection, output: discard):
>
> tmp=`mktemp -t tm_clip`; cat >$tmp; { sleep .2; pbcopy <$tmp; rm $tmp;
> } >/dev/null 2>&1 </dev/null &
>
> What it does is first store selection in a file, then asynchronously
> sleep for .2 seconds and _then_ copy the file contents to the clipboard
> (so that should be after TM thinks the macro is done, and thus after TM
> resets the clipboard).
>
> I admit, it's not very elegant...
>
>
>
> ------------------------------
>
> Message: 11
> Date: Wed, 19 Jan 2005 11:16:21 +0100
> From: Allan Odgaard <allan(a)macromates.com>
> Subject: Re: [TxMt] Solution for cut to end of line (emacs ctrl-k)?
> To: TM Users <textmate(a)lists.macromates.com>
> Message-ID: <2A9B2D4D-6A03-11D9-9B58-000D93589AF6(a)macromates.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Jan 19, 2005, at 11:10, Allan Odgaard wrote:
>
>> I admit, it's not very elegant...
>
> I may add an option to disable local clipboard on a per macro basis in
> b3 or b4, since I think this feature is probably too often the culprit
> of end-user customization.
>
>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> End of textmate Digest, Vol 4, Issue 31
> ***************************************
--
Head of Interaction Design
Tribal DDB
e: chrisj(a)tribalddb.co.uk
t: +44(0) 207 258 4522
1.
I want "File-->Save" to be disabled when a file just has been opened or
saved. The fact that it is not grayed out makes me think TM didn't save
the file although I pressed CMD-S
2.
I don't want to save a file just to try out a different encoding. Many
times per day I open files where my special swedish letters åäö is
messed up because applications like SSE doesn't save the file properly
for TM to understand which encoding it uses so it gets wrong all the
time.
I'd really really like to see "reinterpret this file with encoding: "
and "convert this file to encoding: " not only reinterpret as TM uses
(which also reloads the file, so one has to make sure to save first)
3.
A Document saved by SSE as ISO-Latin1 and open by TM is recognized as
that encoding. But saving the file with TM now magically changes the
file to UTF-8.
Don't get me wrong, I love TM... bought my license and haven't regret
it at all! Just need a few changes to truly love working with it :)
Kind Regards
Ivar
Well I just got back from an extended vacation and I am starting to put
textmate back to use but for the life of me I can not find any command
to show invisible characters. I thought it had this feature...?
What am I missing?
Thanks,
Eric
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For the last 7-8 weeks I've been trying to retrain myself to not use
ctrl-k/ctrl-y. Apparently it cannot be done. I've spent more time
undoing the crazy results of ctrl-k followed by ctrl-y than I care to
talk about.
I've tried the macro route, and I now understand that macros have their
own clipboards, which explains why the text that I cut inside the macro
just dissappears forever.
As suggested by someone on this list earlier (back in November), I've
created a macro to select to end of line, followed by a command that
cats the selected text into a temp file, and I've put both of those
little commands inside yet another macro bound to ctrl-k. I've bound
ctrl-y to a macro that cats the file into the current buffer. The
problem with this approach is that now ctrl-k / ctrl-y have their own
private little clipboard. so ctrl-y can't paste anything from the
system clipboard or a 'regular' cut/paste.
Does anybody have a better solution to this problem yet? I'm so happy
with so many things about TextMate, and I have paid the license fee,
but this morning I found myself trying out other editors again :-(
Thanks,
Brad
Brad Miller, PhD
Assistant Professor
Luther College
http://www.cs.luther.edu/~bmiller
jabber: bnmnetp(a)jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFB7TAot6pClM1VKiYRAr1/AJ95KPx7Pm+5DEnUC8Vi76NPx4KhWACfQSWB
IrUCwUhZ5DZQ87C5rFsfsUA=
=xeLB
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Apologize if this has been requested before.
I would really like to see named bookmarks in TextMate. I think that a
small popup button on the bottom of textmate window next to the "Line:
" field will be cool.
Userland, what's your take on this?
Nick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFB7Xuh53uNWFjvs2YRAidpAJ9Y2g5qH+pppJ1eEHDH537dETFfoQCfUmeU
EJnudYkXx2MOq5+i5czURCY=
=leUB
-----END PGP SIGNATURE-----
hi guys
somehow one of my old .php files was encoded as a BBEdit document so
when I double-clicked BB opened up... what a shock! Like travelling
back in time. Honestly I wondered if it had booted Classic up, the menu
looked so old :)
[Disclaimer, that's BB 7.x not 8.0, so maybe they freshened it up.]
Anyway that shows how fast TM has progressed. Just about the only thing
I miss (because I screwed up a bunch o' code today ;) is the autosave
feature where each file is backed up before each change. Can we please
have that in TM for us klutzes?
p.
Three changes.
I fixed the -w flag to await the closing of the editing window
without any RETURN prompt. I stole the code from Marcin's
<otheraccount(a)verizon.net> recent script. (What is Marcin's last
name?)
I added a -t flag like bbedit, so you can name the piped input.
I also added the ability to pass a -u flag so filenames are treated
as URLs. It then uses curl to decipher/download the filenames and
passes the results to TM. Unfortunately, this only works for
anonymous FTP and not most FTP/SFTP setups. I'm sure someone
enterprising could do it, but it doesn't seem worth it unless TM
saves files back to S/FTP. On the other hand, bbedit doesn't handle
http at all! :)
Here is the current help file.
>TextMate Command Line Tool
>usage: tm [-chtuw] filename [filename ...]
>
>This tool opens files, directories, URLs or (with no filenames)
>standard input.
>
> -c Create a new file.
> -h Show this help.
> -t Specify a title for piped input. Overrides other flags.
> -u Treat filenames as URLs (e.g. tm -u www.google.com). Uses curl.
> -w Waits for the edited file window to close before ending (for
>external editing)
Here is (from what I can tell) lacking in comparison to bbedit.
- jump to line number
(probably you'd want to use a command with output parsing anyway...
see e.g. Perl>PerlErrors)
- print (probably needs some Applescript... Marcin?)
- FTP/SFTP (prob need support from TM itself)
The latest script is still at
<http://macromates.com/svn/Bundles/trunk/Scripts/tm>.
best wishes, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
>The whole syntax highlighting thing is going to be overhauled, so in my
>opinion, it will be a bit a waste of time... The SH files will all have
>to be re-written or updated soon, so I don't see the need to do it
>twice or more, but if you've got lots of time on your hands, go for it
>;)
Ah, you must not have any major projects to procrastinate from... :)
>My advice is "sit tight, and wait for the good things to come", but of
>course, I am just one man :)
Yes, the bundles will need re-writing, but it feels like a stop-gap
measure is possible with some work and a small amount of coordination.
It also seems like Allan has a lot of stuff on his to-do list! 1.2
could be a long ways off...
So, to put my money where my mouth is, I tried out Chris Thomas's
hierarchical scheme with the Perl.tmbundle just to see how hard it
would be. It actually didn't take very long; the main issue was
deciding where in the hierarchy things should go, like variables and
functions. Things that were unlikely to have an analog in another
language (like POD) I put in a hierarchy beneath *.perl.
I also renamed the Latex innards. It was a little harder, as it's not
really a programming language, but I took a shot at it.
- Eric
ps. These are the classes I used. I know I'll just have to change
them again, but it _feels_ more organized. :)
comments.line.perl
comments.perl.POD
keywords.control.perl
keywords.functions.perl
keywords.functions.perl.arrows
keywords.functions.perl.comparison
keywords.functions.perl.filetest
keywords.variables.perl
keywords.variables.perl.#
keywords.variables.perl.special
keywords.variables.perl.special#
strings.backticked.perl
strings.double-quoted.perl
strings.double-quoted.perl.q
strings.double-quoted.perl.qlinestart
strings.program-block.perl
strings.regexp.perl
strings.single-quoted.perl
comments.line.latex
keywords.functions.latex
keywords.functions.latex.citations
keywords.functions.latex.sections
keywords.latex.braces
strings.latex.equation-$
strings.latex.equation-$$
strings.latex.equation-braces
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi Allan,
I love this new features in the latest release of SubEthaEdit: It
installs a shell command, see, which lets you open up files from the
command line by just typing see myfile.rb (or some other file—you get
the picture).
Now could we get the same thing for TextMate, please? That would be
really useful, since I'm always working in both TextMate and the shell
at the same time, and if I need to edit a particular file, it would
typically be faster to just open the file from the shell, than to grab
the mouse and click-expand/scroll around the folders tree to locate and
open it.
I know that I can say open file.name, if that file is already
associated with TextMate, but it opens in a separate window, not as
part of my project. It would be nice with a command that just always
opens TextMate, regardless of associations.
And when you make this feature, make sure you check if the file is
already included in one of my open projects, and open it there, not in
a separate window.
Thanks! :)
/Lars
Also posted at http://www.pinds.com/blog/one-entry?entry%5fid=21472
>Of course, what one could do is establish hierarchy using the names,
>and then have the editor parse the name keys.
Yes, I believe something like this will have to be done.
From an old post:
>For the record, BBEdit 8 recognizes the following colors for customization:
>
>General: Foreground, Background
>Guide Contrast [the color of non-page window]
>Custom Highlight Color: Primary, Secondary
>Highlight Insertion Point Line Color
>Source Code: Keywords, String Constants, Comments
>HTML Tags: General, Processing Instructions, Anchor, Image, Names, Values
Are these enough categories to go with? Is there some common/known
taxonomy of code categories we can use? If we can settle on a scheme,
bundle writers can touch up their work right away.
I like the fact that TM's color schemes are so customizable; but one
wonders how much complexity a typical user will want. There should
probably be some kind of scheme to install the color schemes of
others...
And if one sets colors in a global stylesheet, how should one handle
one language embedded in another? E.g. PHP/HTML or Perl/HTML?
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
>> I am about to hack up a small Cocoa tool to edit the syntax
>> highlighting of the bundles... it's a pain to do it manually. Would
>> there be any interest among you to distribute it here?
>>
>> It will be free of course, and I will provide the source.
>
> If you have the time, sure go ahead, but remember that Alan is
> planning this as a inbuilt feature, so perhaps you're better off
> spending that time relaxing with a beer.
>
> Then again, if you're sharing the source, you might give Alan a few
> ideas along the way :)
I vote for relaxing with a beer AND programming. I'd love to see the
source. I think Allan is planning something rather general and
powerful. In the meantime people would probably appreciate it if
(1) bundle writers standardized the 'names' of the various color classes and
(2) somebody wrote a little GUI that let people pick a standard set
of colors with the color picker and then propagate the changes across
all bundles.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hello, list.
I am about to hack up a small Cocoa tool to edit the syntax
highlighting of the bundles... it's a pain to do it manually. Would
there be any interest among you to distribute it here?
It will be free of course, and I will provide the source.
Nick