I've written several commands that access Rails functions (such
as script/generate scaffold) via osascript. They serve me well, and
I'd now like to give them out to the RoR/TextMate community as a
plugin. It would be great to package them together into a single
floating window with a drop down or similar item to provide quick-
access under Window>RailsTools or similar. Both TextMate and plugin
development are fairly new to me -- can anyone give me some hints or
sample code that would help me on my way?
Is it possible to change the key binding for completion, everywhere?
Unfortunately, I'm a converting Emacs user, and very used to hitting
Alt-/ to do completion...
I had a brief look in the manual, but I couldn't see an obvious way to
do this.
Thanks,
-Dom
Just downloaded your bundle, the Balance Jr Macro is pretty sweet.
Indeed not exactly what I was looking for, and what was previously
very thoroughly and precisely explained by Eric O'Brien, but
nevertheless a very useful addition and a good example to study and
see if I can figure out how to code the functionality myself.
I thought there was a shortcut out of the box for that though, I used
to use it all the time in BBEdit and somehow assumed it was also in
TM. My bad! :) Time to brush up on my regex...
On Feb 6, 2006, at 3:20 AM, textmate-request(a)lists.macromates.com wrote:
> I've written a couple of pretty handy macros that do something pretty
> handy, although not precisely what you guys are talking about.
>
> Check out the ScreenCast!
> http://subtlegradient.com/articles/2006/02/05/my_textmate_bundles_etc
>
> You place your caret inside something and the macro will select
> everything in between enclosing characters. It's kinda like the
> balance command, except it grabs everything INSIDE the characters,
> but not the characters themselves.
>
> it works with:
>
> [], {}, (), '', "", word="", <>, ><, $word, @word, /* word */, <%
> word %>, <%= word %>, <%# word %>, <%@ word %>, integers, and
> probably more, but I forget now.
>
>
> How it applies to this conversation. If you want to select the
> "paragraph text" section of the following HTML, place your caret
> somewhere in the text and hit the macro. It'll select everything
> between the > & < characters.
>
> <p class="blah">
> paragraph text
> </p>
>
> It's hip, you'll hate it!
Sorry if this has come up before and sorry if I'm missing something
obvious...
I like to work with tab stops set to 4 characters and use spaces
rather than hard tabs for indentation - otherwise everything gets
messy when you process your file with something that expects 8 column
tabs.
Something seems a little counter-intuitive with the soft tabs setting
in TM. With Soft Tabs (Spaces) selected hitting tab still inserts a
hard tab character. Additionally with Soft Tabs selected Text >
Convert > Tabs to Spaces doesn't seem to do anything - it certainly
leaves plenty of tabs in the files. With Soft Tabs turned off I still
get hard tabs when I hit the tab key - but at least Tabs to Spaces
works.
This is in Perl mode - I haven't tried other modes yet but shall if
it's likely to make a difference.
So - what's the blindingly obvious solution I've missed? :)
--
Andy Armstrong, hexten.net
I use Change to Column Selection as a quick way of commenting out
selected lines. For instance, if I've got a LaTeX selection that
looks like this:
%\captionwidth{\textwidth}
\begin{comment}
\begin{figure}
%\includegraphics{table2.pdf}
And I want to comment out the entire selection, then I can't use the
Comment Selection command (Command-/) because that simply removes the
existing comments. (I think this is a bug in the Source bundle.)
To work around the problem, I can do Change to Column Selection, then
hit '%', which achieves the desired effect of commenting out all lines:
%%\captionwidth{\textwidth}
%\begin{comment}
%\begin{figure}
%%\includegraphics{table2.pdf}
However, if I later want to remove the commenting I've added, Change
to Column Selection does not work. It seems I am only able to add,
not delete, text during column selection. Is this a bug?
Trevor
P.S. The Comment Selection does work properly for removing the
comments in the latter case, but it seems wrong to have to use one
technique for commenting out a selection and a completely different
one for removing the commenting.
I'm evaluating Tetxtmate and I found a behavior that I'm trying to
see if it is a feature or a bug.
The caret position doesn't match where the character gets inserted.
For example:
function myFunction()
if I position the caret inside the parentheses and I start typing the
character will be inserted to the outside the parentheses
function myFunctionpVal()
instead of
function myFunction(pVal)
I tried it on 2 systems and iMac G5 and a PowerPc Dual G5. same behavior
TextMate version 1.5 (906)
I like the feature set of the editor and would love to use it on
project, but unless I find a way to place the characters at the caret
position is would be really hard to use it..
thanks
The patch below for the Diff Syntax modifies it so that diffs
produced by the Perforce bundle are properly recognized and syntax-
highlighted.
BTW aren't the shortcuts for the commands in the diff bundle
incorrect? They all use 'Shift-Ctrl-Alt-D', which I thought was were
reserved to select a syntax (Diff Syntax did not have a shortcut
assigned, the patch below includes that). Shouldn't the command use
'Shift-Ctrl-D' instead?
Gerd
Sorry if this is a FAQ, but I couldn't find reference to the problem on
the wiki, so I thought I'd post to the mailing list.
I's using Textmate 1.5 (build 906) under OS X 10.3.9. Whenever I copy
some text to the clipboard, the program crashes. This happens
consistently, whether I'm using new documents or existing files.
Can anyone help?
Thanks!!
Dennie
Dennie Hoopingarner, Ph.D.
Associate Director for Technology Implementation, CLEAR
Director, Language Learning Center
Michigan State University
hi all and alan -- thanks for a great product.
One suggestion: I think a split pane ala mail.app would be an
improvement over the current drawer. Use of a drawer implies to me,
an optional part of the interface, but when working on a project, the
file list is hardly option, in my opinion. Is there any here that
opens and closes the drawer repeatedly to access their project
listing? A drawer makes window resizing a two step operation -- you
have to first position your window to accommodate your drawer before
doing the resize.. Try it, you'll see what I mean. I think really,
managing the use of space *inside* a window is much more natural than
managing it outside.
.niels
niels gabel
firewire cpu software
apple computer, inc.