I'd like to be able to fold text in plain text files. I often use a
plain text file to plan database tables and columns, and to write
pseudo code. Ideally I'd like to be able to fold the text so that I
can more easily see my headings - like an outliner, yes, that's it.
I've had a look at the bundles available at svn.textmate.org/trunk/
Bundles, and have found the Outlines.tmbundle but doesn't appear to do
what I want. Any suggestions?
--
Justin C, by the sea.
hey there - just wondering if the tooltip error msg that appears sometimes when saving a file has any utility? in other words, is there somewhere I can find a log of what the error is?
it's a bit frustrating to be told there's an error but not what it is or where it is etc etc.
I'm sure the answer's obvious enough but I can't find any documentation that discusses it.
cheers,
b
Hello, I cannot get Firefox to refresh using TextMate's "refresh running
browser" command.
I am running Firefox 3.6.8 and TextMate 1.5.9. Here is the command:
ps -xc|grep -sqi firefox && osascript <<'APPLESCRIPT'
tell app "Firefox" to activate
tell app "System Events"
if UI elements enabled then
keystroke "r" using command down
-- Fails if System Preferences > Universal access > "Enable access
for assistive devices" is not on
else
tell app "Firefox" to Get URL
"JavaScript:window.location.reload();" inside window 1
-- Fails if Firefox is set to open URLs from external apps in new
tabs.
end if
end tell
APPLESCRIPT
I have searched all over the internet and cannot figure it out.
If anyone can suggest a solution, I would greatly appreciate it!
Thanks,
--
Clay Teller
clay(a)clayteller.com
Hi,
I am trying to have latexmk run a script before compiling the document. If I
create an RC file (latexmkrc) inside my home directory where I include
$pdflatex = 'sh vc; xelatex %O %S';
and then run
latexmk -pdf file
from the command line, latemk will run the vc script and then do its job as
usual. However, if I run it from TextMate, it doesn't.
I've set XeLaTeX as my default typesetting engine, so I assume that TextMate
is overriding the default RC files in order to tell latexmk to use XeLaTeX
instead of pdfLateX. I've searched around for a hidden RC file that TextMate
might be creating but I cannot find it.
I asked John Collins about this, who gave me incredibly helpful advice, but
the problem seems to be with TextMate, not with Latexmk.
Any thoughts?
Thanks!
APC
--
View this message in context: http://old.nabble.com/Latexmk%2C-TextMate-and-XeLaTeX-tp29356480p29356480.h…
Sent from the textmate users mailing list archive at Nabble.com.
What could possibly explain this? Rspec test fails when I run from
TextMate but passes when I run from the console.
I made sure the TM commands are using the same Ruby as the console.
The path is the same too.
what am I missing?
any insight gratefully received
Les
Hi,
I would like to see colored syntax and use autocomplete features even for CSS included into html code;
I mean in the head of the pages where the scope seems to be: "source.css.embedded.html":
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-IT" lang="it-IT">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Page Title</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Language" content="it-IT" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<style type="text/css" media="screen">
/* Textmate does not see this as CSS code */
p { margin-bottom: 1em; }
</style>
</head>
<body>
Actually I need to manually type each css instruction because textmate does not detect such part of code to be CSS.
Is there any workaround?
thanks!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
VOGLIA DI VACANZE ?
* A Riccione i Riviera Park Hotels sono gli alberghi specializzati per le vacanze nei parchi divertimento.Vieni nei Riviera Park Hotels! Ti aspettano sconti per tutti i parchi della Romagna! Prenota subito on-line la tua vacanza!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid820&d=5-8
I often find myself wanting to place the cursor just left of the first
non-whitespace character in a line. I know ctrl-A will get me to the very
beginning of the line. Is there another command that will get me just left
of the first non-whitespace character?
thanks,
-Morgan
Hey all, I am wondering if any of you have any issues using the Flex bundle.
The actionscript bundle seems to work great. I am wondering if there have
been any improvements to autocomplete in MXML files. Also I may need to
check my configuration of the bundle. I don't seem to get any suggestion in
the script block for actionscript at all.
--
Matthew Wallace
http://www.615flash.comhttp://twitter.com/mswallace
When I am debugging python code, I get the following message pop up from TextMate:
This version of TextMate does not support “(null)” in its URL scheme.
Has anyone seen this message and know where it comes from?
Thanks,
cf
hi all - I noticed that the functionality of the gutter isn't what I expected - namely that when I scroll sideways (to the right) in a document I lose the gutter - i.e. it scrolls across to the left with the rest of the text in the doc window...
not SOP in most text editors!
anyway - is there a way to restore/enable this functionality? it's pretty basic stuff!
cheers,
bennett
I pressed control alt shift B and then clicked on one of the popup items:
Blog HTML
Blog Markdown
Blog Text
Blog Textile
LaTeX Beamer
Now all of my syntax highlighting is gone.
I was edting javascript. How do I get textmate back to normal?
And more generally, how do I figure out what that keyboard shortcut did
without asking the mailing list? (I searched for a long time to no avail).
Thanks.
hi there - I know that there's a way to use different code coloring for different parts of a document according to the scope of the section - for example when I have Javascript code in a <script> tag or CSS in an HTML doc etc etc.
I read through the Textmate Help and found that it is possible but admit to being rather confused by how it works.
is there a tutorial of any kind?
or an example theme I could look at that would illustrate the process?
thanks,
bennett
I've realized I waste many precious milliseconds lifting my fingers up from
their homes over to the arrow keys. Is there a key combination which will
move the cursor left and right for me? How would I go about setting one up?
thanks,
-Morgan
Cheers everyone!
I do not now if regular expressions are involved in the way TextMate detects URLs in text, but I'd gather they do. In that case, John Gruber has just compiled a regexp that seems to make an even better job at finding URLs embedded in plain text (even surrounded by parenthesis, or LaTeX code). First link contains the description, second link contains a text case page:
http://daringfireball.net/2010/07/improved_regex_for_matching_urlshttp://daringfireball.net/misc/2010/07/url-matching-regex-test-data.text
The only problem I find with it is that the references to LaTeX parts, sections, chapters, etc., built from the LaTeX templates would be matched as well. So, using as inspiration the last expression he offers (only for http/https links), I have generalised it to include also ftp, sftp, smb, afp, and telnet:
(?xi)
\b
( # Capture 1: entire matched URL
(?:
https?:// # http or https protocol
| # or
s?ftps?:// # sftp or ftp or ftps protocol
| # or
smb:// # smb protocol
| # or
afp:// # Apple file sharing protocol
| # or
telnet:// # telnet protocol
| # or
www\d{0,3}[.] # "www.", "www1.", "www2." … "www999."
| # or
[a-z0-9.\-]+[.][a-z]{2,4}/ # looks like domain name followed by a slash
)
(?: # One or more:
[^\s()<>]+ # Run of non-space, non-()<>
| # or
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
)+
(?: # End with:
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
| # or
[^\s`!()\[\]{};:'".,<>?«»“”‘’] # not a space or one of these punct chars
)
)
Can this be built into TextMate, or where should I change if I wanted it just for personal use?
Thanks!
--
Juande Santander Vela
Applied Scientist, Archive Management Group
Archive Department, Data Management & Operations Division
European Southern Observatory (Germany)
Felix Klein: Todo el mundo sabe lo que es una curva, hasta que estudia suficientes matemáticas como para confundirse con la innumerable cantidad de excepciones posibles.
Hello all,
I get this error when I select php code and type apple(command) + ' / '
(forwardslash)
interpreter failed: No such file or directory
Any suggestions as to why? I tried doing a google search for similar issues.
this post came up:
http://lists.macromates.com/textmate/2007-October/022878.html
but my ruby bundle commands are working. just not my php commands.
Best,
Victor
Hello,
I'm trying to write a snippet that will create a footnote in a TM file
(using markdown syntax), and I'm having some difficulties:
Footnote syntax works as follows:
Here's a string of text [^footnote_identifier] which continues here.
then, at the beginning of a new line:
[^footnote_identifier]: text of the footnote itself
So, what the snippet needs to do (theoretically) when snippet is
triggered: generate a (not too long, 5 digit alphanumeric should be
fine for a single document) unique id, and insert the full
[^footnote_identifier] string, then jump to the end of the document,
insert [^footnote_identifier]: and a space, allow typing of the
footnote text, then return to the original insertion point when tab is
pressed again.
I have no idea whether any of this is possible using snippet syntax,
so any pointers would be appreciated.
--
steph
Hi There, I wanna know if anyone knows of any bundle or command to fold the phpdocs comment styles
cuz when I have the following:
/**
* #code
*/
dont appear on the the left the controls, and when I have this:
/**
*
**/
they appear, but I don't wanna put like this to have the fold.
Hi everyone,
The shortcuts for adding an existing file or folder in
textmate. Shift+command+A don't seem to work.
I don't understand why? is there a particular mode I
must be in, in order for it to work.
Ted.
--
View this message in context: http://old.nabble.com/shortcut-not-working-tp29232794p29232794.html
Sent from the textmate users mailing list archive at Nabble.com.
hello all -
question: why would TM being using 25-35% of my CPU when it is sitting in the background with *no documents* even open?!?
see screen shot.
cheers,
bennett
hi there - I'll keep it simple, here's what I'm trying to do:
I'm converting a text doc to a HTML doc and I decide I want to enclose a
paragraph in <p> tags (or whatever). so I manually select the paragraph and
use my command-ctrl-. command and everything's beautiful.
but wait I say to myself - I don't like having to take my fingers off the
keyboard to select the paragraph... oh I'll just use TM's 'Select Paragraph'
command (via recorded macro to assign keystroke).
but it turns out it doesn't work the way I want it to: 'Select Paragraph' -
and also 'Select Line' - both extend their selection past the last character
out to an apparently 'infinite' margin...
here is an example - I have this text:
Orsay School Group Lottery FormFor K–12 school groups a limited number of
free tickets are available for Monday-only viewings (9:30 a.m. to 1:30 p.m.,
October 4 through December 13, 2010). These tickets will be distributed as a
lottery. Please read carefully the Orsay lottery guidelines below to
determine if the lottery system is appropriate for your class.
To apply, please complete the application below. For questions about the
lottery, please e-mail kerickson(a)famsf.org or call 415-750-2603.
and I select the first paragraph using the 'Select Paragraph' command and
then use the Cmd-Ctrl-. shortcut to enclose in <h3> this is what I get:
<h3>Orsay School Group Lottery FormFor K–12 school groups a limited number
of free tickets are available for Monday-only viewings (9:30 a.m. to 1:30
p.m., October 4 through December 13, 2010). These tickets will be
distributed as a lottery. Please read carefully the Orsay lottery guidelines
below to determine if the lottery system is appropriate for your class.
</h3>To apply, please complete the application below. For questions about
the lottery, please e-mail kerickson(a)famsf.org or call 415-750-2603.
notice that the </h3> tag is on the next line - obviously this is
undesirable and it slows down my coding way too much to have to then
manually take my cursor over and insert a return after the closing tag - so
much that it is obviously not worth it.
so for the sake of my being able to write readable code how do I accomplish
this?
thanks.
bennett
Hi
I have seen two different 'move caret by word' behaviors in TextMate:
the first stops the caret at capital letters, underscores, and after every
number, such that moving the caret across "aB_911" is 5 movements
the second *doesn't* stop the caret at any of the above, so moving across
"aB_911" is one movement
On my setup (see below) the former is bound to ctrl-arrow and the latter to
alt-arrow.
I would like to change the bindings of ctrl-arrow to do the latter, but I
don't know the name of the command to bind to in DefaultKeyBinding.dict (the
former seems to be MoveWordLeft/Right or MoveWordForward/Backward).
Any help appreciated
Thanks!
Mac OS X Snow Leopard
External Kinesis ergonomic keyboard
Custom DefaultKeyBinding.dict
--
View this message in context: http://old.nabble.com/Caret-movement-by-word-tp29157860p29157860.html
Sent from the textmate users mailing list archive at Nabble.com.
Can TextMate 1.5.9 (r1510) be used with Mac OS X 10.6.4? The TextMate web
site says:
TextMate 1.5.9 (r1510)
Mac OS 10.4.2 PPC/Intel
Guess I am just getting used to my new Mac (former PC user). I know Linux
has issues sometimes when downloading software not specifically
compiled/tested for a particular release.
Thanks.
--
View this message in context: http://old.nabble.com/Can-TextMate-1.5.9-%28r1510%29-be-used-with-Mac-OS-X-…
Sent from the textmate users mailing list archive at Nabble.com.
Allan wrote:
>> Could this have been the result of a change in the latest TextMate
>> version? [...]
>
> No.
Thanks, I guess I'll try a clean install and see if that reinstates the WebMate Show Options checkbox.
jon
I like TextMate so much that it's become my default word processor as well as text editor; I save all my notes as HTML, which makes them easy to share over the Web. James Speth's WebMate plugin has been an invaluable utility for this, because it lets me edit text WYSISYG-style in the Web Preview.
Hoping to beef up my TextMate experience even further, I recently installed the plugins AckMate, ProjectPlus, QuicklookTM, and TMQuicklook. Then I noticed that the spiffy "Show options" checkbox was missing from my Web Preview, making it impossible for me to invoke live WYSISYG editing.
I figured there was a plugin conflict, so I removed the four plugins from ~/Library/Application Support/TextMate/Plugins. (I also removed TMQuicklook.qlgenerator from /Library/Quicklook/.) But after restarting TextMate and my computer, and even re-installing WebMate, no joy--I still can't find the missing option for WYSISYG editing in Preview.
Could this have been the result of a change in the latest TextMate version? I'm running 1.5.9 (1589).
I've been running WebMate 1.0.1 for the past year and a half without incident. Note that after the original WebMate link expired (http://end.com/speth/2006/04/webmate-web-editing-for-textmate/), Christoffer Winterkvist on this list helped me track down a copy of WebMate in Jason Evers' Green Moleskine package (http://jason-evers.com/projects/green-moleskine).
Any advice greatly appreciated!
jon
/RR (Response Requested)
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
I tried the on-line help first. I've got a file of data, columns of numbers, that is about 430 characters wide. I can't stretch my window that wide and TextMate insists in wrapping the line to fit the window width. How do I change that behavior and make it use a horizontal scroll?
> I recently installed the plugins AckMate, ProjectPlus, QuicklookTM, and TMQuicklook. Then I noticed that the spiffy "Show options" checkbox was missing from my Web Preview, making it impossible for me to invoke live WYSISYG editing.
>
> I figured there was a plugin conflict, so I removed the four plugins from ~/Library/Application Support/TextMate/Plugins. (I also removed TMQuicklook.qlgenerator from /Library/Quicklook/.) But after restarting TextMate and my computer, and even re-installing WebMate, no joy--I still can't find the missing option for WYSISYG editing in Preview.
>
> Could this have been the result of a change in the latest TextMate version? I'm running 1.5.9 (1589).
I've tried swapping out all my plugins (such as replacing ProjectPlus with the older MissingDrawer) without success. So now I'm looking to reinstall an older version of TextMate to see if that fixes the problem. (My prefs are set to automatically install Cutting Edge updates, but I don't know how long ago the TM turned 1589.)
http://svn.textmate.org seems to be only bundles. Is there a repository for older versions of the application itself?
jon
/RR (Response Requested)
I think these commands are called something like CamelWord and snake_word
(but I do not have those names exactly correct). -- pr
On Wed, 14 Jul 2010, ijmcf wrote:
>
> Hi
>
> I have seen two different 'move caret by word' behaviors in TextMate:
> the first stops the caret at capital letters, underscores, and after every
> number, such that moving the caret across "aB_911" is 5 movements
> the second *doesn't* stop the caret at any of the above, so moving across
> "aB_911" is one movement
>
> On my setup (see below) the former is bound to ctrl-arrow and the latter to
> alt-arrow.
>
> I would like to change the bindings of ctrl-arrow to do the latter, but I
> don't know the name of the command to bind to in DefaultKeyBinding.dict (the
> former seems to be MoveWordLeft/Right or MoveWordForward/Backward).
>
> Any help appreciated
> Thanks!
>
> Mac OS X Snow Leopard
> External Kinesis ergonomic keyboard
> Custom DefaultKeyBinding.dict
> --
> View this message in context: http://old.nabble.com/Caret-movement-by-word-tp29157860p29157860.html
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.
Hi!
Lets say I have houndreds of images in a folder and I want to list them in
an HTML-document. So I just paste in my list of images in TextMate like
this:
IMGP0410.jpg
IMGP0411.jpg
IMGP0412.jpg
IMGP0413.jpg
IMGP0414.jpg
To make proper links of this list I will have to paste the complete list of
images once more next to my first list like this:
IMGP0410.jpg IMGP0410.jpg
IMGP0411.jpg IMGP0411.jpg
IMGP0412.jpg IMGP0412.jpg
IMGP0413.jpg IMGP0413.jpg
IMGP0414.jpg IMGP0414.jpg
Is it possible to do this in textmate without having to manually edit every
line in my list?
/regards David S, Sweden
--
View this message in context: http://old.nabble.com/duplicating-a-column-in-TextMate-tp29171078p29171078.…
Sent from the textmate users mailing list archive at Nabble.com.
Allan,
I love TM1 so much that I wonder what TM2 could even do to make my life
better.
Perhaps I missed the discussion that already took place. From a prior post
though, you said that you are using TM2 now to further develop TM2.
What about TM2 makes your life easier?
--
Brad Tittle
Tech Support
Hello all,
I'm using TM primarily for Actionscript (love it!) and I was using the built in 'Actionscript' bundle until a few weeks ago when I downloaded and installed the 'Actionscript 3' bundle from the Subversion site.
now I've got these two bundles both of which have snippets and commands I want to use - but unfortunately I seem to only be able to have one active at a time. I've figured out that this is a 'scope' issue but I don't know how to change the scope on multiple commands/snippets etc at once. obviously going through and changing each one is not the way to do it.
I customized the built in AS bundle with quite a few custom snippets I definitely want to keep, so how do I go about merging the bundles or changing the scope on multiple commands/snips etc?
thanks in advance,
bennett
I am sorry for the confusion. In the last question (see below) I mean, that
I create a new language definition for highlighting some text format with
php/ruby insertions in TextMate. I don't care now how it looks in
BundleEditor (that was another question).
On Tue, Jun 8, 2010 at 13:46, Tobias Jung <newsgr(a)tobiasjung.net> wrote:
> nuke <sila.razuma(a)gmail.com> wrote (Mon, 7 Jun 2010 22:57:01 +0200):
>
> > Repeating my question:
> > Thanks to your answers, I can now highlight PHP insertions in my custom
> > language by copying the repository and delimiters pattern from PHP
> language
> > definition. However, I would like to avoid this unnecessary duplication.
> Is
> > it possible to simply refer the PHP definitions without copying them to
> my
> > language?
>
> Well, install the "Edit in TextMate" input manager...
>
> Kind regards,
> Tobias Jung
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
Hi -- When I use Command-R to typeset a file in TextMate (using engine
pdflatex), I get an error message that
Package epstopdf Warning: Graphics driver file `pdftex.def' not found.
and it does not typeset correctly.
However, if I typeset the same file in Terminal using
% pdflatex foo.tex
It typesets fine and I do not get the error. The Terminal version is running
pdflatex in /usr/texbin . I am not sure what TextMate is running. -- pr
This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.
I was scrubbing some data today and had textMate lock on me a couple of
times.
I had placed [END OF RECORD] at the end of my line and went to replace the
[END OF RECORD] with \n.
My data was 1 line 60000 characters long. My mistake was failing to either
a: uncheck the "regular expressions" check box or b. escaping the braces or
c. using a delimiter that wasn't accidentally a regular expression.
No, this doesn't require anything to be fixed. The beauty of RegEx is that
it lets you do so much. The ugliness is that it gives you plenty of rope to
hang yourself.
--
Brad Tittle
Tech Support
Allan, thanks for the response (I've only just seen it, having been away).
---------
On 7 Mar 2010, at 16:31, Mike Lim wrote:
>* […] Should I be able to upload an image straightaway into the post
*>* before posting it?
*
You should, yes.
>* If so, how can I fix the problem I'm having?
*
If you get a regular link it sounds like you haven’t selected the
proper (Blogging) grammar.
What does the status bar show? and/or the tool tip which appears on
⌃⇧P (press that when in a blog post). Also, what extension does
your image have? And do you have multiple blogs or just one?
--------------
When I start a new post I do so by selecting New From Template > Blogging >
Blog Post (Markdown).
The status bar at the bottom says "Multimarkdown" (even if I select HTML
from the Blogging new template).
The tool tip comes up as 'Convert to PDF' (either on its own or with
'letter' or 'XeLatex').
My images have .jpg extensions, and I have two blogs, both on wordpress.com.
Thanks for any advice.
Mike Lim
I've noticed that at some point, the Control-Shift-P shortcut that should
show the scope of the text the pointer is at stopped working. Instead, it's
apparently reverted back to the system default for that: move the cursor up
one line and select everything between there and where it started, just like
Shift-Up Arrow would do.
I've used "Select Bundle Item" to see if there's a Control-Shift-P
keymapping overriding that, but there isn't. Actually, it seems like the
problem is precisely the opposite -- the TextMate keymapping has been
lost. I've deleted local copies of the "Text" and "TextMate" bundles that
were presumably updated or modified versions, but no luck in restoring it.
Any suggestions? This is almost certainly something simple I'm missing,
but... well, I'm missing it.
- Watts
Hi,
this is weird, and I know it has worked a couple of days ago. I am puzzled and not sure what to check anymore.
I am running the MacPorts Python installation
which python
in terminal gives
/opt/local/bin/python
In Textmate, I have the following Shell Variables set:
TM_PYTHON = /opt/local/bin/python
PYTHONPATH = /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
When I run the script shown below from terminal using
python testscript.py
the matplotlib window pops up, and all is good.
When I run the script from within TextMate using cmd-R the script runs fine unitl just before the plt.figure() line. Then in the dock the "python rocket" symbol launches, but no Matplotlib window pops open, no error message, just the bouncing python rocket.
I tried changing backends in the matplotlibrc, but only "MacOSX" results in no error message, which is what I have previously used.
What could the reason be why matplotlib doesn't work anymore from within TextMate?
Thanks for your help!
Cheers,
Claus
import matplotlib.pyplot as plt
import numpy as np
import scipy.special as sps
# create x-array
t = np.arange(-3.0, 3.0, 0.01)
# create y-array
x = sps.erf(t)
# print x-array vs. y-array
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(t, x)
plt.show()
# printx-array and. y-array, just to see something
print t
print x
print "done! Yay!"
Hello all!
I was wondering if there was a modification or bundle that would allow to right click on a file or template in the
project drawer, to create a new file from that file/template, rather than right clicking and creating new file, then pasting the info manually, I'm just looking for a faster workflow, as I create dozens of pages a day, and this would
be helpful!
bill
On Jul 1, 2010, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
> textmate(a)lists.macromates.com
> On 1 Jul 2010, at 22:16, Watts Martin wrote:
>
>> I've noticed that at some point, the Control-Shift-P shortcut that
>> should
>> show the scope of the text the pointer is at stopped working. [...]
>
> The action is in the Bundle Development bundle. You probably disabled
> it via Bundle Editor ? Filter List?
Thanks for the fix, Allan--I was wondering what had become of mine too.
Hi I'm trying to configure my Textmate project/env to be able to find
included/required files.
I believe one way is to set a project specific environment variable
PHP_INCLUDE_PATH.
As far as I know this should be colon separated, so something like this
should be okay:
.:./src/:./src/mode/
But (command)+(shift)+d, that is 'Jump to included file' just reports: File
not found.
Should I prepend TM_PROJECT_DIRECTORY? and how would i do that?
{$TM_PROJECT_DIRECTORY}:
{$TM_PROJECT_DIRECTORY}/src/:{$TM_PROJECT_DIRECTORY}/src/model/
--
Michael Bøcker-Larsen
Hello,
in ruby on rails mode ctrl-h should show me the documentation of the
selected method. But I always get a window with the ri-documentation.
The headline is 'Documentation for xxxxx', but the content is the help
text of ri.
any ideas?
TIA,
Martin
Hello,
How can I search my files in textmate for:
<spaces...>USE<space>
Where <spaces...> is any number of spaces and <space> is just one space.
Thanks!
Patrick
I apologize if this is a duplicate message. I kept getting a bounce from this list.
Hi -- I am new to TextMate. I tried to do some simple key bindings reassignments as
described in section 16.3 in the help. Namely, I copied KeyBindings.dict to
~/Library/?Application Support/TextMate and edited it. I reversed the roles of ^q and
^j and changed what was ^~q to ^~j . I relaunched TextMate.
The result was that ^~j now performs the "unwrap text" command, but the three keys
(^q, ^j, ^~q) still maintain their old functions. What am I doing incorrectly? Thx.
-- pr
This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.
Say you copy and paste some snippet of code into yours and it's in HTML. Most often, for me, it's script tags. In Textmate, just select the whole thing, press Cmd+Opt+R, and use html2haml as the command. Use "selection" as the input and "replace selection" as the output.
Just like that, beautiful Haml!
Works with Sass as well. Just use css2sass.
Steve
hi there - I'm trying to make a simple macro that will perform the 'Open in Running Browser' operation *and then actually switch window focus over to the open page in the browser*!
it's a bit strange that TM doesn't do this automatically but whatever.
I tried making a simple little macro so I could just code it in by hand but I'm not proficient enough with whatever scripting language TM uses for it's macros (Ruby?)
anyway, mayhap there is a simple solution to this? it seems like there should be!
cheers,
bennett
In the following paper in the PracTeX journal
that
LATEXing with TextMate
Charilaos Skiadas and Thomas Kjosmoen
I read that autocompletion works for \ref and \label.
Presumably, if I put the caret within the braces of a
\ref{} command and press Esc, I should get a list of defined labels.
This does not work on my machines.
What am I doing wrong?
When I run the TODO bundle I get the following:
-----
/Library/Application Support/TextMate/Support/lib/textmate.rb:150: warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 /Library/Application Support/TextMate/Support/lib/textmate.rb:150: warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 /Library/Application Support/TextMate/Support/lib/textmate.rb:150: warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 /Library/Application Support/TextMate/Support/lib/textmate.rb:150: warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 /Library/Application Support/TextMate/Support/lib/textmate.rb:150: warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 /Library/Application
-----
I have run chmod -R o-w * in the /Library/Application Support/TextMate folder, but this makes no difference.
What have I done wrong?
Thanks,
Christopher
Hi
Could somebody tell me how to customize the Apple + R command.
I want to be able to compile some files which are in the C99 mode.
>From command line, I can do gcc -std=gnu99 in order to compile these files.
Thanks,
Raj
I recently got a new Mac and installed MacTeX 2009 and TextMate.
Everything works fine right out of the box.
On my older machine, when trying to use the LaTeX bundle with AFAIK the same
configuration, I get the following error.
Traceback (most recent call last): File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 873, in eCode = program.do_action(action) File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 476, in do_action self.do_latex() File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 521, in do_latex stat = self.run_latex() File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texMate.py", line 632, in run_latex commandParser = LaTexParser(None,self.verbose,self.fileName) File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texparser.py", line 150, in __init__ super(LaTexParser, self).__init__(input_stream,verbose,fileName) File "/Users/neuwirth/Library/Application Support/TextMate/Pristine Copy/Bundles/LaTeX.tmbundle/Support/bin/texparser.py", line 18, in __init__ super(TexParser, self).__init__(self) TypeError: object.__init__() takes no parameters
Using LaTeXtra in addition to LaTeC makes things work on this machine.
Any idea where the problem lies and how to solve it?
--
Erich Neuwirth
Didactic Center for Computer Science and Institute for Scientific Computing
University of Vienna
Hello:
I defined a language grammar for the GI CP-1610 Assembly Language (used
for Intellivision development), and I need to know how to set the line
comment character to ';'.
I based my bundle on others, so I added the Preference for comments.
However, whenever I hit the comment key, I get C-style comments.
How do I define the comment character?
dZ.
I work with HTML, XML and Ruby code and I want to select blocks of code
based on the folding indicators for the current syntax. I may be missing
something but I cannot find a way to easily accomplish this.
I can fold the text and then hover over the ellipsis and see it there but
that also removes it from the context which is not quite what I am looking
for. There is the very useful "Fold Selection". I would like the inverse
Select Current Fold.
tks, louie
--
View this message in context: http://old.nabble.com/How-to-select-folded-text-tp28941022p28941022.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I'm writing a small bundle for a HTML template language I use, Tenjin
(http://www.kuwata-lab.com/tenjin/). So far so good but I ran into a
problem with pattern priority in the language definition.
The relevant part of the grammar is this:
patterns = (
{ include = 'text.html.basic'; },
{ name = 'source.perl.pltenjin.expression';
begin = '(\[==?)';
end = '(=?=\])';
captures = {
1 = { name = 'keyword.control'; };
2 = { name = 'keyword.control'; };
};
patterns = ( { include = 'source.perl'; } );
}
);
I "extend" the text.html.basic language (because most of the file is
HTML) and add Tenjin expression. They are in the format [==? =?=] (the
second = means "raw" output, single = means HTML encoded).
TextMate recognizes perfectly my expressions in the text between tags:
<p>[= $var =]</p> # this is ok
but not when used as a tag attribute value:
<p class="[= $class =]">text</p> # not ok
In the second case, the [= $class =] text is all green, the context is
string.quoted.double.html and not the expected
source.perl.pltenjin.expression.
Is there any way to work around this?
Thanks,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
hi there - I've been trying my hand at learning Ruby and have been running some small scripts within TM but now I've run into a problem... here's the code I'm trying to run:
------------CODE--------------
class Song
def initialize(name, artist, duration)
@name = name
@artist = artist
@duration = duration
end
end
song = Song.new("Ruby Tuesday", "Rolling Stones", 360)
song.inspect
------------CODE--------------
however when I use the "Run" command the output window shows up blank - no errors, just blank.
adding this line to the class:
printf("foo")
results in "foo" in the output window but nothing else.
this code is taken directly from the "Programming Ruby" book published by The Pragmatic Programmers and should output some stuff that would take me far too long to type...
so, I'm obviously a bit of a noob - can you tell me what's going on?? is there some kind of limitation to the RubyMate bundle that doesn't allow passing of parameters into instantiated objects??
any kind of help would be great - I LOVE TM and use it for everything else I do so I'd love to use it for this too!
I should add that I'm running the latest version of OS X 10.6 and TM version 1.5.8 and that I have NOT installed Ruby via Terminal or anything else - I assumed that TM's RubyMate is a full fledged runtime environment for code testing... perhaps that I my mistake??
thanks in advance
bennett
I was wondering if there was maybe a hack or plugin that will allow me to do
this? I'm required to convert all tabs to spaces before committing any code,
and having to do it manually (text->convert->tabs to spaces) on every file
can get pretty frustrating.
--
View this message in context: http://old.nabble.com/Convert-tabs-to-spaces-when-saving--tp28891731p288917…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I have added a command to allow you to retrace your steps so you can easily get back to where you came from. You may want to include it.
The modified goto method and two new methods in tm_ctags.rb are:
def historyFile
File.join(ENV['TM_PROJECT_DIRECTORY'] || ENV['TM_CTAGS_EXT_LIB'], ".etag_history")
end
def goto( hit )
# Record where we are before we jump.
File.open(historyFile, "a") {|f| f.puts ENV['TM_FILEPATH'] + '%%' + ENV['TM_LINE_NUMBER']}
TextMate.go_to :file => File.join(hit['f'], hit['path']), :line => hit['line']
end
def goback
history = File.readlines(historyFile) if File.exists?(historyFile)
goto = history.pop if history
if goto && goto =~ /(.*)%%(.*)/
File.open(historyFile, "w") {|f| f.puts history.join("\n")}
TextMate.go_to :file => $1, :line => $2
end
end
and the only change to tmctags.rb is to extend the action case to include a new one:
when 'goback'
TM_Ctags::goback
exit
I added a new command to call this function and tied it to ^[
Dave.
I know this is a bit off topic, but im guessing some of you are avid xcode users also. So here is my pickle, a couple of days ago the editor in xcode started to show normally invisible characters, like tabs and linefeeds, exactly like when you toggle the View->Show Invisibles in Textmate. But i can't for the life of me turn it off. The View->Text->Show Controll Characters does nothing. Ive done a complete reinstall and trashing all xcode prefs i could dig up, but no lucks so far. So has anyone a clue what might be the issue here?
Here is a screen of how it looks http://dl.dropbox.com/u/362683/Xcode.png
/Mikael
> This isn't exactly what you're looking for, but it might save you some time depending on the structure of the file. Go to View > Toggle Foldings at Level and try one of those.
Unfortunately that doesn't help in my case because the nodes I want to
fold are at several different levels.
Bruce
Hello:
I created a language grammar for the GI CP-1610 Assembly Language and I'm having trouble with getting code folding to work properly. I searched this list's archives and could not find an appropriate answer. The closest topic was a question by Abhi L, on Nov. 2009 regarding the same issue, which went unanswered.
The typical block pattern in this language is as follows:
; Procedure
LABEL PROC
;
; code
;
ENDP
; Record
LABEL STRUC
;
; constants
;
ENDS
Apparently, TextMate's code folding only works when the end marker occurs at the same indentation level as the start marker. Or something like that. I've experimented with a stock-included bundle, the one for Perl, and noticed the same behaviour:
# This folds properly in all brackets
sub foo
{
if (bar)
{
# code
}
# This block only folds if the bracket below
# is at the same indentation as its matching
# sibling.
}
# This does not fold
sub foo {
# code
}
Is there a way around this? If so, how? Below are the regexps I use for my language grammar:
foldingStartMarker = '(\s+(PROC|STRUCT)\b.*$)|(^MACRO\s+)';
foldingStopMarker = '^\s*(ENDP|ENDS|ENDM)\b';
Thank you in advance, cheers!
dZ.
Anyone having issues with TM, html validation via the built in feature?
It was working fine for me a few weeks ago, now it returns 1, 3 warnings... the output error is posted below.
I go to the official http://validator.w3.org/, and my pages validate w.out errors. Is this a bug of some sort, anyone
else having this issue?
I have Version 1.5.9 (1510)...
Validation Output: 1 Error
Line 1, Column 1: end of document in prolog✉
This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy.
thanks,
bill
On Jun 12, 2010, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: TM2 (Adam Strzelecki)
> 2. Re: TM2 (Watts Martin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 11 Jun 2010 18:25:04 +0200
> From: Adam Strzelecki <ono(a)java.pl>
> Subject: [TxMt] Re: TM2
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <2C32BAEB-1AEF-4F76-AAEE-40C9D48A46C4(a)java.pl>
> Content-Type: text/plain; charset=us-ascii
>
>> I love TM that I have, but I would be lying if I didn't say I didn't poke around the other editors whenever a ugly bug rears its head and pisses me off.
>
> That's it. I neither need to have new shiny TM2, but want some bugfixes (Parsing improvement for long lines) and minor features requested long time ago (Soft-wrap indention). But the fact nothing is actually happening with TM1, and long standing requests makes me peek around once for a while for alternative editor.
> --
> Adam
>
> ------------------------------
>
> Message: 2
> Date: Fri, 11 Jun 2010 10:33:39 -0700
> From: Watts Martin <layotl(a)gmail.com>
> Subject: [TxMt] Re: TM2
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID:
> <AANLkTilGJSC653h0l9b0Hg4idUn-R1DSwa1W1lxnkrPC(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Fri, Jun 11, 2010 at 9:25 AM, Adam Strzelecki <ono(a)java.pl> wrote:
>
> That's it. I neither need to have new shiny TM2, but want some bugfixes
>> (Parsing improvement for long lines) and minor features requested long time
>> ago (Soft-wrap indention).
>
>
> TextMate 1.5 is a great editor, but it's remained fundamentally the same for
> several years now. There are weird little bugs in TM that aren't being
> addressed (the "save a new file at the root directory" one, for instance),
> some useful features TM has never had (pane splitting) and some things that
> TM has just never done well at (handling large files and having many files
> open at once--both things that the old fogey of the Mac editing world,
> BBEdit, ironically handles really well). And other editors... well, aren't
> standing still. It's pretty clear that both Coda and Espresso are tacitly
> courting TextMate users, and I expect Coda 2.0 to be a really serious
> contender.
>
> I'm quite aware Allan doesn't have any interest in hearing "Dude, you gotta
> do this faster" any more," and that he still feels somewhat burned about the
> bad reaction TextMate 1.0 got in a lot of quarters. And, yeah, a buggy TM2
> public beta does risk a bit of that. On the flip side, though, there's a
> solid TM1 release that people can be pointed to, which wasn't the case the
> first time through: it's a lot safer now, in terms of perception, to let the
> public beta be a public beta. More importantly, it would give the TM
> community an opportunity to start working on new bundles that TM2's final
> release would have available right out of the starting gate.
>
> Okay, I'll stop now. :)
>
Hey guys,
I am trying to make use of the GetBundles package and I know that this is not the forum for questions/problems with that bundle but I think this may have something to do more with Textmate so bare with me.
GetBundles likes to keep the "Support" folder up-to-date. It checks out a version from "http://svn.textmate.org" namely the trunk version of Support. OK that's no problem on its own. But then once this gets pulled, I have a problem running Python scripts that run graphical interfaces. Namely I have a Tkinter app that works from the command line but when it runs the python icon just bounces on the dock and it just sits there.
I had this similar problem with LaTeX at one point but I updated to the newest version of the LaTeX bundle and it began to work again. I tried to update the Python bundle to the latest from git (textmate version _not_ the adamv fork) and that didn't fix the problem.
I figure its simply a matter that trunk is trunk and it's not necessarily supposed to work. I have resorted to using GetBundles and just deleting that updated Support directory. This seems to fix the problem.
--
Donald Ephraim Curtis
dcurtis(a)gmail.com
I am new to TextMate and have spent a good chunk of the day getting familiar
with its automation capabilities and trying to do the following. I would be
grateful is someone could point me in the right direction or tell me it's
not possible.
I read XML files from a particular schema on an ongoing basis. There's a
lot of clutter that I manage by folding certain tags. There are about half
a dozen tag names to be folded and each occurs several times (the number of
times varies), so it is a pain to have to do this by hand every time.
I was hoping I could write a command or macro or something that would
automate the process for me. I got as far as creating a macro to search for
one of the tags and fold it. But now I want to do that for
all occurrences of that tag and the other tags on my "fold list". Can't
figure it out.
Is there a way?
Bruce
Hey All,
For some reason despite having “Check spelling as you type” selected,
spellchecking no longer happens for me, except in ‘plain text’
documents. In an HTML document I don’t get any red underlines,
selecting Check Spelling gives an error beep, and Show Spelling &
Grammar doesn’t find anything to change. Changing the document’s
language to plain text gives me red underlines, but also for all HTML
code.
Can anyone tell me what I should check to troubleshoot this? Thanks in advance!
peace - oli
Dear TextMate experts,
I have a file with a certain extension. In the folder where this file is located, there is a file with the same name but extension .pdf. How do I create a command that removes the .pdf?
My first trial was this (bundle editor):
1) Save: Current File
2) Command(s): rm "$TM_FILENAME/Rd/pdf"
3) Input: None
4) Output: Discard
So I guess 2) is the problem. How can I replace the file extension by .pdf?
Cheers,
Marius
Allan:
First off, let me tell you how much I respect you. You've created a
tremendously valuable product which has literally logged more than a 1000
hours of usage for me. I've enjoyed extending it (RubyAMP, Git textmate
bundle, contributing to many more), and have really gotten full leverage out
of it.
Now the sobering part.
Things have been awfully quiet about TM2 for the last several months. You've
claimed you are still working on it, but I've just about lost hope. There
are no signs to reinforce my faith that TM2 will ever become a reality.
I use both Emacs and VIM. There are many strengths that TM has over it, so I
still consider it to be a superior editor in many regards. Some of these
I've articulated in my blog post,
http://tim.theenchanter.com/2010/02/emacs-baggage.html
I can't help but wonder if your promise of "free upgrades" has blasted a
crater in your motivation to work on TM2. Is there a possibility of this,
Allan? If so, I would suggest the following:
* Release a version of TM as TM2 with all the critical bugs fixed. Everyone
gets their free "upgrade" (except the macheist users as you've previously
stated). Perhaps include one or two new features.
* Post a public apology for over-promising TM2 features, and state that you
miscalculated how much you would be able to include in it as a free upgrade,
and from a business standpoint it's impossible to fund all of new
development as a free upgrade. Say you are terribly, terribly sorry, that
you are doing your best, and hope that people will be forgiving. (I know I
will).
* State that TM3 will be released with those features, and will be a paid
upgrade for everyone.
I would prefer to have a paid upgrade to TM3 than a non-paid non-existent
upgrade to TM2. Right now I can't pay any price to upgrade to TM2.
I think you have a shot at this to make this a profitable move for yourself.
Lots of people still use TM and many may come back. If my hunches are
correct, then I plead from you: don't sell us all short by selling yourself
short.
With the highest respect I'm capable of,
Tim Harper
Having just switched to TeX Live 2009, I'm experiencing a problem with synctex. Jumping from Skim to my LaTeX works fine, but "Jump to Current Line in Viewer" throws me the message
<div id="commandOutput"><div id="preText">
pdfsync.sty must be included to use this command
or use a typesetter that supports synctex (such as TexLive 2008)
but then jumps to the correct line when I next typeset. On my laptop at home, where I've only ever used TeX Live 2009, things are working as they should.
I suspect the answer is simple, but having fiddled around for some time, I was unable to fix it. Does anyone have any thoughts?
Many Thanks,
Austen
Thank you Allan,
sorry what I meant was I had added some bundles myself the previous week
(although not a PHP bundle) so I deleted those bundles.
In the event, I fixed things yesterday by reinstalling the application in
full after deleting it and any associated files I could find and this
worked.
Any info on what the error meant?
Luke
> But will this actually cause ^h to start working? On my machine,
> TM's ^h
> for Ruby has been broken for years (because it relies on fastri, which
> as far as I can tell is no longer supported because the ri format has
> changed). I just assumed it was broken for everyone. Are you saying
> that
> ^h still works for you? m.
I've found this patch:
http://rubyforge.org/tracker/index.php?func=detail&aid=11391&group_id=426&a…
at the end of the post (downloadable attachment).
It seems to work with TextMate 1589, jruby 1.5.1, and also in
Terminal, on Mac OS X Leopard.
Michèle Garoche
updated some bundles last week and now my PHP bundle is behaving very
weirdly.
each time I type a left parenthesis i.e.
(
symbol
it gives me the error "please cache your project first"
and does not type the parenthesis, making it impossible to use.
I have deleted all bundles added and when I deleted the PHP one, the error
went away, but obviously I still need the PHP bundle back! When I tried ti
again I got the error.
Is there an alternative PHP bundle I could try or is it something else?
my textmate is up to date and the php I installed through get-bundles and it
is default one.
Mac Os 10.5.6 intel mac.
many thanks to anyone who can help me shed light on this matter!
Luke
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
Hi list,
I'm currently in the process of rearranging and cleaning my thesis files. My chapter files are arranged in subdirectories, and I've decided to change the \include{path/file} occurrences in my main latex file to \includefrom{path/}{file}, so that I don't have to give the absolute path for every single included file or figure in "file.tex" (for example, changing the name of "path" would involve a tedious search and replace procedure in "file.tex"). This command is provided by the import package (along with the \import command, which is the \input counterpart).
For example, if I have a file "path/figure.pdf" that I want to include in "file.tex", I would normally have to do \includgraphics{path/figure.pdf}, even though "file.tex" is itself in the "path/" directory. That's not neat, and quite unpractical indeed. Including "file.tex" using \includefrom{path/}{file} instead allows to circumvent this issue, and allows to use \includgraphics{figure.pdf}, where figure.pdf is resolved in "path/". Anyway, this is an preliminary for those who wouldn't know what the import package is for.
So, my question is, would it be simple to make the LaTeX bundle cooperate with \includefrom and \import too just as it does with \include and \input? For example, I find it very frustrating not to be able to use "Open included item" command, but I didn't find any simple way to extend the functionality of the bundle in that direction.
Thanks,
enas
How do I add 'xltxtra' to the xelatexIndicators in LaTeX 2? The xltxtra package alone loads fontspec and xunicode in the right order. Thanks for any pointer.
-- Gildas
Hello,
Application shall not bind ⌥letter or ⇧⌥letter shortcuts as those are used to type accented/special characters on various keyboard layouts.
TM follow this rule with one exception "Insert Scratch Snippet" that binds to ⇧⌥S which makes typing Ś (accented S) impossible in my case.
I believe this is a bug and this keyboard shortcut shall be corrected to i.e. ⇧⌃⌥S.
Filled at: http://github.com/textmate/textmate.tmbundle/issues/issue/1
Regards,
--
Adam
Dear List,
I have a strange bug to report. Using 10.6.3, Textmate and Skim
together (via the LaTeX bundle) seems to trigger a nasty bug in OS X.
As far as I can tell, it is triggered when skim reloads a changed PDF
file, but I haven't been able to completely reliably find out exactly
what triggers it. At first I thought it was to do with the pdfsync
functionality, but then I noticed it could be triggered simply if the
files changed. Whatever is causing it, once triggered any new process
on the machine will use up 100% of the CPU. The only way to get
things back to normal is to log out of the user account and back in
again.
I realise that this is a very sketchy bug report - I'm posting it here
in the hopes that someone else has run into it and has managed to work
out exactly what is causing it better than I have. I'm not even sure
if the fault lies with skim or with textmate or with the latex bundle.
Best wishes,
Nicholas
In GetBundles I see two for DocBook (one by Brian Hogan, the other by
weppos), is one better than the other?
Is TextMate the best editor to use for DocBook XML on the Mac, if I'm
new to DocBook?
Thanks.
Dan
Hi
I have recently started using textmate, and like it very much, with the exception of the search and replace, which I find rather awkward.
from vi and emacs I am familiar with being able to specify the search and replace strings from a command line like, for example in vi I would
%s/OLD/NEW/g
which replaces OLD with NEW throughout the entire file. OLD can also be a regex
In texmate you essentially always have to bring up the find/replace dialog if you want to use regex expression.
for simple find/replace you can use the cmd-E to put the current selection into the search field, but there is no easy way to put a replacement text into the replace field. If the replacement text happens to be some where in the file you can find and select it and shift-cmd-F into the replace field.
But this is all very long and awkward. Am I missing something or is the a easier way to use the find and replace in textmate, without having to bring up the dialog box all the time. seems a lot of key strokes with shift cmd, option, tabs, returns etc compared to my familiar
s/regex-find/replace/g
thanks
Steve
Dear guys
I have two questions. These looks piecs of cake... however, I cannot solve
it. :-(
1. Folding JsDoc-Toolkit comment
As you know, JsDoc-toolkit (and the similar auto-document-generation tools)
creates document with the comment as below:
/**
* Description of constructor.
* @class Description of class.
* @constructs
*/
Sometimes, the comments are too long to review the codes, I REALLY wanna
fold them. So I add rules to grammer like that:
foldingStartMarker = '(^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)';
foldingStopMarker = '(^\s*\}|^\s*\)|^(?!.*/\*).*\*/)';
Unfortunately, it's just working as below:
/**
* Description of constructor.
* @class Description of class.
* @constructs
*/
Colud you tell me how I can fold the original jsdoc comments with space?
2. Highlight Keywords.
The framework I use has a object, $Class, so I wanna highlight this object
as keyword.
However, it's impossible because of "$" even I add this keyword into the
grammer file. I use a escape character and Regular express format, it
doesnot working.
Please give the advice to highlight a string with "$".
Best regards.
--
View this message in context: http://old.nabble.com/JsDoc-comments-folding-%2B-Keyword-highlight-tp285194…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
Not that I couldn't figure out how to make this work, but is there any
current facility for substituting Biber for Bibtex in the LaTeX2
bundle? (or, I guess, the original bundle?)
If not, any thinking on the right way to do this; or should I just
start hacking?
;-)
Thanks! Charles
The keyboard shortcut, ⌃⌘T, for "Select Bundle Item..." doesn't
work. All of my modifier keys work fine in other instances, and if I
click on the menu item then it works fine, but when I enter in the
shortcut, nothing happens. I don't think this shortcut is bound to any
programs running in the background. Has anyone encountered this
problem or know how to fix it?
Hey all,
I seem to be having issues getting both the rails and ruby bundles to work
properly. Both of them show up in the bundles dropdown, but don't seem to be
working. For example when I use the forin snippet it ends up giving me a
shell command of for in statement. Likewise many of the snippets associated
with the .rb file just dont seem to exist and none of the ones for the
html.erb/rhtml ones do, similarly the syntax coloring in the html.erb is not
working properly either. I've tried reinstalling both bundles a couple
times, does anyone have any insight on this?
Thanks for the help.
Hi everyone,
Is there a shortcut or bundle that allows us to move to the [n]th
occurrence of a char in the the current line?
This is similar to vim's:
"f{char}To [count]'th occurrence of {char} to the right. The cursor is
placed on {char} (inclusive).
F{char}To the [count]'th occurrence of {char} to the left. The cursor
is placed on {char} (inclusive).
t{char}Till before [count]'th occurrence of {char} to the right. The
cursor is placed on the character left of {char} (inclusive).
T{char}Till after [count]'th occurrence of {char} to the left. The
cursor is placed on the character right of {char} (inclusive)."
Thanks,
Jorge Luis
With so many great plugins now available, is there a way to change the size
of the Preferences window? In defaults for com.macromates.textmate, I see
window sizes for every other window in TextMate, but only
OakPreferencesWindowLeftTop.
Jay Levitt
The topic of unit testing grammars has often been brought up and I
finally did a CLI tool for running a file through the TM parser.
The tool is here: http://updates.textmate.org/gtm.bz2
It reads the text to be parsed from stdin and takes as argument paths
to tmGrammar files which should be loaded. If the -g/--grammar option
is not given, the first grammar specified will be used to parse the
input.
Output is the parsed document in the pseudo-XML format that TextMate
commands can receive as input.
Presently the -t and -d options are not implemented.
Examples:
gtm < test.c C.tmbundle/Syntaxes/C.plist
gtm < test.cc -g source.c++ C.tmbundle/Syntaxes/{C,C++}.plist
I plan to also make this a profiling tool so that it can list how much
time is spent in each rule, but this is secondary to the current
agenda of providing the basis for grammar unit tests.
I am announcing this to get some input on how we can build a good unit
testing system. My concern is that we’ll either make really simple
tests that never break (it’s generally complex interplays of rules
that cause problems), or we’ll have fully parsed complex documents as
the “expected output” and can’t make changes to the grammars w/o
pretty much rewriting all the tests.
Hi,
I tried to compile a simple document with the latex2 bundle and get the following:
----------
Typesetting latexws.tex…
graphics.sty:68: \clearpage
Program exited with code #1 after 0.94 seconds.
-----------
I am not loading the graphics package (only the graphicx).
What does this mean? And how could I resolve it?
Thanks in advance!
--
Christian
-It's better to be a pirate than to join the Navy.-
John Sculley and John A. Byrne, 1987
Hey Guys,
A friend pointed me to the this list! Way excited. Any of you guys have
experience adding the run script for a new bundle? I'm helping a friend with
a new open source markup language called ZML.We added a bundle to TextMate
and added the syntax highlighter.
I really love the functionality, with apple command + R that allows me to
run a Perl Script or Shell Script, or what have you, and display the results
in HTML. This would be really helpful, in place of being forced to run each
document in terminal to view the output. My command is simply "zml
myzmlfile.txt" and I want to leverage the bundle editor to get this going.
Anyone have experience doing this? I obviously, do not.
Thanks in Advance!
Kenny G
I cannot find where in the TextMate documentation it explains how to go to
the end of a line or to the start of a line. It must be very simple, but I
don't know what the keyboard shortcuts are because I can't find any
reference to this in the Help System.
--
View this message in context: http://old.nabble.com/how-do-I-go-to-end-of-line-and-or-go-to-start-of-line…
Sent from the textmate users mailing list archive at Nabble.com.
Hi list,
I’ve recently taken the step from the LaTeX bundle to the LaTeX 2 bundle, but only for a short time. Indeed, whenever I type a \, the autocompletion command takes hand but fail as soon as I hit the next symbol (letter, parenthesis, bracket...). It just displays the message “Error: too many arguments” (as tool tip). So, basically, it prevents me from typing a backslash, which is quite a pain when working with LaTeX.
Any suggestion ?
Édouard GILBERT
edouard.gilbert(a)gmail.com
In Stata, strings can begin with the two characters: `", end with the
characters: "'. How can textmate recognise these as quotation marks? The
following code in the Stata bundle won't work, because textmate doesn't parse
the 'begin' and 'end' lines as I'd like it to. Instead it (understandably)
complains that it finds a " where there should be a ; on the second line below.
Is there some way to get textmate to recognise this quotation convention?
{ name = 'string.quoted.single.stata';
begin = "`"";
end = ""'";
patterns = (
{ name = 'constant.character.escaped.untitled';
match = '\\.';
},
);
},
Any help much appreciated.
Hi
TM with LaTeX fails to launch skim or preview. TM works only
with "view in Texmate".
I have the same problem with a macbook and an imac intel 10.6.2
Alain Matthes
Dear TextMate experts,
I would like to execute the shell script myscript.sh from within TextMate. The script myscript.sh takes a file name as argument and does something with the file (it indents the file correctly; for this, it calls emacs in batch mode). So if I use
sh myscript.sh myfile.R
the script works perfectly fine, i.e., it indents the source code contained in myfile.R. I would like to have textmate do this for me on the file I am working on when I use a certain key combination.
Using the Bundle Editor, I created a new command "tidy" with key equivalent "shift+command+T". As the actual command, I put in:
sh /path_to_my_script/myscript.sh "$TM_FILENAME"
Unfortunately, this does not work. I set "Input" to "Entire Document" and "Output" to "Replace Document" (currently I obtain an empty document after "shift+command+T").
How can I trigger the shell script, such that the current content of myfile.R is replaced by the (quietly generated) output of myscript.sh?
Below is the script
Many thanks in advance,
Marius
#!/bin/sh
function usage () {
printf "Indent R file with Emacs ESS package.\n"
printf "Usage: $0 FILE\n"
exit 1
}
f=$1
shift
if test "x$f" = x -o "x$f" = "x-h"; then
usage
fi
emacs -batch \
-eval '(load "/usr/local/share/emacs/site-lisp/ess-5.8/lisp/ess-site")' \
-f R-mode \
-eval '(untabify (point-min) (point-max))' \
-eval '(insert-file "'${f}'")' \
-eval '(set-visited-file-name "'"${f}"'")' \
-eval '(indent-region (point-min) (point-max) nil)' \
-f save-buffer \
2>/dev/null
I've been trying to track down a problem in code folding for Ruby.
At this point, I have two 100+ line files, one of which has problems
and the other does not. The _odd_ thing is that cmp(1) says they're
identical. I have tried closing the files, stopping and restarting
TM, reloading bundles, etc. Nothing seems to make much difference.
One annoying constraint is that the code is proprietary, so I can't
just post it publicly (even in its rather cut-down form). Sigh.
Details:
TextMate 1.5.9 (1510)
Mac OS X 10.5.8 (Mac Pro)
RUBY_VERSION 1.8.5 (for Google Sketchup Pro 7.1.6859)
Guesses:
It appears that TM has saved bogus folding information for one of
the files, but not the other. Suggestions on tracking this down
or at least gathering useful information?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, system design
I have been trying to get Scheme set up for Textmate. When I first installed
the bundle and tried the run command, I got an error. I had an installation
from Macports, but I wiped that and downloaded mit-scheme for Unix and
installed the binary in: /usr/local/bin.
I set the shell variable, "TM_SCHEME", and pointed it to:
"/usr/local/bin/scheme". Now, when I call the run command, it brings up the
read-eval-print-loop and it does not read the scheme text file I have saved.
Now, I understand that I could mess around with the Run command in the
Bundle editor, but I hardly have enough experience to do that. Does anyone
know if there is another bundle I can install that accounts for this issue,
or a different way in which I can install Scheme?
Thanks a bunch for the help.
--
View this message in context: http://old.nabble.com/Scheme-Run-Command-Doesn%27t-Read-Text-From-File-tp27…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I was trying to give all (round) parentheses a certain color while editing
in C++.
Can someone help me to achieve this? Sorry if that has been asked before.
As a second question, would it be possible to give parentheses of function
calls a different color, or ideally color all the text within the brackets?
Thanks!
Tim
--
View this message in context: http://old.nabble.com/Coloring-parentheses-in-C%2B%2B-code-tp27998726p27998…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
"Go to symbol" doesn't work in JavaScript for me. But it should,
right? Any ideas where to look at? I am not to familiar with
BundleEditor yet.
Matthias
Hi
Textmate version 1.5.9 (1589) on MacOSX 10.6.3
The clipboard history does not appear to be working correctly
ctr+opt+cmd+V is supposed to pop up a window that allows you to arrow through your history
In my case it just recalls the last entry in the clipboard, as I repeatedly press ctr+opt+cmd+V, it adds the previous entry. For example if I put into my clipboard history apple banana pear
pressing ctl+opt+cmd+V three times produces
pear banana apple
But no drop down menu to allow me to arrow through
Any ideas why?
Steve
Every time TextMate tries to update automatically on my Snow Leopard 10.6.2
MacBook Pro I get:
*3/11/10 7:58:46 AM TextMate [1749] Error checking for new version:
Failed to connect to 208.78.96.139: No route to host*
in my error console.
What is the problem with the auto update?
Greetings,
This is slightly off topic but I'm hoping some of the TextMate-Cocoa
people here could help me.
I'm learning Cocoa programming and I'm not interested in using Xcode
for my development. I prefer using Clang, Rake, Textmate, and
Interface Builder. I know Allan and company development Textmate using
Cmake instead of Xcode. I'm wondering how to run unit tests this way.
Every OCUnit app tutorial I see assumes you are using Xcode. Anyone
know how to set up unit tests manually via the command line? Once I
see how it is done I can set up a Rake target/tasks to handle it for
me.
Any other advice when developing Cocoa apps without Xcode?
Thanks in advance,
Jason C
Hi,
If have a tiny problem since I'm using NSLocalizedString a lot in a project. We had a similar discussion at irc a couple of months ago and maybe I came across with a solution.
E.g. you have the following Objective-C++ file:
@implementation AClass
- (void)foo:(NSDictionary *)w
{
MyFun(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK"),
nil, nil, tableWindow, self, nil, nil, nil,
NSLocalizedString(@"bla", @"bla"));
NSBeep();
}
- (void)foo2:(NSDictionary *)w
{
}
you'll see in the Symbol List:
AClass
- foo:
NSLocalizedString
NSBeep
- foo2:
which could be sometimes useful but the NS... stuff disturb generally. Then I looked at the Objective-C++ Language definitions and I found:
...
patterns = (
{ include = 'source.c++'; },
{ include = 'source.objc'; },
);
...
This means that 'source.c++' will be processed before 'source.objc'. By my opinion this is the wrong order. Because if I change this into:
...
patterns = (
{ include = 'source.objc'; },
{ include = 'source.c++'; },
);
...
I get for the above example the correct Symbol List:
AClass
- foo:
- foo2:
Are there any reasons for that language grammar order?
Regards,
--Hans
I’ve been neglecting the mailing list for a few months, sorry about
that.
I have lots of unread stuff which I’ll try to catch up on during the
next few days, so just a sorry in advance for late replies.
I'm new to TextMate, trying it out as a desktop blogging editor using the
blogging bundle. I like its speed, compared to the online editor of my
wordpress.com blog. If the trial version works out I'll buy it properly.
But there's a small problem. I've been trying to upload images, and find
that when I drag an image to the editing window, it only gives me a link to
the local location of the file and does not upload it automatically. This is
a problem I've seen mentioned elsewhere on the Textmate blog but haven't
found an answer to. What is happening, though, is that once I post my
writing to my blog and then fetch it back for editing, only after doing that
is it possible for me to drag-and-upload an image in the way that is
indicated by the screencast and help file.
Is this normal behaviour? Should I be able to upload an image straightaway
into the post before posting it? If so, how can I fix the problem I'm
having? I'm on OS 10.5.8, using version 1.5.9 of Textmate. Thank you for any
ideas or suggestions.
Mike
I don't have a bundle for Makefiles in my version of Textmate (1.5.8).
Makefiles are treated as plain text files.
I haven't found one listed via the GetBundles bundle. (I installed CMake,
but that doesn't appear to be it.) I've also looked through the
bundle list<http://svn.textmate.org/trunk/Bundles/>and don't see one.
Where is the Makefile bundle.
Thanks.
Hi, Allan-
Following up from IRC...
My text editor of choice on Windows was TextPad, and it supported a
handy way to insert sequential numbers for "replace all" operations.
This was useful, for example, when inserting line numbers, creating
unique ids, etc.
I don't know if the syntax was unique to TextPad, or if it is part of
some standard regex syntax, but it was pretty simple and effective:
\i(<start_index>,<increment>)
\i Replace with numbers starting from 1, incrementing by 1.
\i(10) Replace with numbers starting from 10, incrementing by 1.
\i(0,10) Replace with numbers starting from 0, incrementing by 10.
\i(100,-10) Replace with numbers starting from 100, decrementing by -10.
Any chance this (or something similar) could be added to TextMate?
Thanks-
-Doug
Hello,
I started to use Textmate as editor for pages in textile and markdown
format. I run into an issue with a page that includes Java source as
part of an article.
If the article contains a preformatted region <pre>...</pre> and inside
this region there is Java code containing a question mark as part of a
generic function, then the rest of the article is marked in red color.
If I use markdown format instead of textile, then I can solve this with
two blank lines. This is not possible with textile format. Both pages
render correctly in the preview.
I have attached two sample files for this.
<pre>
public <? extends Bar> foo(){
//
}
</pre>
--
Best Regards / Viele Grüße
Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de
# Hello
## Sub title
Some text in here
<pre>
public <? extends Bar> foo(){
//
}
</pre>
## Another paragraph
h1. Hello
h2. Sub title
Some text in here
<pre>
public <? extends Bar> foo(){
//
}
</pre>
h1. Another paragraph
Hi,
I tried to switch from LaTeX-Bundle to the LaTeX2-Bundle but the document is not compiling. My document consists of a master file with included part files. The part files then using input for the chapter files.
After a run on the master file everything I get is the following:
-----
ypesetting latexfahrplan.tex…
hpdftex.def: Shell escape feature is not enabled.
amstext.sty: Unexpected value for option `prepend'
nameref.sty: W0030
minitoc: W0023
minitoc: W0028
minitoc: W0023
minitoc: Usage of deprecated \float@listhead!
part1introlatex.tex:14: \part{Einführung in \LaTeX{}}
copy output
Program exited with code #1 after 1.55 seconds.
-----
and nothing happens more.
Do I miss some basic changes needed in the setup before switching?
--
Christian
-Click. Boom. Amazing!-
Steve Jobs, 2006
--
Christian
-Click. Boom. Amazing!-
Steve Jobs, 2006
Hi,
I've just - mistakenly- deleted the blackboard theme.
I tried re-installing the Textmate but no help.
How do I recover the theme?
Best,
Ozgur Akgun
I've been using textmate from Tiger to Leopard and Snow Leopard, and I like
textmate so much that I can't live without it. I use textmate for writing
C/C++ and Java codes, as well as LaTeX.
But since snow leopard I've been encountering more and more problems than
before. And later I heard it's because snow leopard use Ruby 1.8.7 as
default while most textmate bundles use Ruby 1.8.2. When I use textmate on
my snow leopard Macbook Pro, a lot of bundles and scripts that used to
function pretty well now don't work. Here I have the question, can I solve
those compatibility issues by just getting the latest bundles from the svn
sites? Or that textmate 1.5.* is just not suited for Snow Leopard, the app
itself needs update to get full compatibility on Snow Leopard? If so, maybe
I'll wait for textmate 2 before I write all my projects in textmate.
Forgive my bad English, I'm a Chinese guy.
Thanks for your tips.
> Hi
>
> How do I open html-files from textmate into Firefox, instead of Safari,
> that seems to be default+
>
> tromslo
>
> ------------------------------
>
>
Open firefox, close safari, use the Html macro "Open in Running Browser" or
"Refresh currently open browsers".
I want to know whether someone other than me would like to have a version of TextMate for the iPad? Let me explain: I use TextMate primarily for TeX and some trivial modifications of websites. I could get by with a simple text editor and since the iPad allows one to use an external keyboard, I could type comfortably for hours on it.
Since (as far as I understand) TextMate is very modular and the interface very minimal, one should be able to whip up a nice, clean interface for the iPhone OS?
What do you guys think: have I been caught in Steve's reality distortion field or is there a market for an editor on the iPad?
Max
Hi, I have a command (html output) that will be run frequently to give a
status update. Based on it's output, the user will make a change to their
code and run it again. But it gets tedious having to click back onto the
window every time they run the command.
Is there a way to have my command automatically switch back to the window
they've been writing their text in, after displaying the output, so that the
output updates, but user focus appears to remain in the editor window?
I hunted through some Applescript for the last hour, but haven't seen
anything I could figure out how to use.
I tried recording the command with automator, it gave me
-- Press ⌘`
delay 0.232022
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"`\" using command down"
my doWithTimeout( uiScript, timeoutSeconds )
on doWithTimeout(uiScript, timeoutSeconds)
set endDate to (current date) + timeoutSeconds
repeat
try
run script "tell application \"System Events\"
" & uiScript & "
end tell"
exit repeat
on error errorMessage
if ((current date) > endDate) then
error "Can not " & uiScript
end if
end try
end repeat
end doWithTimeout
Then I tried placing that in a system call to osascript at the end of my
command, but it didn't seem to do anything.
Hi all,
I was contemplating the fact that Latex 2 requires a separate templates directory, rather than having a stock set within the bundle itself. On the one hand, I appreciate the ability to add my own templates in this directory, but the ruby directives aren't applied upon import, a nice feature of the original Latex bundle's internal templates, and this means extra typing. Am I doing something clueless once again?
I also find the template window itself that opens under Latex 2 to be a bit of a tease: it doesn't work quite as advertised in the Help file. When I hit return I get to edit the template name, but I can't seem to find a keyboard sequence out of this mode (no 'reasonable' emacs/readline sequence works, other than tabbing me into the template preview window, where I can edit the template) and I have to use the mouse to insert the selected template. [I'm running Snow Leopard on my powerbook, Leopard on my iMac]. I like my mouse, but not that much. :)
What would be nice is to have a stock set of templates in the bundle, and then such a window that allows one to create a new template by using or even modifying [but not replacing] one of the ones already stored in the template inventory list; of course, the user-defined/modified templates would have to be set aside as is currently required. But hey this is Textmate, there must be a macro/script that can be developed for doing this (not that anyone needs more work!)? And wouldn't it be nice that the template editor have all the power of textmate and the latex2 bundle at the ready, to ease the template modification?
Now, Latex 2 does indeed have some major improvements over the first bundle. But the templates feature seems a step backward in my opinion (or aging is getting to my brain?). Thanks for listening.
Best wishes
David
--
David F. Snyder, Ph.D.
Department of Mathematics
Texas State University at San Marcos
The Latex 2 Bundle is indeed much better, thank you!
The only oddity here is as soon as I set any flag via TM_LATEX_FLAGS, the document no longer compiles and I receive a prompt asking me to enter a filename (TeX cannot find my .tex file to compile). As soon as I unset TM_LATEX_FLAGS everything works again. Odd.
Still, this is a great solution — many thanks.
Cheers,
Tom Shafer
Dept. of Physics & Astronomy
The University of North Carolina at Chapel Hill
I'm trying out Alex Ross's alternative latex bundle, but am having
trouble getting it to typeset my documents. I go the latex+dvips
route. Would that be the problem?
Thanks,
Kyle
Greetings,
I have used TextMate for some time for programming and other text-editing things and I love the program. I would like to use it for LaTeX documents as well; it's superior customization is a significant help in speeding up technical writing. However, the speed of compilation in TM is incredibly slower than in TeXShop, the program I am forced to use now. It is a significant enough difference that it is incredibly frustrating to use TM for LaTeX. Both programs are using pdflatex engine, I am not running the Latexmk.pl script, and I'm running straightforward scripts (mostly for short papers and class assignments) so there should be no speed difference?
I wonder if anyone else had this issue and if there is some kind of fix. I am running on a 6-month-old MacBook Pro so speed should not be an issue --- I had read someone re-wrote the compile script to be faster, but have not found any link to such a script. I have put a screencast at http://files.tomshafer.name/misc/textmatelatex/ demonstrating the differences both in initial compile time (not an issue) and subsequent file time (very important to me — I compile every minute or so to preview changes).
Any thoughts would be much appreciated! I very much enjoy TextMate and to be able to write LaTeX would be a magnificent upgrade for me.
Cheers,
Tom Shafer
Dept. of Physics & Astronomy
The University of North Carolina at Chapel Hill
I moved my latex bundle out of the appropriate directory, and then
back in, and now I can't get command R to run latex and give me a pdf
in skim, as it once did. I get the error message below.
Can anyone give me a pointer?
thanks,
Kyle
sh: --help: command not found
/bin/sh: -interaction=nonstopmode: command not found
A fatal error occured, log file is in Differences.log
Document '/Users/kbj/Papers/*Differences/Differences.pdf' not open in
application The file /Users/kbj/Papers/*Differences/Differences.pdf
does not exist.
error number 256 opening viewer
Found 0 errors, and 0 warnings in 1 runs
-interaction=nonstopmode -file-line-error-style exited with status 127
Hello,
When scanning my latex document with the TODO bundle, I get the following message.
Scanning directory: ~/Documents/tex/papers/2010/O3Buffer/RevSciInstr_Buffergas/O3Buffer
(erb):4: undefined method `+' for nil:NilClass (NoMethodError) from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:99 from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/erb.rb:716:in `grep' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `each' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77:in `grep' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:77 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in `open' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75:in `each' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:75 from /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `call' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Support/lib/textmate.rb:201:in `each_text_file' from /Applications/Editors/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:71
I have reinstalled textmate several times and everything worked for a while before TODO would give the same message again. Since I am not at all familiar with ruby I did not try to understand the ruby code of the TODO bundle.
I am using TM Version 1.5.9 (1589) under the latest snow leopard OS.
Because I really like the functionality of the TODO bundle I would be happy if anyone could tell me what to do or confirm that this problem exists elsewhere.
Thanks for consideration
Christof
I frequently pipe the output of Terminal.app commands to view/search with
TextMate, but for commands like "ls -al --color=always" I'd like to still
see the ANSI terminal colors even though I keep the piped output in Textmate
for future reference.
So something like
% echo -e "\\e[0;32mCOLOR_GREEN\\t\\e[1;32mCOLOR_LIGHT_GREEN\\e[0m"
would show up (colored) in TextMate as
COLOR_GREEN COLOR_LIGHT_GREEN
It'd be fine if the actual escape codes were still there but de-emphasized.
If nothing else, it would save me from running a regex through
search/replace to remove the ANSI escape codes when my output already took a
while to generate. And I like the "do it once, keep it forever" factor of a
TextMate bundle ;)
If there's any existing bundle which has those codes already in a language
grammar, I'd appreciate it.
Thanks
Darryl
ls example:
total 8.0K
-rwx--x--x 1 dzurnlocal 515 2010-04-14 16:16 [0m[01;32mcolors.sh[0m*
lrwxr-xr-x 1 root 9 2007-07-05 10:06 [01;36m2-sym_link[0m ->
[01;33m/dev/null[0m
brw-r--r-- 1 root 14, 0 2006-06-09 15:38 [01;33m6-block_special[0m
crw-r--r-- 1 root 3, 2 2006-06-09 15:38 [01;33m7-char_special[0m
-rw-r--r-- 1 dzurnlocal 0 2006-06-09 15:38 0-file
drwxr-xr-x 2 dzurnlocal 68 2006-06-09 15:38 [01;34m1-directory[0m/
-rwxrwxrwx 1 dzurnlocal 0 2006-06-09 15:38 [01;32m5-executable[0m*
-rwsrwxrwx 1 dzurnlocal 0 2006-06-09 15:38 [37;41m8-exe_setuid[0m*
-rwxrwsrwx 1 dzurnlocal 0 2006-06-09 15:38 [30;43m9-exe_setgid[0m*
drwxrwxrwt 2 dzurnlocal 68 2006-06-09 15:38
[30;42ma-dir_writeothers_sticky[0m/
drwxrwxrwx 2 dzurnlocal 68 2006-06-09 15:38
[34;42mb-dir_writeothers_NOsticky[0m/
--
View this message in context: http://old.nabble.com/Colorizing-ANSI-Terminal-output-in-TextMate--tp282560…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I'm just trying out -- eagerly -- Alex Ross', er, lasersox's (great
anagram work, btw ;) new Latex2 bundle, which promises (much desired,
much welcomed) speed. Now, I stumble upon a dialogue prompt titled
"pdftex" asking for "Enter file name", to "Send" or "Send EOF" (the
latter, "end of file"?!, cancels everything). I'm stymied (a word I
learned from LaTeX many years ago). What to do? what file to provide?
Of course, falling back to the Latex legacy bundle, TeXing proceeds,
while slowly, uninterrupted. Btw, I'm still on TeXLive-2008 (hell, I'm
still running 10.5, even).
Any help would be highly appreciated (I did look for, but I did not
find any clarifying documentation).
Kindly,
Hans
Hi all,
I'm very join you people. Thanks for developer too for developing so nice and strong
programming editor. An alternative way we can work with Skim. First open Skim and then
textmate no problem occur.
with best regards,
forcp
On Apr 9, 2010, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
> Message: 1
> Date: Thu, 8 Apr 2010 16:37:52 -0700
> From: Steven W Riggins <mailinglists(a)geeksrus.com>
> Subject: [TxMt] merging columns of text
> To: Textmate Mailing List <textmate(a)lists.macromates.com>
> Message-ID: <EB031447-6AE7-4675-8BDC-5C2F5CD83D5F(a)geeksrus.com>
> Content-Type: text/plain; charset=us-ascii
>
> if I have
>
> one
> two
> three
> four
>
> on the clipboard, can I paste it in front of (line by line)
>
> duck
> cows
> chickens
> geese
>
> Thanks! (Simple example of my task)
If your final task is as simple as your example, toss this in a command snippet.
-Roberto.
#!/usr/bin/env python
import os
import sys
from subprocess import PIPE, Popen
selection = os.environ.get('TM_SELECTED_TEXT').splitlines()
if not selection:
print 'Cut text to go second, then make selection for text that goes first'
sys.exit(1)
clipboard = Popen(["pbpaste"], stdout=PIPE).communicate()[0].splitlines()
selection_len = len(selection)
clipboard_len = len(clipboard)
if selection_len != clipboard_len:
sys.exit("Selection (%d) and clipboard (%d) don't have the same number of lines" % (selection_len, clipboard_len))
print '\n'.join([' '.join(x) for x in zip(selection, clipboard)])
I'm setting up a new TextMate environment for work on a new computer and for the life of me
Can't get my AS3 class path preference setup correctly. I'm using Simon Gregory's Actionscript 3 Bundle.
I've already set different variations within the Preferences > Advanced > Shell Variables
For TM_AS3_PATH but it's not finding the directory I have set for that variable.
Is there a setting to set within the flex-config.xml that I'm missing?
Any tips or links would be much appreciated. I've tried the Google machine already.
Thanks,
-Gerry
Hello! I will be out of the office from Monday, April 5th through Friday, April 9th. I will not have access to my email, but I will be sure to respond to your note upon my return on Monday, April 12th.
If you require immediate assistance, please contact our offices at 402-827-3590.
Hello! I will be out of the office from Monday, April 5th through Friday, April 9th. I will not have access to my email, but I will be sure to respond to your note upon my return on Monday, April 12th.
If you require immediate assistance, please contact our offices at 402-827-3590.
Sorry, if this issue has been covered before. I did some searching but came
up empty.
When I try to run a ruby script from within Textmate (command-R), I get the
following error which pops up in a another window:
/tmp/temp_textmate.cX7qBU: line 6: : command not found
I'm running Ruby 1.9.1 and have just installed Textmate on a new iMac i7.
Ruby works fine from the command line, and using "mate xxx" in the terminal
works as well. I'm a newbie with macs and Textmate so forgive my ignorance
is this is something simple.
Thanks for the help in advance.
--
View this message in context: http://old.nabble.com/Ruby-scripts-not-running-tp28137522p28137522.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello! I will be out of the office from Monday, April 5th through Friday, April 9th. I will not have access to my email, but I will be sure to respond to your note upon my return on Monday, April 12th.
If you require immediate assistance, please contact our offices at 402-827-3590.
Paul,
Thanks. That works. Double-clicking on a Mac - who would have guessed?
Geoff
> From: Paul McCann <paul.mccann(a)adelaide.edu.au>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Wed, 07 Apr 2010 09:27:48 +0930
> Subject: Re: [TxMt] New LaTeX Bundle
> Hi Geoff,
>
>> 1. How do I install it? I gather that I download it from http://github.com/lasersox/latex.tmbundle. I did this and a folder called lasersox.latex.tmbundle-b5bbb31 was created. Then what? The instructions in the textmate help regarding bundle installation don't seem to be appropriate at this stage. Perhaps already I am doing something wrong.
>
> No, it's not obvious: the problem is github appending that SHA-ish
> lump on the end of the directory name. If it was just ".tmbundle" you
> could double click and be up and away, but its presence severs the
> extension's connection with TextMate. Just remove the "-b5bbb31" and
> the icon should change. Then you can double click to install.
>
>> 2. Once it is installed properly, will it conflict with the old latex bundle? How can I go back and forth between the two? Will my old custom snippets and commands still work, etc?
>
> They work fine together in my testing, but it quickly becomes a bit of
> a pain to have to select the "2" when typesetting. I guess you could
> just remap the command to typeset in the "classic" latex bundle, but
> given the increased speed and ease with the new bundle I just disabled
> the original one (from the bundle editor).
>
> Have fun,
> Paul
Hello All,
I wanted to take the new latex bundle for a text drive, but I'm not exactly sure how. If someone could give me 'instructions for a dummie' I'd be grateful. In particular:
1. How do I install it? I gather that I download it from http://github.com/lasersox/latex.tmbundle. I did this and a folder called lasersox.latex.tmbundle-b5bbb31 was created. Then what? The instructions in the textmate help regarding bundle installation don't seem to be appropriate at this stage. Perhaps already I am doing something wrong.
2. Once it is installed properly, will it conflict with the old latex bundle? How can I go back and forth between the two? Will my old custom snippets and commands still work, etc?
If there are some elementary instructions posted about this, you could just point me to those.
Thanks
Geoff Vallis
Hi,
Since I started using heavily Xcode lately, I realized that I miss so much few TextMate features while working with Xcode editor.
So I decided to fork BracketMatcher and make few TextMate inspired additions:
http://github.com/nanoant/xcode-bracket-matcher
* Auto closing of brackets and quotes: When you open a bracket or (double)quote, the plugin closes it for you and places the cursor (insertion point) between brackets (quotes).
* Auto deletion of both brackets: When the cursor (insertion point) is between empty brackets (quotes), pressing backspace (delete) removes them both.
* ] always wraps: Pressing ] when there is something selected, wraps the selection with square brackets, rather than replacing whole selection with].
* Whitespace display
Feel free to backport it to BracketMatcher.
Also I did new project:
http://github.com/nanoant/xcode-scripts
... where I gonna put my custom AppleScripts for Xcode. Now there are two:
* Duplicate - that mimics TM's ⌃⇧D
* Add Delimiter - that mimics TM's ⌥⌘↩
Cheers & happy easter,
--
Adam Strzelecki | nanoant.com
Hello! I will be out of the office from Monday, April 5th through Friday, April 9th. I will not have access to my email, but I will be sure to respond to your note upon my return on Monday, April 12th.
If you require immediate assistance, please contact our offices at 402-827-3590.
Hi there,
I have exactly the same problem like Carsten wrote.
But I am on the latest version of TextMate, Skim and OS X, but the problem
still occurs.
OS X: 10.6.3
TM: Version 1.5.9 (1589)
Skim: Version 1.3.5 (53)
Does anybody have a suggestion for me?
Thank you very much!!!
greetings
pooz
Carsten Hoever wrote:
>
> Happens to me as well, in most (all?) cases the problem appears when
> Skim was not opened yet. In this case Skim starts and becomes
> unresponsive after a while without displaying the document. The pdf
> itself, however, is created. If I open that manually in Skim and then
> invoke command+R, changes made to the LaTeX document are updated in
> Skim without any problem.
--
View this message in context: http://old.nabble.com/Skim-freezing-in-SL--tp25938407p28130160.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello! I will be out of the office from Monday, April 5th through Friday, April 9th. I will not have access to my email, but I will be sure to respond to your note upon my return on Monday, April 12th.
If you require immediate assistance, please contact our offices at 402-827-3590.
I know that I can cycle auto-complete options with ESC and get a pop-up with
auto-complete options by pressing Option-Esc, but is there a way to make
this happen automatically? As a noob to some of the languages I'm using I
like to see a list of the options I have on an object.
Thanks.
I just went through a cleanup and organization of my Desktop as it was
getting a bit messy. Part of that mess was the number of TM Project
files that started to collect there. I decided to put them in a
folder and then drag the folder to the Dock so I could get a popup of
the contents, the same as the Documents and Downloads folder.
After I did this I found that that Textmate would open, but the
contents where in red coloring and not available to me. After some
looking I found that files contained the path to my files relative to
where the Projects file was created. I thought that at this point it
would be faster to simply edit the files in Terminal with vi rather
than re-create everything, and also better since I would retain all
the settings that were embedded.
As a test on one of them I changed the path from a relative path (../
Sites/foldername) to an absolute one (/Users/myname/Sites/foldername)
and it opened everything the way I expected. But after I closed the
project in Textmate, I found that the path had once again reverted to
relative again (../../Sites/foldername). I ended up changing a dozen
or more files anyway, and now all is good, but I can't imagine what
the effort would have been if I had many, many projects.
So I guess I am wondering why this is the behavior, and why Textmate
can't use an absolute path which would make management of the Project
files a lot easier. And before someone asks, I do a lot of online
testing of different installations and I like having direct access to
the Projects without having to navigate to them in the Finder and
finding them in the actual folder name. I also don't have the Project
file(s) cluttering up my site files either.
This is my first post to this list, based on the website
recommendation that bundle bugs should be posted here.
I have added several commands to my own bundle for some work. Last
night I added a new command, then worked on it and tested it for about
90 minutes. I didn't see any way to force a save of the command, so I
assumed it was being written out each time I clicked to another
command and clicked back.
However, a while later TextMate hung when I was running another of my
commands and I was forced to kill it.
On restarting TextMate, my new command and all the work in it was
gone, apparently unrecoverable.
Is there a way to force a command to save, or does this mean I should
regularly quit and restart TextMate to avoid this potential loss?
-- Ron
This line also breaks; changing "/100" to "/ 100" fixes it. I'm guessing
regular expression catchers are to blame again:
print $q->br()."<SMALL class=footer>Page
took ".(int(((times)[0]-$stime)*100)/100)."s to generate</SMALL>";
Syntax highlighting on the Perl bundle appears to have a problem. The
following line breaks everything following it because it's matching
the 's' as the start of a text replacement. I tried to fix it but this
bundle syntax is just way too complicated for me.
%foo = ( s=>"bar", f=>"baz" );
Hoping someone out there can provide a fix. Thanks.
Hello,
Is there a way to setup to auto show function pop-up and/or prototype when
typing inside the function scope?
E.g., assuming PHP:
preg_match('[cursor here and a pop-up showed up].
Sorry if it is totally basic, but I searched the manual and the function
pop-up section doesn't tell anything related.
Thanks,
Alfred R. Baudisch
hi, i just recognized that dictionary option is not working properly ? any
idea? when i press control+command+d nothing happens?... that option was
very useful. anyone has same issue? my config is Snow Leopard 10.6.2 and
TextMate Version 1.5.9 (1510)
i'm not sure if this is discussed already... thanks in advance
I have a problem with GetBundles: When I start it, it basically
hangs while connecting to the server. It has been like this for
some time (I do not remember if it ever actually worked for me).
I have tried removing all my TextMate application support folder
but it did not seem to help.
After I close GetBundles, I all the options in the "GetBundles"
menu are greyed out. If I quit TextMate, a ruby process is left,
which I kill manually.
Any suggestions?
I am on 10.6.2, ruby 1.8.7.
Thanks.
I've extended css code-folding to include groups (ala cssedit) by tweaking
the css language file
foldingStartMarker =
'/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*(a)group\s*.*\s*\*\/';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|\/*\s*@end\s*\*\/';
(I didn't write these regex, but I found them here
http://css-tricks.com/forums/viewtopic.php?f=8&t=2783 )
Works brilliantly, but my question is how to extend the css code folding
from within other types of files (like HTML, PHP etc.) Doing a bunch of
one-off pages and it would help greatly.
TIA
saul
Thanks all for the help and comments about the Latex bundle. Sorry if it has gone off topic, but as you can see, I have no way to figure out what is the responsibility of TextMate, of the LaTeX bundle and what has to be handled by something else again e.g. MacTex or TexLive Utility.
I have downloaded and installed MacTex and now when I run the command latex I get "This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)". Says to me that MacTex is also known as pdfTeX and also known as TeX Live 2009. Three different names gets pretty confusing. I also downloaded and installed TexLive Utility which gave me some encouraging feedback and then failed miserably
"2010-03-23 18:11:18 +0000 Notice -[TLMAppController checkVersionConsistency][51322] Looks like you're using TeX Live 2009…good!
2010-03-23 18:11:18 +0000 Notice -[TLMAppController checkVersionConsistency][51322] *** WARNING *** Potential version mismatch between tlmgr and mirror URL http://mirror.ctan.org/systems/texlive/tlnet/2008
2010-03-23 18:11:21 +0000 Notice -[TLMOperation main][51322] termination status of task /usr/texbin/tlmgr was 2
2010-03-23 18:11:21 +0000 Notice -[TLMOperation main][51322] Standard error from `/usr/texbin/tlmgr --machine-readable --location http://mirror.ctan.org/systems/texlive/tlnet/2008 update --list`
tlmgr: package repository ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/tlnet/2008
unusable location ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/tlnet/2008/tlpkg/texlive.tlpdb, could not load any packages
Cannot load TeX Live database from ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/tlnet/2008 at /usr/texbin/tlmgr line 3919."
So I am part of the way there and now lost in another quagmire I have no idea how to fix. I appreciate this is off topic and I have to go find a list that specialises in TeX to sort this and hope they are gentle with me and don't keep pointing me to the command line :D
Lucy
I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond.
From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign
(2) unzip the file mdugm.zip into the root directory of my texmf tree
My questions to the list are
(1) How do I download and install a package with TextMate / the bundle / using the terminal ?
(2) where do I find the textmf directory in SnowLeopard ?
Thanks
Lucy .
I wrote a program in C++ which does some long calculations. For information
purpose it has a "cout" function which tels me about a progress of
evaluation.
I'm used to compile my program via TM with my own boundle-command script
which looks like that:
------------------------------------------------------------
echo "<html><body><pre>"
make | pre
find_name="grep 'NAME=' ./makefile | cut -c 6- "
cmd= `eval $find_name | awk '{print "./"$0}'`
$cmd
echo "</pre></body></html>"
------------------------------------------------------------
My problem is that the standard output (text that "cout" presents) is shown
at once after program is finished (but non during program is running) so I
don't see progress of calculation.
Is there a way for presenting standard output in these case (in real-time)?
--
View this message in context: http://old.nabble.com/Problem-with-real-time-presenting-standard-output-%28…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I'm referring to the reflow comment command in this screencast:
http://blog.macromates.com/2006/customization-screencast/
I have TextMate set to wrap at 72 characters, and currently the command
is not reflowing this text correctly:
/*
* This constructor takes a pointer to a void function that should
* define a set a of transformations to move this cube to its starting
* point in the 3D coordinate system. Transformations include
* translations, scaling and rotation. (Scaling can be performed
* uniformly by using the Cube(float sideLength) constructor.)
*
* Parameters:
* - a function pointer that to a void function with no parameters
*
* Outputs: N/A
*/
When I run the command, bound to ^Q, I get this result:
/*
* This constructor takes a pointer to a void function that should
* define a set a of transformations to move this cube to its starting
* point in the 3D coordinate system. Transformations include
translations,
* scaling and rotation. (Scaling can be performed uniformly by using
* the Cube(float sideLength) constructor.)
*
* Parameters: - a function pointer that to a void function with no
* parameters
*
* Outputs: N/A
*/
(I have hard-wrapped the line in question to indicate that TM is
soft-wrapping here, as the line is longer than 72 characters.)
Here is the command I'm using (copied from the comments on the linked
article):
#!/usr/bin/env ruby
txt = STDIN.read.gsub(%r{\A/|\*/\z}, '')
txt = txt.gsub(/^[ \t]*\*[ \t]*/, '')
txt = %x{ fmt <<< '#{txt.gsub(/'/, "'\\\\''")}' }.chomp
txt = txt.gsub(/[$`\\]/, '\\\\\0')
txt = txt.sub(/(\n(?=\n))?(\n*)\z/, '\1$0\2')
print "/* " + txt.to_a.join(' * ') + " */"
How can I modify this command to reflow correctly at 72 columns?
Thanks in advance,
--
Adam Sharp
www.adam-sharp.net
I'm working on a magento bundle. It is currently on github and getbundles can install it.
so of my work has over lapped with the php completion bundle but some has not.
The php completion bundle won't be able to auto complete for Mage::getSingleton('catalog/product');
Since in magento you use the factory pattern a lot I build my own bundle. What I'm looking for is how many users use magento and what features of a bundle would they like?
The current bundle does the following:
1. Auto complete for classes used in factory methods aka Mage::getSingleton({the classes here});
2. Takes you to a definition of a class
3. Tab trigger for <?php echo $this->__('$1'); ?>$0
The next version will do:
1. Show parent inheritance (80% done)
2. Auto complete for the Mage class (100% done)
3. Take the user to the Magento online class documentation.
Timothy
Hey all,
I'm running the newest versions of both TextMate and WordPress and am
looking to use the blogging plugin to edit/create content on my blog. I have
read the post here:
http://blog.macromates.com/2006/blogging-from-textmate/
And I have posted comments to it with minimal response. I'm wondering if
anyone has got the two to work together and if so, how you did it. Any help
would be greatly appreciated!
Cheers,
Dana W.
Hi TextMate folks.
I've written a little applescript to do what I regularly need to do - open a folder in TextMate if and only if it's not already open, from the command-line. (I have command-line scripts to set up my workspaces for each project for me.) Is there another way to do it? Not that I could see, although it's tricky to keywords-search that one. I kind of feel it should be a command-line option to the "mate" command.
Script is up here:
http://gist.github.com/322512
Comments and criticism appreciated. Please feel free fork it and make your own modifications and improvements if it is useful to you.
Caveats:
I'm no Applescript ninja - in fact this is my first, learn-by-doing foray.It should be clear that I have been working out variable scoping by trial and error. Tidying could happen.
The entire section to bring the window that contains your folder of choice to the front is broken - there seems to be no way to get between window objects and document objects despite what the Applesscript dictionary says, as noted by Alan Watson http://lists.macromates.com/textmate/2009-March/028352.html
If you run it using a path such as "." or ".." instead of an absolute path, textmate will hang. Not quite sure why.
I've assumed you are trying to open a folder rather than a file, and that opening a parent of said folder counts as that folder being already open
Have fun,
Dan
Hey guys,
I was using a bundle(I think) that adds the option "Open link in browser"
(or something like this) to the context menu in a "Plain Text" file, but
last week I was doing some cleanup and accidentally removed it :( Someone
know the name of this bundle?
Thanks in advance :)
--
http://plentz.orghttp://twitter.com/plentz
Hi,
I'm new to textmate (evaluating it) and bibtex and tex, so my question may
be of the newbie variety.
I've got bibdesk working ok, and was able to add citations to my document
using the BibDeskTMCompletions tool. But, when I run Bibtex from the LaTex
bundle menu, I get the following error:
Traceback (most recent call last): File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/bin/texMate.py",
line 471, in tsDirs = find_TEX_directives() File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/bin/texMate.py",
line 306, in find_TEX_directives startDir = os.path.dirname(texfile) File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py",
line 119, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object
has no attribute 'rfind'
I'm guessing it's some problem with an environment variable or something.
Or maybe some python problem? I'm a bit out of my league here, but eager to
learn. Any help would be appreciated!
Thanks,
Derek
Hi
Did anybody succeed in using Textmate for lisp. I get the following error
when I press Apple-key + R:
xcodebuild: Error: the directory /Users/userName does not contain an Xcode
project.
Thanks,
Raj
>Did you check for spaces in path to your graphics file? I had a
>similar problem awhile back that was solved by renaming folders, or
>just moving the pdf to the same directory as the .tex document.
>Kyle H. Ambert
>Fellow, National Library of Medicine
>Oregon Health & Science University
Yes the first thing I did was place the .pdf directly in the folder.
>To set LaTeX preferences in TextMate, press ⌘⌥, or select the menu item “Bundles > LaTeX > Preferences…”
>—Alex
Oh how I know it. I have read all the documentation and I cannot find
anything that tells me exactly what to put in these preferences. In
order to get Textmate to use the same engine that my TeXShop is using.
Anyone else have any ideas??
If I'm editing an open tab in my project, I'd like to be able to
automatically reveal the associated file in the project drawer. Is this
possible?
thanks,
-Morgan
Ok, there is one small feature I need before switching to TextMate from
BBEdit. Is there any way to force everything to be opened in one window? AKA
tabs or a list in the sidebar? My habit is to drag various documents into
the TextMate icon, but having 10+ windows open is a pain.
--
View this message in context: http://old.nabble.com/Forcing-documents-to-open-in-one-window--tp27844492p2…
Sent from the textmate users mailing list archive at Nabble.com.
I'm just getting started with TextMate and want to use it for C++
programming. I'm wondering if people can give me some pointers and tricks on
how to do that (other than the stuff in the C and other bundles, of course.)
Right now, all I'm really using is the syntax highlighting, auto-indent and
brace-matching. Everything else could be done in TextEdit.
One thing I specifically want to do is trigger my projects GNU 'make' script
and then have the output pipped into a TextMate window. Not that hard to
write a plugin for (though if anybody already has one, point me to it.)
However, the tricky part is that I want to link file names in the output to
files in TextMate in case the compiler spits an error at me. That means
either being able to click on something like "./includes/GUI/graphs.cpp:210"
and being taken to that file and line in TM, like a hyperlink, or having TM
put highlights/bookmarks/whatever directly at the line in question. Is this
at all possible?
I've searched Google and this list but I nothing has jumped out at me so far
(though the results are so long for "C++ textmate" that there may be
something buried there I'm not seeing.) If anybody can tell me how they use
TM for writing C++ projects using the GNU compiler tools (g++, make, GDB,
etc.) I'd really appreciate that.
--
-Matt T.
Hi,
I downloaded the zip for the makefile bundle, but I get this errors when
trying to use the bundle. It seems like i'm missing some files in order to
run that bundle effectively, where do I get them?
Error:
/tmp/temp_textmate.HtJz9T:3:in `require': no such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from /tmp/temp_textmate.HtJz9T:3
Ted.
--
View this message in context: http://old.nabble.com/Error-when-running-bundle-tp27843697p27843697.html
Sent from the textmate users mailing list archive at Nabble.com.
I am switching from using TextMate for all of my programing tasks. The
last (and incredibly frustrating) hang-up I am having is getting it to
compile my LaTeX documents. Whenever I add the command
\includegraphics{filename.pdf} to a file it chokes even thought if I
open the same LaTeX document with TeXShop it compiles perfectly. The
output I get even when I am using verbose is not very helpful, even
though I have been using LaTeX for 7 years or so.
I compile in TexShop with the Latex command and it appears from the
log that it is accessing the "/usr/local/texlive/2009" directory.
Further TeXShop is set with the following settings (I have also
attached a screencap of these settings:
Path settings
(pdf)TeX (default: /usr/texbin)
/usr/texbin
Distiller (ghostscript) (default: /usr/local/bin)
/usr/local/bin
pdfTeX
Tex (default: pdftex)
pdftex --shell-escape
Latex (default: pdflatex)
pdflatex --shell-escape
TeX + dvips + distiller
Tex (default: simpdftex tex)
simpdftex tex --maxpfb
Latex (default: simpdftex latex)
simpdftex latex --maxpfb
I am guessing that Textmate must be calling a different version of
latex that does not like to be fed .pdf files.
The PATH that Textmate recovered the first time I tried to compile a
LaTeX document is:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
Is there a way I can set Textmate to use the same engine that TexShop is using?
Thanks,
Robi
Hi guys,
When I was trying to do some interactive input with Perl in TM, I got some
weird output.
For example, I use this script:
#!/usr/bin/perl -w
$pi = 3.14;
print "What is the radius? ";
chomp($radius = <STDIN>);
$circ = 2 * $pi * $radius;
print "The circumference of a circle of radius $radius is $circ.\n";
When I run the script and input "4", the output is this:
4
What is the radius? The circumference of a circle of radius 4 is 25.12.
I mean, when I input "4", I don't see the msg "What is the radius?".
Shouldn't TM first show this msg and then, as the user, I input "4"?
I know that there is some issue with interactive input in TM
(http://blog.macromates.com/2009/interactive-input/). Before I made the
changes mentioned in that thread, I was even not able to use interactive
input in TM. Now I can, but it just seems weird as mentioned above. And if I
run the script in the Terminal, everything is OK - I first got a msg "What
is the radius?", then I input whatever I want.
Any ideas about this?
Thanks,
Jon
--
View this message in context: http://old.nabble.com/Interactive-input-in-Textmate-%28for-Perl%29-tp278167…
Sent from the textmate users mailing list archive at Nabble.com.
For example, if I run a Java program with ⌘-R or typeset a LaTeX file
with ⌘ -T, I will get some version of the following erro:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:169:in
`fcntl': Inappropriate ioctl for device (Errno::ENOTTY) from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:169:in
`run' from
Ideas?
Thank you.
I'm confused about the C++ bundle. I do not have a C++ bundle in my textmate installation. The closest thing I've got is Objective-C++, and extensive searching online does not reveal one. However the tone of all the list discussions of C++ that I've read through looking for a bundle link act like it's a non issue implying it's part of the install. Still I'm ending up with no authoritative link to a bundle. Are my bundles screwed up? Or can someone point me to the current and correct C++ bundle?
Not Make, not Objective-C++, but simply C++. There appears to be a 'C++ Qt', but I strongly hope that is not the current and correct C++ bundle. If it is someone needs a stern talking to.
Thanks,
j