I think this was a prob in b15 as well. Constructions like
function() {
// tabbed automatically
}
now come out like this:
function() {
// left on same indent level
}
A small annoyance but it adds up :)
Ben
Just hacked TextExtras to do auto-completion on space... however to get
it to work I had to alter DefaultKeyBindings.dict, which is now messing
with TM as I assume it's using a different InputManager and can't find
the functions I assigned to the space key. It would be nice to be able
to use the completion functionality within TM, but if it's not
technically possible then I'll settle for just resetting the bindings
for it.
How can I override these bindings just for TextMate? I'd assume it
would be possible by editing the KeyBindings.dict file in TM's
Resources, however I have no idea how (or if it's even possible) to map
a key binding to an NSTextView method with arguments. My first try
would be
{
" " = "insertText:@' '"; /* space */
}
However I read somewhere about @-initialized strings being defined at
compile-time, so this doesn't work.
Any ideas? I'll make sure to put together a nice write-up when I'm done
:)
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hello,
I am trying to create a new plist entry for editing files in the
SuperCollider
language (see:
http://www.sourceforge.net/projects/supercollider/
or
http://en.wikipedia.org/wiki/SuperCollider
)
I started by duplicating the entry for c++ and editing the initial
entries as follows:
{ scopeName = "source.sc";
fileTypes = ( "sc", "rtf", "txt" );
However this did not work. It works for files of name
<filename>.sc.rtf, <filename>.sc.txt but not for <filename>.sc
Could someone please help me correct the plist entry so that it works
for <filename>.sc?
Otherwise the syntax definition for c++ works quite well to cover also
the
actual syntax of SuperCollider (some adjustments will be needed
to make this complete).
Thanks,
Iannis Zannos
So, I've set up this great 'thingie' (is it a macro, command,
snippet? who knows?) triggered on 'foo'->tab.
Works great, I love it. Now I want to change it.
Damn if I can remember where I put it and, now that I've looked
everywhere I can think of, can anyone tell me how to find a lost
'thingie' by name?
Thanks,
S
Hi,
As much as I love to keyboard shortcuts, coming from an avid
QuickSilver user, I will love to have a floating windows sometimes for
less-used macros and commands. Navigating through three levels of
menus really bores me. I really don't want to assign yet another
arcane keyboard command either.
Is a language specific floating palette (like a tear-off menu from
Automation) a sound idea?
Ivan
Dan,
Just to be safe, I’ll move the conversation over to the regular list.
Though questions about adding to the development I think do belong on
the developer list too.
The Gri and View command works great. Thanks, your effort is much better
then the one I was coming up with.
On 07/08/2005, at 15.24, Jeff Powell wrote:
[ I have cc'ed the mailing list since the info provided may be useful
to others as well ]
> How then do I take this glossary from BBEdit and copy it over to
> the TextMate drawer.
I'm not familiar with BBEdit's glossary functionality, but I
downloaded some example glossaries and made a perl script which
converts these to TextMate snippets (placing them in a bundle).
You run it with the folder containing a set of glossary items as
argument. It will then create a tmbundle named after this folder,
containing the items in the folder (as snippets). It removes
#indent#, converts the #placeholderstart/end# to TM-notation for
placeholders, does the proper escapes, and saves this as a property
list (the format used for TM snippets) in the created bundle.
It uses the first word of the filename (in lowercase) as the tab-
trigger. And you can supply a scope to be used for the script by
using -s <scope> as first argument.
So for example I downloaded Marc's Bourne Shell Glossary. After
mounting the disk image I ran this command from Terminal:
./glossary_to_snippet.perl -s source.shell '/Volumes/Bourne Shell
Glossary.sh 1.0/Bourne Shell Glossary.sh'
Then (re)start TextMate, and there's a new bundle named “Bourne Shell
Glossary” which contain the snippets.
This (TextMate) bundle is placed in ~/Library/Application Support/
TextMate/Bundles -- from Finder you'll need to use Show Package
Contents to inspect the bundle, but you can drag it to TextMate to
have a look at the contents.
I hope this provides you with enough details to convert your
glossaries. If you're not familiar with what the scope is, I
recommend this blog posting [1].
Kind regards Allan
[1] http://macromates.com/blog/archives/2005/07/06/introduction-to-
scopes/
Hi all,
I'd like to add support for highlighting the syntax of BBCode, but I'm
not really sure where to start. The main feature I'm looking for at
the moment is to turn on PHP syntax highlighting when you are inside a
[php] code [/php] section.
Where should I start looking for files to edit?
Thanks,
Douglas
I have the bundle packages checked out to /Library/Application
Support/TextMate/Bundles and I have a Rails.tmbundle in there, but
there is no option for Rails in the Automation Menu. Shouldn't there be?