Disclaimer: I've been playing with TM for about 30 minutes, i.e. I'm a
complete newcomer. One of the main reasons I'm considering abandoning
my beloved emacs in favor of TM is the integrated ri / documentation
lookup. But I haven't been able to get that to work.
Briefly, my question is: how can I get the TM help system to use
ruby / rails documentation from a sandboxed directory?
Some details:
In my development machine I have carefully built versions of ruby
1.9.1, rails, ri, rdoc, all of my gems, etc in a sandboxed directory
(~/Development/Ruby/bin/*), and I've left the Mac OS X standard
distributions alone.
If I try to use TM's ^h help lookup, I get a message like:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Ruby.tmbundle/Support/bin/linked_ri.rb:13: command not found: ri -T -f
plain belongs_to
... presumably since it can't find 'ri'. Digging in, I can ask TM to
tell me more about its environment:
which ri^r =>
/opt/local/bin/ri
ls -l /opt/local/bin/ri^r =>
-rwxr-xr-x 2 root admin 1491 Aug 5 2009 /opt/local/bin/ri
echo $PATH^r =>
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS:/usr/local/git/bin:/opt/local/bin:/opt/
local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/
Applications/TextMate.app/Contents/SharedSupport/Support/bin
(Another disclaimer: I'm also new to ri / rdoc, so this may ultimately
be an ri / rdoc question rather than a TM question.)
- rdp
Although I can't find it now, I seem to recall seeing a nifty TextMate command that would harvest all inline styles from an HTML document and place them in a stylesheet at the top of the document (eg, sorted by id).
Anyone remember in which bundle that command could/can be found?
jon
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
Once, I saw a tip by James Gray II (if I remember correctly) about how to
convert highlighted text in TextMate to html with css style so that the
rendered html is identical to the textmate window (in my case Railscast
theme). But now I can't quit remember how to do it--something with markdown
maybe. And can't find the tip. Does anyone know how to do this?
I want an easy way to post code snippets from textmate.
Thanks,
Tim
Hey,
just wanted to let people know I've released AckMate - a plugin for
searching your project files with 'ack'.
It offers significant improvements over my previous ack-in-project
bundle, such as per-project windows and settings, filetype selection,
and a much less annoying UI.
It's currently only compatible with OS X 10.5 and above (and only
heavily tested on 10.6).
Source and binaries are included in the github project at
http://github.com/protocool/AckMate and the project wiki contains
instructions on how to use it.
Regards, Trev
--
--
Trevor Squires
http://propaneapp.com
When running a python script, I suddenly have the following error message
/Library/Application Support/TextMate/Support/lib/tm/process.rb:194: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
I have tried re-installing textmate, and re-installing all the bundles to no avail.
Looking through the email list I cannot make heads or tails of what the solution is.
Any suggestions are appreciated.
Christopher
Hi,
the ctrl-< shortcut to create <> around html tags doesn't work for me. Other
shortcuts e.g. shitf-ctrl-W do work fine. I saw the issue was mentioned in
2007 posts but I found no fix for my problem. I use a standard US keyboard
configuration. I guess I am missing something fundamental here...
Thanks for your help,
Marco
--
View this message in context: http://old.nabble.com/Ctrl-%3C-shortcut-not-working-tp28756116p28756116.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi everyone,
I have a file with numbers in it, and I want to to add a comma to the end of
each one, but the file has 1'024,000 numbers in a column of varying sizes.
How could I do this with a search and replace regular expresion.
before:
1
34
244
5
..
after
1,
34,
244,
5,
Regards Ed.
--
View this message in context: http://old.nabble.com/How-do-I-search-replace-word-tp28758635p28758635.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I am experimenting with the use of Sphinx/reST as an electronic laboratory notebook. I already use the restructuredText bundle for visualizing the reST syntax within Textmate. I am wondering if there is an automated way to run Sphinx's "make html" command on all .rst files in a Textmate Project from within Textmate? In other words, I would like to not be forced to switch out to the command line to update my "notebook".
Upon writing this, I realize that my question now boils down to: can one assign a keystroke to a command that will operate on the top-level of a project directory?
I apologize if this is a terribly noob question.
Aaron
Hi there,
I had a quick question on the Textmate "Python -> Run Script" command. Since I mostly write command line utilities, I pass command line arguments to my scripts on a regular basis.
Is there a way to test your python script (CMD-R) and have Textmate populate sys.argv[:] for the script to use? Either via a dialog box, a TM Variable, etc?
Thanks for any help,
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com