James A. Baker asked me for a BBEdit feature where the selection is
wrapped in a tag, which you pick from a list of tags. But then his
stream of thoughts derived the following TextMate solution, which I
think was very neat:
Create this snippet, name it _wtag:
<${2:tt}>$1</${2:tt}>$0
Then select Start Macro Recording and type:
cmd-x, _wtag, tab, cmd-v, tab, stop recording, save it for later.
Now you have a macro which wraps the current selection inside a tag
pair (the default tag name is tt, but you can change it). Press tab
again after having typed the name to leave the snippet.
Another neat trick I saw on a blog (but unfortunately lost the
reference) was a command configured to do:
open http://php.net/$TM_CURRENT_WORD
So simple, and yet so powerful (it looks up the word under the caret in
the PHP reference documentation).
It's really fantastic to see this end-user innovation, keep it up! :)
Kind regards Allan
Has anyone successfully unsubscribed from this list? When I hit either
the "password reminder" or "unsubscribe" button in the Mailman web
interface, I don't get any email from the Mailman. But he's happy
enough to deliver the list messages.
Guan
Just thought I'd chime in with my experiences of using TM over the last
couple of days.
Firstly, may I heap lavish praise on the developer(s). The
live-updating project drawer (despite its shortcomings, below) is
fantastic, and the Esc autocomplete is nothing short of magic. How does
it *always* seem to guess the right completion for a given start string
out of many possibilities? Regardless, this has made coding a lot less
laborious. The snippet and macro features are also great time savers.
But enough of the praise, here's my comments and suggestions :-)
* I rarely want to view the ASCII version of an image file. How about a
preview of the image in the editor pane instead?
* Whilst speed is generally not an issue, there is an annoying 2-4
second delay (i.e. spinning beach-ball) when switching to TM when I've
got an (open) project located on an SMB share.
* By default, TM requires a lot of keyboard mashing for relatively
common commands. For instance, I see no reason why the Command + Option
+ Control + D for toggling the project drawer can't simply be Command +
D (in fact, I've hacked this myself in IB and it works fine)
* How about a split view (i.e. the ability to see different sections of
the same document at once)?
* TM doesn't seem to remember the window scroll position if you do the
following: open a document (that scrolls), and scroll down without
changing the insertion point. Switch to another document/tab. Switch
back. The window scroll position is back to its original position, and
is no longer at the section of text I was looking at.
* When searching within a document for a string located "below the
fold", the matching string barely creeps "above the fold", i.e. is
bottom aligned relative to the window. This makes it harder to see the
match in context. I prefer the behaviour (which I believe BBEdit
exhibits) whereby the matching string is centred vertically in the
window, making it easier to spot and put in context.
* How about being able to create a "real" folder (as opposed to a
group) in the project draw?
* I would like the group name to be selected and editable immediately
after its creation, à la "New Folder" in the Finder
* The Shift Left/Shift Right commands exhibit weird behaviour. I expect
them to work like Command + [ and Command + ] in BBEdit or SubEthaEdit,
but they don't. (Sorry for the vagueness. It's easier for you to see it
yourself than for me to describe how.)
Overall, I like the direction TextMate is going in.
Regards,
Rich Barton
I found the single pixel cursor rather difficult to see with a black
background (even though I've edited the bundle for Ruby now). I'd like to
see an option to use a block cursor.
Thanks,
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
I have just downloaded textmate and I looks like a very promising editor. I hope to be able to use it soon!
I would very much like to see an environment for both latex and python. Those two environments are those I am in most of the time. I am sure that I not alone.
Also, to me the tab behaviour of Emacs (where you can press tab anywhere on a line to align the content of the line) is a big plus when programming. It helps structure back the code rapidly. This feature would be part of a more global automatic formatting for programs but at least it is almost essential.
This being said, you are doing an excellent work!
Congratulations and I look forward to your next version which might include these features.
Hi All,
Been a bit busy at work today, but the list is updated now. So far we
have:
C
C/C++/Objective-C
Java
JavaScript
Mono/C# (now updated with compile output support thanks to Jan Sabbe).
OCaml
PHP Smarty
Python
XML
Have a nice day!
Yours,
Ian.
#ifndef __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | http://ianp.org
#endif
When editing Ruby code, everything after the first "/" in code turns
yellow. For example, in the code
class Foo
def bletch(num)
@foo = num / 12
end
end
everything from the "/" to the end of the file is yellow.
Is this a known issue? What can I do to fix it?
Jim
--
Jim Menard, jimm(a)io.com, http://www.io.com/~jimm
"...it uses Smalltalk, rather than modern-day kludges such as Java,
which
resembles a modern object-orientated environment in the way that a pub
ashtray
resembles a cigar store."
-- Andrew Orlowski, "Forgotten language enables nonstop gadgets",
The Reg
Hey,
Thanks for a really neat product. I'm still messing about with it, but
I think it's a keeper.
I've noticed some things, though --
Odd help behaviour: the tooltip that appears when you hover over the
Commands textarea says that you can use the purple help icon to get a
full list of TextMate's exported variables, but that just goes to the
Commands reference page instead. There's a small link to the list of
variables, sure, but maybe the list of variables belongs on that page
too? (or it should link there as advertised, instead?)
Also, why does selecting Help *from the Help menu,* while the commands
window is open, mean that it goes to that page? I understand that
context is cool, but I expect to find that choosing '(AppName) Help'
from the Help menu would take me to the app's help index page.
Second: the whole dealie about the preferences window has been
discussed, it seems, but it's also something I miss. While there's
nothing that really *has* to be in a preference window, it seems
logical to me that per-document options ought to be kept well away from
the permanent ones.
Third, I'm not sure if it's my own font problems or not, but I've never
noticed it any other place -- when I'm using any bitmap font the first
character in a line has a larger gap between it and the next character.
You can see this in action here:
<http://www.raena.net/images/gappy.gif>
Fourth, why is Page Up and Down moving the insertion point? Can one
change that at all?
And finally, I'm not really concerned with (s)ftp support myself since
I prefer to use Transmit, but does anyone know how i can tell Transmit
to make TextMate available in its list of external editors? Can that be
done at all?
Hi,
Are there any known issues with TM and saving files that needs
authorization to view/edit?
I opended /etc/hosts with sudo from the cmdline, and TM doesn't seem
to want to save the changes, no error, it just remains unsaved.
--johan
--
Johan Sørensen
Professional Futurist
www.johansorensen.com
I usually work with an additional monitor plugged into my Powerbook at
home, but not at work.
If I accidentally leave anything open on the external monitor before
disconnecting everything, on restoring the affected application the
window is pulled onto screen. That is to say, if at any time the desktop
area is reduced, windows readjust their position so not to be lost.
TextMate doesn't seem to be doing this.
I connected up my external monitor this evening to find a window that
had been 'lost' all day!
drew.