The current Documentation for Word / Selection and Documentation for
Selector in the Objective-C bundle doesn't find a many of the classes
and selectors for lots of things now in Leopard (CAAnimation, for
example) or in the iPhone SDK.
Having looked at the existing implementations of these commands I
decided it would be easier to replace them rather than hack what was
there already. My implementation of these commands uses an Apple
supplied tool (docsetutil) to search for the word, etc. in the docsets
so don't need any private index lists to find words quickly. This has
the big advantage that the index is always up to date and covers every
framework. The code is a lot simpler as well.
The only downside I can see is this may only work with Leopard - I
don't know and don't have any easy way of finding if it works with
Tiger. I didn't work through all the ramifications of the original
selector identification code so it is possible my version has some
holes - I have tried it with lots of examples and it seems to work,
but if any problem cases are discovered I will be pleased to fix them.
To install this version copy the enclosed ruby file to /Applications/
TextMate.app/Contents/SharedSupport/Support/lib/ directory and edit
the two commands (or make two new commands) as follows:
Documentation for Word:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_word
with input, output and scope selector as per the original. Will show
a list of candidates if more than one and also prefix them with the
language if more than one is present (hint try selecting init outside
of a [ ].
Documentation for Selector:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/docset_query'
documentation_for_selector
with input set to "Entire Document", output "Show as Tool Tip" and
scope selector as per the original.
If there is interest in absorbing this work into the official
distribution that is fine by me and I hope I haven't committed any
sins in where the helper file is stored.
Dave.
Hello All
Been using TextMate for 2 weeks now and love it.
I am trying to create a macro to search a word under the cursor when I press
Ctrl+. These are the steps I follows: http://pastebin.com/m4418e1bd and this
is what I get in macro editor: http://i36.tinypic.com/344cwm1.png . It seems
to be working but when I press Ctrl+. next, it searches for the word that I
used to record the macro and not the current word under the cursor.
What am I missing or doing wrong?
--
Ritesh
http://www.riteshn.com
I had occasion once to increase the font size of the the text window with
command +. However, after returning the font size to normal with command
-, every time I open a new window it is in the increased font size. I
have tried restarting TM with the fonts at the desired size but the
problem persists. Is there anyway that I can stop this effect? Thanks
very much.
All the best, Mark
Hi everyone (this is a debut),
so far I've been using TeXShop for my LaTeX writing. I've written an
extension to it that allows me type all kinds of Unicode symbols
(such as greek letters, relation symbols and whatnot) in TeXShop which
get converted to LaTeX code (so "≤" becomes "\leq" etc) on saving (or
loading) based on a 1-1 mapping list. Thus, the text is readable on
screen while the code remains portable.
Now, I'd like to switch to Textmate because of its better project
management (and because I've paid for it...). I wonder whether I can
keep this functionality on which I heavily depend. Are there auto
replace on save/load solutions available? Sorry if this has been
discussed before (although I haven't found it) or it's obvious (though
I hae used TextMate for a while, I didn't do much customizing).
Best,
Jonas
New TextMate user coming from BBEdit. How do I enter single or double
curly quotes? In BBEdit it is option-' or shift+option-", but I can't
figure it out in TextMate. I typeset a lot of content while coding,
and knowing how would be a huge timesaver.
Thanks in advance!
d
I just wanted to confirm that the TextMate development team/community
is aware of the following issue with Rails 2+ tests run from within
TextMate. Apparently, the Rails core team believes TextMate should
adjust to accommodate:
http://groups.google.com/group/rubyonrails-textmate/browse_thread/thread/aa…
Michael
Hi,
sorry for this maybe naïve question.
How can I return more than one argument from a async window.
I have a 'OK' button which is bound to target 'selection.controller'
using 'returnArgument:' and then I have two arguments bound to a
popup list item and the selected entries of a table. Fine.
But I can only return either the popup item or the table selection.
But I need both.
If I bind the button to performButtonClick: I get the entire
parameters but the table is very large.
But I don't get the returnCode or returnButton (?)
Is there a way to return more than one argument?
Thanks in advance.
--Hans
I have been trying to improve the syntax highlighting for python but have
hit a road block getting the keyword "self" to highlight in functions
variable declarations. Is there a set of keywords that are always matched I
can put it in since it is a reserved word.
Also, is there a way to search a grammar file in the bundle editor, since
finding the entries I need has slowed down my progress.
- Matt
> Because the labels of listings in LaTeX are given as
>
> \lstset{what=ever, label=Woohoo, something=other}
>
> the label_scan method in LaTeXUtils.rb doesn't pick up the labels at
> all. The attached patch will hopefully fix this issue properly.
>
> --Thomas
i've noticed an interesting phenomena where i run convert tabs to
spaces on an entire buffer,
go to a line that had tabs, hit the delete button and it sometimes
takes me back a full tab stop
seemingly indicating the the conversion of tabs to spaces wasn't done.
would this be the case or is there some trickery involved that just
makes it look that way?