Hi Folks,
inspired by the UI thread I hacked together a TextMate plugin. It
shows all bundle shortcuts applying to the current scope whenever a
modifier key is held for more than a second.
It really is just a proof of concept and missing some features. I am
not even sure if I will continue to work on it and am kind of busy
the upcoming week, but I was curious about what people thought about
that one. Is it useful at all?
Get it here: http://www.cocoabits.com/TmShortcutSnitch/
Gerd
hi Sebastian Friedrich,
I am copying this reply to the textmate user list (which you can join
at http://lists.macromates.com/mailman/listinfo/textmate), since I am
a bit crunched for time right now.
Original request:
>i saw that you are maintaining the perl bundle for textmate. if
>that's the case, is there any possibility to add html (or even sql
>for that matter) syntax coloring in HERE documents in similar ways
>that js/css/php scope is activated within html. I find myself having
>to edit lots of html within perl scripts (yeah, nobody i work with
>uses templating) and it would be quite helpful if there's a way to
>turn on HTML scope within those HERE blocks.
>
>for instance, a HERE keyword like HTML_BLOCK would trigger all
>content to be html scope with variables ($, @) highlighted as such.
>
>print <<HTML_BLOCK;
>[HTML]
>HTML_BLOCK
>
>any chance you would like to implement that or could give me some
>hits on how to get this to work. Thanks so much in advance.
I think this should be pretty straightforward, declaring the .heredoc
scopes to inherit styling from html (in cases where all heredocs are
HTML styled) or making a new .heredoc-html scope to match only names
with "HTML" in them which then inherit from HTML styles.
Could someone on the list help out with details?
best wishes, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Has the problem with using environment variables for macros been
solved yet? I have a problem using the macro "Generic Completion" in
the LaTeX bundle. It complains about "/Macros/LaTeXcomplete.pl" not
being found, and since the command line is
command = "\"${TM_BUNDLE_PATH}/Macros/LaTeXcomplete.pl\"";
I suspect it's a problem with setting TM_BUNDLE_PATH.
/Ola
> I'm working on a solution which takes the output from MTASC and
> outputs HTML when there's an error, and a OK tooltip when things are
> fine. It's almost there but the links back to the files don't quite
> work just yet... I just don't know enough about bash and regular
> expressions :(
http://tinyurl.com/d8syh ought to help you out with the HTML error list.
As far as real-time syntax checking, I've been thinking about throwing
together a solution with a combination of the technique mentioned in
the above link and the awesome stakeout.py script to watch for file
saves. I'll let the list know if/when I get anywhere with it. Peace,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi
Can anyone tell me how to get syntax checking support...perhaps through using MTAC??
having to compile every time I want to check syntax is a real bottleneck....
Thanks
Jim Bachalo
[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
- Bruce Mau,'LifeStyle'
hi there.
somehow i list the symbol-popup and symbol-search functionality in
textmate. no matter what language, the popup is just empty and the
symbol-finder doesn't find anything.
is there perhaps any bundle i should not filter or s/th like this?
i'm clueless.
any help highly appr., regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
I must say, when I first started using TextMate I had no idea all the
commands even exited. And even now, after I've developed a fully
functional bundle of my own, I'm still discovering things about
TextMate that are kind of hidden.
Clearly Allan wants the app to be completely transparent, that the
code should be the most important focus of what you are doing and
that the interface should completely disappear and become an
extension of the code itself. And that's what I love about TextMate.
That being said, I think more needs to be done to expose the true
power of TextMate to people who are unaware of that fact that
commands in multiple bundles could apply to what they are doing. I
often don't know of all the possible commands that I could be using
at any given time. Aggregating those commands into a list so that
people can see what is possible, given the current scope, would be a
good thing I think. Be that in a drawer, palette, floating box,
whatever. And I don't think that that would significantly impact the
transparency of the app.
This keyboard combination does nothing when I type it. I have no
idea how to track this down. I have not noticed it doing anything in
any other context (program) either.
Considering the recent spate of "my keyboard bindings are broken"
messages, this sort of thing may not be an uncommon problem.
eo
On Feb 8, 2006, at 12:54 PM, Charilaos Skiadas wrote:
> On Feb 8, 2006, at 2:41 PM, porneL wrote:
>>
>> I second these opinions. Macro menu is tiny, smaller than less
>> used language and tab size choosers.
>>
> true, but they need to show their information. What information
> does the macro menu need to show?
>> And if that wasn't enough I additionally have to maneuver through
>> submenus - when TM's window is very near bottom of screen (I have
>> dock on side) current language's submenu isn't under cursor and
>> sometimes it's not even immediately visible!
>>
>> IMHO it should be much larger, and maybe there should be two
>> buttons - one with macros for current context/language *only* and
>> another with all the submenus.
>>
> Do people really use the mouse to navigate this menu? I just press
> control-esc, then the first two letters of the bundle I want, then
> right arrow, left arrow if I want to go back and so on. Plus, by
> default when you pop the menu up, it's in the current language, so
> you don't need to start typing. So for me the size of the button
> doesn't really matter.
>> --
>> regards, porneL
>
> Haris
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.
This, I am sure, is super newbie basic material, but somehow it
eludes me with tenacity...
What's the shortcut to select text within tags in html? Let's say,
for instance, to select "I am a paragraph" in:
<p>I am a paragraph</p>
I'm ashamed to ask that, so go easy on me, thanks ;)
It seems TextMate fails to notice a c++ function definition if I
write it like this:
static void
foo(
void * a,
void * b,
void * x )
{
}
but all on one line works fine:
static void
foo( void * a, void * b, void * c )
{
}
Has anyone else noticed this? Is there a way for me to fix this
myself or should I wait for an update?
Thank you.
.niels
niels gabel
firewire cpu software
apple computer, inc.
I just checked in a new Scheme language bundle into the svn
repository if anyone's interested.
The bundle is really just syntax coloring at the time being. I cannot
find a working solution for indentation with what TM currently
offers, but maybe someone else can, or we'll get some new nifty
feature into the editor someday that allows me to solve the problem.
Anyway, enjoy! And if you haven't ever programmed in Scheme, please
do! It's a really elegant and fun.
/M
--
Mikael Säker <mikael(a)sicher.org>
http://www.sicher.org
"Strangers have the best candy."
Howdy.
I was just editing some embedded SQL today and though of an
interesting idea.
Modify the new Edit In TextMate global function to work with
selections, and work inside of textmate.
The flow would go something like:
I'm in an asp.net document
I select some embedded SQL
I hit the 'Edit In TextMate' command
It opens my selection in a new textmate window (saved as a file in a
temp folder)
I edit my text like crazy
Save & Close
My original document shows and it replaces my selection with the
contents of that temporary file
This would be SO totally hip!
I'm sure I could whip something like this up as a command, but I
think native support for it might be better.
It might just be easier to modify the global command to either select
all & activate or use an existing selection and activate.
Then just make it work IN textmate and you're set!
yay!
Thanks again for completely changing my life for the better! (the
coding section, anyway)
I LOVE the Edit In TextMate action!!!
See http://subtlegradient.com/articles/2005/12/27/gus-mueller-flyopts-
inputmanager
Hello list!
I'm absolutely loving TextMate - $50 seems insane for a text editor
until you use it. :)
I'm doing a lot of work with Subversion, and want to be able to
commit a change and upload it to the server as easily as saving a
file. Is there any way to modify the bundle so that it saves the
frontmost window without any dialog asking for a summary? I'll still
use the dialog sometimes but I don't want to have it pop up all of
the time. I realize I can just press enter to move on, but I'm
looking for the fastest possible solution, as I save and refresh
files quite often.
Thanks for any suggestions you may have!
Trev Copland
_______________________________________________www.trev.com