-----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