Hi All,
I am creating snippets and I was wondering if there is a way to force tabs
to follow similar lines...
Sample
Snippet 1
mytext -> -> -> Text
Snippet 2
(listens to line above and uses the tabs necessary to align Text in next
line
mytexttwo -> -> Text
So it would look like this:
mytext -> -> -> Text
mytexttwo -> -> Text
I can create two different snippets that use 1 or 2 or 3 tabs as neccesary
but since i will never know what mytext will be I need to create the tabs in
some kind of dynamic way.
Any ideas?
I must be missing something really obvious here but I don't know how
to do this most basic thing:
(1) Drag a folder onto TM icon to open as project
(2) Open an HTML file called index.html
-- Now here's the part that throws me ---
(3) Make a new file called index2.html based on the original index.html
My first instinct is to right click on the file in the project drawer
and look for "duplicate file" or something similar - no such option
exists. So the next thing I try is opening the file and using "Save
as" to make the new file. This actually works but something weird
happens: In the drawer, it has the effect of *renaming* my original
file rather than adding a new one. If I switch to another
application and then back to TM, the original file reappears. Is
this expected behavior?
So what's the preferred method of creating a new file starting with a
copy of an existing one?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line
ftp client - ideally I want something that I can use much like rsync
but that works over ftp. ie. I want to upload entire directory
trees. (and I don't think I can do this with the default ftp client,
but I'd love to be shown wrong)
Thanks.,
Hadley
Hi all,
I'm attempting to write a command which uses the scope for input as in the
"Scope based customization" screencast, but I'm running into a strange
issue. Even though the scope does appear to be correctly managing when my
command is allowed to run the input to my command is always the whole
document (unless I have a selection in the correct scope, in which case I
get the correct selection).
I'm running the 30 day trial of Textmate: Version 1.5.5 (1368)
Any advice about what I'm doing wrong would be greatly appreciated!
Thanks!
:habib
Hello,
I am writing a bundle for Spice-like circuit simulator input files.
For these text files, one of the rules is to have the first line as a
comment, no matter what is on the line. I was wondering how this
could be incorporated into the language grammar to set the
appropriate scope for the first line.
Pavan
Hi everyone,
<not very interesting context>
I'm currently working with a software called OpenMusic. It's based on
an extension of Lisp and make massive use of CLOS.
I thus often have to define new classes. I don't know if it's CLOS or
OpenMusic related, but class slots definition are quite ineffective.
Typically, defining a class in OM would look like
(defclass* name (superclasses)
((<slot name> :accessor <slot name> :initarg :<slot name> :initform
<default value> :type <type of the slot>
:documentation "<obscure string>"))
)
The boring part, that is slot definition, could of course benefit a
lot of snippets. Typically, a <enter> short cut (or is it <return> ?
Well, the keypad one.), as in LaTeX itemize environment, would be
perfect.
So I'd like to define and extension of the Lisp language to match my
need. I already had a slight problem and expect more to come (like
when I started to write one for the GP language).
So here is the first one that I met. As you can see above, class are
usually defined by defclass* instead of defclass.
I didn't find in the documentation how to match the * character.
Escaping the * with \, as in
{ name = 'meta.class.lisp.openmusic';
match = '(\b(defclass|defclass\*)\b)(\s+)((\w|\-|\!|\?)*)';
captures = {
2 = { name = 'storage.type.class.lisp.openmusic'; };
4 = { name = 'entity.name.class.lisp.openmusic'; };
# Of course, there are still plenty of things missing.
};
apparently won't work. What did I wrote wrong in that part ? It's
just the meta.function.lisp rewritten and it does what expected when
used with "defclass".
Thanks for your help,
Édouard
PS : I know I could perfectly avoid such troubles by creating a tab
triggered snippet, but that's just a nice occasion to get in TM
languages definition a bit further.
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard &
Mouse preferences > Modifier Keys...). Problem is, not all TextMate
combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was
laid out this way, and it's the only way to fly. Especially on the
MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
For example: Paste From History Ctrl-Option-Command-V. Works fine
with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Another example: Select Bundle Item... Ctrl-Command-T works fine
both ways, however.
Perhaps there's something deep in TextMate's key processing code
that's only looking directly at the Ctrl key, and not seeing the
system-remapped Caps Lock key?
Thanks for your attention!
Jon
I find my self wrapping html code very frequently.
It is a pain but I do not know how to work with regex,
Basically I need to use echo "" to wrap the html code and escape all of the
other " in it.
can someone help me?
Please.
-Thansk
-L
--
View this message in context: http://www.nabble.com/PHP-echo-wrap-tf3847294.html#a10896573
Sent from the textmate users mailing list archive at Nabble.com.
Hello!
I have a got a small problem: I want Textmate to compile my LaTeX
document via dvi - ps - pdf and _not_ with pdflatex. I can't find any
easy way to configure it like that I don't want to use the terminal
every time.
Do you know any way to configure this?
Yours,
Mark
One of the options when creating a command is to use a tab trigger but what
is the logic behind when selecting text and then allowing a tab trigger to
be fired?