Hello,
with more and more of the bundles moving from SVN to GIT, I was wondering what would be the most convenient way to keep your bundles updated? I used to to have an SVN checkout of TM's bundles and to update I could simply do a 'svn update all' in the command line and all bundles were updated.
Is there a simple way to this with GIT as well? With the GetBundles bundle it only seems to be possible to do the update by individually looking at each installed bundle for an updated version and then installing this. Or am I missing something here?
Regards,
Carsten
Hi all,
Is there way to work in TextMate and then use TM key binding "cmd+r" to compile the tex document with, e.g. pdflatex, with TeXShop?
Thans in advance,
--
Christian
-Your time is limited, so don't waste it living someone else's life.-
Steve Jobs, 2005
Hi,
Could you help me to make a custom language colorization!
I have followed the short tutorial on the website
http://manual.macromates.com/en/language_grammars
but it didn't work for me, so I simplified it as much as possible but still
no success. I guess there is something simple which I am missing. How can I
make the following definition working:
{ scopeName = 'source.serpent';
fileTypes = ( 'serpent' );
patterns = (
{ begin = '<\?';
end = '\?>';
patterns = ( { include = 'source.php'; } );
},
);
}
it does not highlight php insertions in my file, but the standard language
definition for php (supplied with the editor) does it.
What do I need to do?
Thanks,
nuke
On Jun 5, 2010, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
> Date: Fri, 4 Jun 2010 13:28:19 -0500
> From: Donald Ephraim Curtis <dcurtis(a)gmail.com>
> Subject: [TxMt] Re: insecure world writable problem
> To: TextMate users <textmate(a)lists.macromates.com>
> Cc: "textmate(a)lists.macromates.com" <textmate(a)lists.macromates.com>
> Message-ID: <41483A8F-74A0-43FA-ACE7-8EA11771F177(a)gmail.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
>
> Try:
>
> chmod o-w /usr/local/bin
Disk Utility (in /Applications/Utilities/) has a "Verify Disk Permissions" button in the First Aid tab. Click on your hard drive partition and hit the disk permissions button. See if that fixes your error.
-Roberto.
> But you may have bigger problems. Somehow the /usr/local/bin directory
> is world editable meaning any malicious script could copy another
> script or program into that directory. The problem is that the
> directory is in your shells PATH.
>
> On Jun 4, 2010, at 13:05, Christopher Brewster <cbrewster(a)gmail.com>
> wrote:
>
>> 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
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
Hi,
I am writing a Cocoa application where I would like to copy tabular data
from my application and paste it into textmate. However, I would like the
pasting to occur just as if I had copied a columnar selection within
textmate. Is there a way I can format this string data so that textmate
recognizes it is a columnar selection?
Thanks,
Josh Shapiro
Hi,
I've noticed a number of problems with the LaTeX bundle
(and the new one) along with GetBundles.
First, with the LaTeX bundle, if I try to select the preferences
selection, I'll get a tooltip pop up complaining about line 8
in configure.py warning that os.popen4 is deprecated. The
preferences aren't opened. Next, if I choose File Preferences
- Set Engine, I'll get my file replaced with,
sh: : command not found
/Users/tjlahey/Library/Application Support/TextMate/Pristine
Copy/Support/lib/ui.rb:356:in `load': Cannot parse a NULL or
zero-length data (OSX::PropertyListError)
from /Users/tjlahey/Library/Application Support/TextMate/Pristine
Copy/Support/lib/ui.rb:356:in `request_string_core'
from /Users/tjlahey/Library/Application Support/TextMate/Pristine
Copy/Support/lib/ui.rb:193:in `request_string'
from /tmp/temp_textmate.6pytw1:6
Trying to configure things opens the plist in TextMate not
the plist editor (which if I double click it in Finder opens in
the correct editor).
With GetBundles, trying to open it pops up a tooltip complaining
about line 3 and line 6 of a temp file.
With the new LaTeX bundle (LaTeX 2), just typing a \ brings up an
error of sh: : command not found. Needless to say, this makes the bundle
useless for me.
Suggestions?
Thanks,
Tim Lahey
---
Tim Lahey
PhD Candidate, Systems Design Engineering
University of Waterloo
http://www.linkedin.com/in/timlahey
Hi. Thanks for answering anyone who does,
I don't know if it's allowed to post pics so I will describe it as well.
For some reason the tab shortcuts disappeared from the gear menu > javascript < core groups control, language and function. Only there and no where else. I'm sure i remember seeing proto for prototype. this wouldn't bug me so much if object oriented javascript wasn't exactly what i was focusing on learning right now. I aleady tried uninstalling and re-installing. The shortcuts are there under the bundles menu, just not the gear menu and again, all the other tab shortcuts are there for every other language.
thanks
Jon
> By the way, I checked the code in texMate.py, the related part is:
> if viewer == 'Skim' and vp:
> syncPath = vp + '/Contents/SharedSupport/displayline ' +
> os.getenv('TM_LINE_NUMBER') + ' ' + pdfFile + ' ' +
> shell_quote(os.getenv('TM_FILEPATH'))
>
> I think there are some problem with the last item:
> shell_quote(os.getenv('TM_FILEPATH'))
>
> This one should be the one I select the text or currently view, not
> the master file. I guess textmate always past master file name to
> this part. I hope anyone can tell me a fix.
>
> I tested the "displayline" in skim manually, and it works just fine.
>
> I used:
> /Applications/Skim.app/Contents/SharedSupport/displayline 50
> "co.pdf" "prim.tex"
>
> And I can see the correct line in co.pdf, although the tex file is
> not of the same name (but it is one of the included files in co.tex).
>
> Xuehai
>
> On May 20, 2010, at 9:55 PM, Xuehai Qian wrote:
>
>> Hi Everyone,
>> I am pretty new in textmate, but I found it is great software and
>> I use it everyday now. One problem with me is the pdfsync, I
>> currently use skim as the pdf viewer, and from skim, I can find the
>> point in tex file by shift+cmd+click, but from tex file I have some
>> problem: my paper includes multiple files, I think I can only find
>> the place in skim by (control+option+cmd+o) in the master file
>> (which includes the titles of different sections), for example, I
>> put the mouse in one of the title, and I can be directed to the
>> right place in pdf viewer(skim), but if I go to one of the input
>> files, and select a place, nothing happens, or it produces the
>> wrong pdf file by the input file, and it doesn't make sense.
>> Anyone can tell me how to point to a place in tex file (not master
>> file but one of the input files) and find the place in pdf file?
>> Thanks!
>>
>> Xuehai
>
Hi Everyone,
I am pretty new in textmate, but I found it is great software and
I use it everyday now. One problem with me is the pdfsync, I currently
use skim as the pdf viewer, and from skim, I can find the point in tex
file by shift+cmd+click, but from tex file I have some problem: my
paper includes multiple files, I think I can only find the place in
skim by (control+option+cmd+o) in the master file (which includes the
titles of different sections), for example, I put the mouse in one of
the title, and I can be directed to the right place in pdf
viewer(skim), but if I go to one of the input files, and select a
place, nothing happens, or it produces the wrong pdf file by the input
file, and it doesn't make sense.
Anyone can tell me how to point to a place in tex file (not master
file but one of the input files) and find the place in pdf file? Thanks!
Xuehai
Hi,
To scratch my own itch, I extended the Align Source command to take a
pattern from input box and align text in any way I like. For example
options["split_test"] = split_test if split_test
options["eligible_test_candidate"] = "true" if
eligible_test_candidate?
options["default_device"] = "true" if default_device?
options["refer_id"] = refer_id if refer_id
options["plan_package_code"] = plan_package.code if plan_package
With input "\] if", above code will be formatted to below
options["split_test" ] = split_test if
split_test
options["eligible_test_candidate"] = "true" if
eligible_test_candidate?
options["default_device" ] = "true" if
default_device?
options["refer_id" ] = refer_id if refer_id
options["plan_package_code" ] = plan_package.code if
plan_package
The bundle is located at
http://github.com/gcao/AlignText
The shortcut for align by pattern is Command+Alt+Ctrl+]. It only works
for text selection.
Multiple patterns are separated by three spaces. If the first pattern
starts with a space, it will not align by first pattern.
Hope you find it useful. Feel free to clone and modify for your needs.
Regards,
Guoliang Cao
Hi
Does anyone know a bundle to get shortcuts for special charecters like  
in textmate ?
--
===================
Rodrigo L. M. Flores
Computer Science Msc. Student - IME - USP
Computer Science Degree - IME - USP
Homepage (en): http://www.rodrigoflores.org
Blog (pt-BR): http://blog.rodrigoflores.org
Linux User # : 351304
Jabber: im(a)rodrigoflores.org
I notice that when I generate a template for Python and have soft tabs enable, the resulting file still has tabs in it.
I went through and did some testing and it appears that TM_SOFT_TABS does not get set in the environment for those script that do pre-processing on templates.
To test this, simply put ${TM_SOFT_TABS} in a template.
Using 1.5.9 (1510)
--
Donald Ephraim Curtis
dcurtis(a)gmail.com
Hi,
I just discovered the coolness of Running a Ruby script from within
Textmate. The unreadable Stack trace suddenly is readable and has
amazingly cool hyperlinks to the exact line. I once saw in a
Railscasts episode a Rails Bundle allowing to have such hyperlinks in
the browser, but I could never keep up with which version and it broke
all my other environment.
Any recommendation / direction for something as cool as the stack
trace of a simple ruby file.
At the same time let me ask you how I could have a "debugger" in ruby
(on or sans rails) or javascript could break into textmate.
Cheers, and hello, since this is is my first post here.
Greetings,
I'm a TextMate newbie, so this may be a duhhh, but...
I wrote a little a Perl script as a command. The first line of the script is, as you might expect, #! usr/bin/perl.
The command works perfectly as long as my TM doc has not been saved. As soon as I save the doc, running the command prints "interpreter failed: No such file or directory."
This sure looks like a path issue, but what changes when I save the file?
Any help is much appreciated.
- Alan Goodwin