Dear TextMate developper(s),
I'm considering TextMate again, and while doing some more tests I
realised that the "tab" key has a somewhat unusual behaviour
(compared to other advanced editors) when several lines are
selected : most editors would shift the whole block, while TextMate
just replaces the block with a tab... On top of that, the keyboard
shortcut seems odd to me (at least for a french keayboard), while
shifting blocks is a very usual task when I work on code or XML
Documents. And also, shifting left is often done using shift+tab. Is
it possible to see those "standards" shortcuts working in TextMate ?
Also, I noticed that it now has folding abilities. But is it possible
to disable it (I don't use it) ?
Best regards,
--
Frédérik Bilhaut
GREYC - Université de Caen
Campus II - Sciences 3 - Bureau 385
http://www.info.unicaen.fr/~fbilhaut
"And if you do, have you written a bundle for it? :-)"
Saw that no body seemed to answer Oscar's question earlier, but I too
occasionally use groff, nroff and the mom macros and would love a
bundle.
Currently I have to go to emacs still.
Mom does come with a syntax sheet for use with elvis, a vim clone
which I have included (2.4 kb) if anyone would like to make a quick
textmate language file.
Thanks
Robert
I was just wondering the following was possible, and I found out it
is, but in case other people are wondering, you can include braces in
the snippet placeholder text, if you escape the right brace.
Why would I want to do that? Suppose I want to use nested
placeholders, to allow for optional arguments. For instance imagine a
snippet like:
\\foo${1:(${2:0},${3:0})}
then this will show up as \foo(0,0) with the entire (0,0)
highlighted, so if I don't want it to be there then I can just press
delete and continue, or if I want it I can press tab and move to
editing each of the two zeros.
This works great in this case, but suppose I want *braces* instead of
parentheses (as in most LaTeX commands):
\\foo${1:{${2:0},${3:0}}}
As it stands, the second to last brace is matched as closing the
placeholder ${1, which leaves the wrong thing highlighted . The trick
is to escape it, like so:
\\foo${1:{${2:0},${3:0}\}}
Very nifty and useful, and not documented I think. My first impulse
was to escape the corresponding left brace as well, but it doesn't
need (and in fact won't accept) escaping. No sure how I feel about
that, it looks asymmetric to me. But hey, it works!
I am now very tempted to change most of the sectioning commands in
the LaTeX bundle to make adding labels optional, and combine the
stared versions of environment with the non-stared ones.
Haris
if I use the php snippet 'if', how can I do
if ($_REQUEST["
?
Which, in snipped mode, is translated to
if -> tab -req -> tab
the second tab goes to the portion of code of the 'if' snippet, it
doesn't create the $_REQUEST variable...
thank you
m.
Hello,
is there any automatic 'end of line' thing in the smart
typing feature? I feel as ctrl+e, or cmd+right, or retyping
of ") is breaking my hyper-lazy behaviour.
Thanks :)
max
Ok, I have got to say it, the last two updates have been really
wonderful in the kind of functionality they have added. It's like a
dream come true.
Correction, it *is* a dream come true.
Allan, you seem to be getting these updates out faster than I can
download them (and I'm on broadband), really impressive.
Slight feature request: When a new update is downloaded, and TM is
relaunched upon my clicking on it, is it possible for whatever
documents were open at the time to be opened again?
I only had one document open this time, but I kind of missed it. I
don't know what I would have done if I had ten of them open.
Haris
Hi,
When I escape a double-quote inside a regexp of a javascript snippet,
the syntax coloring is off.
See the attached screenshot for an example.
The language of the page is set to HTML.
HTH,
- n.
I've just noticed that foldings are not working with the Tcl language.
In the following program:
proc foo {args} \
{
switch -exact -- $var {
match {
}
default {}
}
}
I don't get any foldings even though they Tcl syntax defines them
like so:
foldingStartMarker = '\{\s*\\?$}';
foldingStopMarker = '^\s*\}';
Any ideas?
Thanks,
-Oscar
P.S. Can we add '_', '.', ':', and [0-9] to the list of valid
variable characters?
{ name = 'variable.other.tcl';
comment = 'FIXME what are legal variable
characters? --Allan';
match = '\$([a-zA-Z_\.:][a-zA-Z_0-9\.:]+(\([^\)]+
\))?|\{[a-zA-Z ]*\})';
}
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Just thought I'd report an odd behavior. I auto-installed the newest version
611. Closed Textmate. Reopened it.
Clicked on a file in the drawer to open it.
The odd thing is the the font size was wrong. It looked to be 1 size smaller
than I had set it before.
So I go to Preferences and try to reset the font size. It didn't take. Close
Preferences and reopen to try again. Still stuck in something like size 8.
I'm using ProFont.
Finally closed the TextMate again with the font set at something huge like
132. Reopened TextMate. Now the font sizing kicked in and resizing works
again. I cannot reproduce so don't know if you should be wasting time
looking at what's causing this.
Thanks,
Ed Wong
Is there one? I'd like to see even just a page or two of getting
started material that gives just a basic overview of how to create
and edit a basic html project with TextMate. For example, someone
recently mentioned here that you can get a pair of html tags by
typing the tag name, then ctrl-cmd-space. That's great! That's the
kind of stuff that makes me want to use an editor like Textmate
instead of using 'vi' in a bash shell.
So where can I find out how to do more of this kinda stuff?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Greetings all,
I haven't been able to find a resolution to a keybinding issue I've
been having—updates (through 611) after 1.1b17 do not play nicely
with my previously existing keybindings, either those generated in my
KeyBindings.dict file or those generated by MenuMaster. (For example,
no matter what I bind to ^T, it always "Transposes").
Any clues on this one? —the latest feature set is pretty appealing,
so I'm eager to use the latest version…
Thanks,
David
"A commands return code can be used to momentarily change the output
option set for that command"
This doesn't seem to work as advertised.
For example for my syntax checker what I want is to 'Show as HTML'
when errors are detected, and 'Show as Tooltip' when everything is fine.
It seems when the 'Output' option in the bundle editor is set to
'Show as HTML', that is what happens no matter what exit code the
tool uses.
When I set the 'Output' option to 'Discard', the exit code does seem
to be honored, but there is no exit code that for 'Show as HTML'!
Am I missing something?
Gerd
Can I attach a command to a project file so that it is only available when that project is open and foremost in TextMate? I'd like to write a command to rsync a project's files to a server, and give each project its own command to sync the proper directories to the right server.
Thanks,
Shawn
> Glen Henshaw wrote:
> > Am I missing something?
>
> Open up the Bundle Editor (Window, Bundle Editor or control, option,
> cmd, b) and press the "More Bundles…" button.
>
> Jeroen.
I've done that. The bundles in question don't appear there either.
Glen
Hi guys,
I have a small suggestion for the HTML bundle's Tidy command:
Could we add "-wrap 0" to the options? I've done it to my local copy
-- it stops Tidy from wrapping your HTML at column 78.
Thoughts?
Tony Arnold
http://tonyarnold.com/
“The university was great. They gave us money and facilities,
but we didn’t have to produce anything. I’ve worked in the
private sector. You don’t know what it’s like out there. They
expect results.” -- Dr Ray Stanz, Ghostbusters
I also really like how you can click to change tabs and languages,
it's intuitive. Keeping in line with that, perhaps a click on the
line and column info should launch the "Go to line" window. Not that
i'd ever use it, just to get that intuitive feeling.
Also, while others ... are in the tab settings when you click on a
window, it does not appear in the drop-down menu, this is
inconsistent behaviour and therefore bad :)
Andreas
Hi all,
I'm trying to get the Matlab bundle to work. I've done an svn
checkout of all of the bundles into my /Library/Application Support/
TextMate/Bundles directory. And... most of the languages appear when
I restart TextMate, but a few (Matlab, Darcs, Quake, R, Gri, and a
few others) don't. The permissions on all of the bundles are
identical, and nothing suspicious shows up in Console.app about
TextMate not being able to parse or read anything. Am I missing
something?
Thanks,
Glen
____________________________________
Glen Henshaw
Naval Research Laboratory
ghenshaw(a)space.nrl.navy.mil
I'm having a bit of trouble figuring out how scope is determined by
TextMate.
What has to happen for "source.ruby.rails" to be active? I am working
in documents with .rb and .rhtml extensions, but unless I remove the
Scope condition I can't get the Rails snippets to be active.
Can I attach a command to a project file so that it is only available when that project is open and foremost in TextMate? I'd like to write a command to rsync a project's files to a server, and give each project its own command to sync the proper directories to the right server.
Thanks,
Shawn
Hello Mark Windrim
I'm Seán Windrim, just starting a web site, and
exploration of my name. Any help would be
appreciated!
Thanks!
Seán Windrim http://windrim.org/
Hi.. I've been finding a lot of these temp files lying around here and
there.. Is there anyway to have the editor remove them afterwards a file
is closed? Currently (at least as of version 1.1b17 (513)) this isn't
the case and I find that I've got just tons of these files lying
around.. I'll assume this is a bug, but it would be nice to get fixed if
it's still outstanding..
Thanks!
-- Rick
Hello,
I mainly use PHP and Perl Languages, so I deselected all the others.
For some reason, I had 4 bundles in the PHP folder: 2 HTML(php) and 2
PHP. I deleted the 2 I figured less useful, and I realized I lost
smart typing.
I deleted the application, the folder in the Library with all the
bundles, downloaded again the app and made a svn checkout. Still it
doesn't work.
In the Languages window, I have some () [] directives under
Preferences, though.
thank you for help
max