For a while, there was this great feature in RubyMate. When you select a
term in your script and press control-H, RubyMate would consult ri (or fri
or whatever it is) and, if there were multiple alternatives found, would
list them all in a little tooltip or popup menu beneath the mouse. So if you
said "gsub" you might see Kernel#gsub, String#gsub, and so on. This is a
menu so you could click an alternative and do a lookup of that in the help.
Very nice.
The thing is, though, that this feature has completely vanished as if I'd
only dreamt it. Does anyone know how I can get it back?
RubyMate's ri interface was really pretty good, because so much of it was
clickable links. The Terminal ri interface is very inconvenient because none
of it is clickable links, but that's pretty much what I'm stuck with now.
It's so disappointing that I'm thinking of writing my own ri interface app
for Mac OS X (stop me if there is one already). m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I was getting errors (Ruby errors, I believe) when trying to use the
TODO List bundle, so, finding the "TODO Bundle Broken" thread in this
list and trying to follow the advice there, I deleted some bundles (and
some unused plugins I discovered in the process) from
"~/Library/Application Support/Textmate" and also updated all the
bundles in my "/Users/mjg/Library/Application Support/TextMate/Bundles/"
directory from subversion.
Now the TODO List bundle is working beautifully (for the first time!),
but when I try to use PyMate "Run Script" command to run a Python file I
get this error: "-e:2:in `require': No such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from -e:2". It's true that there is no such file--in fact,
the "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/"
directory does not exist. Why is this error happening and what should I
do about it?
For what it's worth: other PyMate commands (such as "Run Script
(Terminal)" still appear to work correctly.
I'm running the latest "Cutting-Edge" TextMate, Version 1.5.7 (1464).
Thanks,
Mike
Hi,
while developing the Rdaemon I had one single question in my mind. How
can you integrate Rdaemon in documents like LaTeX, HTML, Markdown etc.
Up to now I fiddled around with automatically copy&pasting R stuff,
thought about modifying Sweave etc.
But I believe I found hopefully a very easy solution.
One only has to use TextMate's wondrous facilities. ;P
Everybody knows, e.g. if one writes an HTML doc you have the HTML
scope with all commands behind it. Then one inserts a new CSS
declaration. If you are inside of such a CSS tag you have all CSS
features available. This is done in the Language setting for HTML.
This led me to an idea.
E.g. LaTeX:
If I'm writing an article or paper about my analyses of a topic, and I
did this by using R; then I usually explain how I did this with R.
Or if you give a R course and you want to document it, or if you write
a book about R, ...
One can use Sweave to typeset it. Fine.
BUT, my idea was to combine LaTeX and Rdaemon. I wrote a new Language
for LaTeX called "LaTeX Rdaemon". The only thing I did is to insert an
include statement
include = 'source.rd.console'
within the 'verbatim' environment.
OK. How does this work now?
You can start the Rdaemon and close that window. Then you open a LaTeX
file, set the language to "LaTeX Rdaemon".
Now you can write your LaTeX stuff, but if you declare a
\begin{verbatim} block AND within that block a line begins with "> "
then you are talking with the Rdaemon with all features coming from R
and Rdaemon. Press RETURN and the line will be executed and the result
will be written into the TeX document. (Remember the Rdaemon runs
further in the background)
I recorded a very tiny movie to illustrate that.
http://www.bibiko.de/TM_Rdaemon_Latex.mov
And this is only a test without fine-tuning! One can think about to
write some code to automate some things like:
- if a line starts with "> " within a tex document this line and the
output will wrapped automatically by a verbatim block after pressing
RETURN
- if one plots something and the Rdaemon recognizes that the command
is coming from a tex document which is saved in a certain folder then
the Rdaemon will plot this image using a Quartz device, dev.copy2eps(/
TEX_FOLDER/THE_NAME) [the Quartz is still open for further stuff!],
and return something like:
\begin{figure}
\begin{center}
\includegraphics{THE_NAME}
\end{center}
\caption{Scatter Plot with Regression Line}
\label{fig:FOO}
\end{figure}
[FOO could be calcualted, I guess]
etc...
By using this approach one could do this also with Markdown or HTML
etc. The only thing is to expand the Language syntax, and to fine-tune
the Rdaemon.
Are there any comments about my approach? What kind of side-effects
could be expected?
Would this be useful at all?
Kind regards,
--Hans
Hello all,
I am wondering if there is a way to automatically convert a VIM
colorscheme to a TextMate "Fonts & Colors" file.
The colorscheme in question is the ever-popular Zenburn
(http://slinky.imukuppi.org/zenburn/).
Thank you,
Brian
Hi, I tryied to install textmate on my new computer, but it does not
run, everytime I start it, it says my serial number is invalid,
probably due to credit card issues, but I didn't ever registered in
first place, I tryied to unregister the app thru menu => registration,
but it's not available, is there anyway I can "undo" this
registration? I really hope so, cause I'm looking forward to
registering TM,
thanks in advance
Igor Ranieri
hi, I'm just answering myself.. :P
I really have no ideia of how it happened, but the lock disapeared,
now I can register it with my own key.
Thanks anyway =D
Igor Ranieri
Hi,
I've just purchased a new computer which has
enabled me to switch over to using
Changes.app for my diff uses. Unfortunately,
the TextMate integration assumes Subversion
for version control whereas I use Mercurial.
I've made the suggested additions as mentioned
on the Changes Wiki and everything works great
from the command line, but the TextMate integration
is failing me. I'm not familiar enough with either
the Changes or the Mercurial bundle to make the
changes, so I'm appealing to the TextMate community
for help.
Is there some way I can either switch the Changes
bundle to use Mercurial or alternatively, switch the
Mercurial bundle to use chdiff and my merge script
instead of just diff?
Thanks,
Tim Lahey
Hi,
I cant no longer invoke the project drawer.
I have installed 'missing project drawer plugin' weeks ago, working
under Leopard 1.5.3.
During the last session working with textmate, I have closen the
project drawer and just quit the programm when I was finished.
Now I cant open the drawer again, no matter if I open a recent project
or a new one.
Please can you help?
thanks + cheers!
----------------------------
dennis