> [CHANGED] When erasing a key equivalent (by clicking the X), the
> input control will resign as first responder (i.e. lose focus).
Thank you, thank you, thank you!
> [NEW] It’s now possible to change the key equivalent used for the
> bundle items pop-up menu in the status bar. This is done by setting
> the OakBundleItemsPopUpMenuKeyEquivalent defaults property to the
> key string. The default is "^\033" (control-Escape). This key does
> have very low precedence.
How does one find the key string value for a key? For instance F3. I
found some unicode codes here:
http://hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html
and also this little app that tells you various codes here:
http://www.petermaurer.de/nasi.php?section=keycodes
This program, for ctrl-escape, gave me:
Unicode: 27 / 0x1b
Keys: ^Escape
Key Code: 53 / 0x35
Modifiers: 262401 / 0x40101
And for F3 gave me:
Unicode: 63238 / 0xf706
Keys: F3
Key Code: 99 / 0x63
Modifiers: 8388864 / 0x800100
Are any of these numbers the right thing? I'm worried because I am
not seeing \033 in either of these entries.
Haris
Hi,
A newbie question. Is there any way to choose from keyboards without
arrow keys when I see multiple options.
For example, as in the Manual "5.1.2 Tab Trriggers", in CSS if I type
list and hit tab, I see 8 options. I wanna pick one up without using
arrow keys and a mouse.
Sorry if this is documented in the manual. Thanks for your attention.
Once I found in the Wiki a tip to let TextMate auto add * in C
comments. That is to say when I press return
it goes from
/*
* this is a comment...
ro
/*
* this is a comment...
*
Unfortunately I'm not able to find it anymore.
This was just a "basic" question, since manually adding * and
spaces (tab is "rigid" it adds a fixed number of spaces, it does not
seem to put the "right" number, that is to say the number that is
needed to align with the above content).
A more advanced question is: could a "Doxygen" mode be done?
Is someone doing it?
I suppose it is possible, since it should behave quite like the css
mode inside the HTML mode or something like that?
-enrico
... how I stopped worrying and learned to love absolute paths.
Hey all, new (<24hrs) TextMate user, and as a recovering emacs/Alpha
user, I am *LOVING* this thing. I have hopes for one use of the
Projects that I can't seem to get working, and my investigations make
me think that I'm just trying to abuse the poor things more than
they're intended to be.
Scenario:
I have a large (stable) code base that I'm working with, and am
doing a number of investigations into the code to figure out how the
bloody thing works. It occurred to me that I might be able to use
Projects as a way of tracking these investigations:
1) Drop top folder of source repository on TextMate.
2) Start digging through code, leaving windows open as tabs.
3) When I'm done, I have a list from left to right of the files I
ended up looking at, and the last place I looked in them.
4) Save the project with an appropriate name related to the *topic*
"DataFileSearching.tmproj" for example.
5) At later date, when I need to revisit the investigation, I have
breadcrumbs of where I went, what I looked at, etc. I also have a
timestamp on the Project file of the last time it was worked on. (I
considered using Groups in a Project, but that doesn't give me a
workset, or a timestamp.)
Now the problem... if I move the Project file, it breaks all the
folder references. My first thought was that after step 1, but
before I open any files, I just needed to select the top level in the
Project, Get Info, and then check Save as Absolute Path. I peeked
into the .tmproj file, and yup, a nice absolute path was created for
me. Moving the Project file resulted in it still being able to find
the root of the source tree. Problem one down.
Now for the second problem... if any files are open, and I save the
Project, *those* paths are *NOT* saved as absolute, and instead are
relative to where the .tmproj file resides. If I move the file, I
lose all my breadcrumbs. Bummer.
So this boils down to: am I missing something, or is this a bug to
file?
On 26/4/2006, at 18:25, Plessl Christian wrote:
> [...] Is there a way to implement this in Textmate without either:
> a) modifying all programming language modes with the new rule, or
> b) creating new language bundles C (+fixme), Java (+fixme) etc.
> that include the language definitions for C/Java and add the new
> syntax highlighting rule?
There is not, no. But a solution will appear, and is conceptually
rather simple IMO.
Currently the scope selector is disabled for language grammars, now
imagine it wasn’t, and that selector decided where to inject the
grammar!
That would allow to tear out the PHP, Ruby, and Smarty handling of
the HTML grammar, and instead have that with the language. Likewise
it allows the mentioned FIXME/TODO grammar to be in the TODO bundle,
and be injected based on a scope selector -- disabling the TODO
bundle would then disable this injection automatically.
There is a scope addition which will make this more powerful, namely
exposing arbitrary file attributes in the scope (which scope
selectors can then target), that way, the Java bundle can inject <%
java %> support to HTML files only when the file type attribute is
‘jsp’, and the Subversion bundle can inject the various svn keywords
only when the SCM attribute is ‘svn’.
> Probably I should ask this question on the mailing list, should I?
I cc’ed the mailing list, seeing how others probably would enjoy
reading my reply to this (though I think I have hinted at this
earlier, maybe only on IRC).
I hope to have the file attributes exposed in the scope already in
2.0 (this will then also allow all SCM bundles to use the same key
equivalents), but grammar injection is probably at earlist 2.1 or so…
the technical challenge isn’t that big, but I would also need to
extend scope selectors to allow an injection to stop after a given
depth, so to speak -- and I also need to only focus on one thing at a
time, to actually get anything done :)
Kind regars Allan
Is the functionality of Reformat Paragraph controlled by a bundle?
Specifically, the way it autoindents lines after a * like this:
* Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
I'd like this auto-indenting to occur after a - too.
Q
Hi.
My first post. Since I haven't received any messages from the list yet
(just signed up), I didn't know whether I had to prepend something
like [Textmate] to the Subject line, so I didn't.
I would like to to the delete the current line using Shift + Delete
First Attempt... Macro
Jump to beginning of current line, hit CTRL+K, hit back-delete, press down
This worked OK for a while, but I ran into probems when trying to
delete blank lines, and the carat position is in a less than desirable
place
2nd Attempt... Command
Got pretty far with this one. I read in the entire document into an
array, sliced the line, and set the output to replace the document.
However, couldn't place the carat position anywhere. I believe you can
only define the carat position when inserting as a snippet, not
replacing the document.
Of course, there may be an even easier way to do this, but I don't know it.
Hi,
I don't like pyunit, so use py.test instead. It was really simple to
wire py.test into the Python bundle, but it was also really ugly
using the "Text Window."
Based on some feedback from the IRC channel, and the excellent
example of PyMate, I cobbled together PyTestMate which allows you to
run py.test unit tests directly from within TextMate, and get lovely
formated results from those tests.
It's still a work in progress, but it does work quite well, in fact,
the unit tests for PyTestMate were all written using PyTestMate.
If you'd be interested in taking a look at it please let me know and
I'll forward you the code.
--
Stand Fast,
tjg.
Timothy Grant
As discussed previously on this list, I have made a bundle of all my
Ruby shortcuts and made it available to all. Bundle and detailed
description can be found at:
http://blog.grayproductions.net/articles/2006/04/12/ruby-idioms-
bundle-for-textmate
Enjoy.
James Edward Gray II