As we've discussed before, the current compiler selection logic (in the
Typeset & View command) is a bit of a mess. Below is a suggestion for how it
might be rationalised. Once we've agreed on a plan, I'm happy to implement
it.
One complication is that it's sometimes useful to have compilation under the
control of a custom script – either one that you've written for your
specific project, or a generic compilation tool such as latexmk. The way
that TeXShop deals with this is to have special program-designators "mytex"
and "mylatex", which signify that a user-specified compilation script should
be used. I propose that we adopt this mechanism.
The first task is to decide on the compilation route to use. This will be
one of: tex, latex, pdftex, pdflatex, xetex, xelatex, mytex, mylatex. I
propose trying the following things, in order:
1. Use the %!TEX TS-program specification in the source file.
2. Use the %!TEX TS-program specification in the master file.
3. Use the value of the $TM_LATEX_PROGRAM variable.
4. Sniff for \usepackage commands that suggest (DVI)latex/xelatex should be
used.
5. Default to pdflatex.
If the resulting value is mytex/mylatex, then:
1. Use the script specified in the variable $TM_LATEX_MYTEX or
$TM_LATEX_MYLATEX,
2. Use the script specified in the TeXShop configuration, if any:
defaults read TeXShop TexScriptCommand
defaults read TeXShop LatexScriptCommand
3. Give up, explaining why.
So, the variables $TM_LATEX_COMPILER and $TEX_PSTRICKS would no longer be
used. For backwards compatibility, we could continue to allow the value of
$TM_LATEX_COMPILER to trump all other considerations (perhaps with a warning
in the compilation window to the effect that this variable is deprecated,
and explaining the new way to do it).
Any thoughts?
Robin
Hi,
I really love TextMate but I hate drawers... I just tried Coda
(http://www.panic.com/coda) and I like its nice UI so, there is any
plan to implement a sidebar like that instead of the actual TextMate
project drawer?
In addition, I'd like to have multiples sidebars like:
- project sidebar
- local/remote file browser sidebar
- class/symbol browser sidebar
- custom sidebar
Luca
Calling all flex/flash/as developers:
We need to come up with a unified bundle design for these technologies. I
talked about about this with Allan and it sounds like there are several
people working on these same things. Here are my recomendations:
AS3 bundle:
Should contain ActionScript 3 language syntax, snippets, etc. that are
relevant only to AS3 as a language. (just as the ruby bundle only contains
ruby stuff and not rails stuff).
Flex2 bundle:
Should contain any extensions to the AS3 bundle that are relevant to flex.
Should contain MXML language syntax, snipptets, etc.
Should contain MXML and AS3 templates for new applications and components.
Should contain commands to build components and applications using the flex2
framework standalone lib. ("FlexMate")
Thoughts? Ideas? Improvements?
-dave
I'm looking for a way to start/stop the rails server (ruby script/server)
from TextMate. Ideally having the output popup and tail in a new window.
I've been trying to find a way to do this or to create an addition to the
bundle to do this but I've just started using TextMate (2 days) and as such
haven't had much luck.
One thing I tried was just having a command run 'ruby script/server' and
having the output as HTML but it didn't work.
Thanks
--
Ryan Galgon
rgalgon(a)gmail.com
I know this was briefly covered once, but I'm afraid I'm not getting
it. If I want to return two arguments with returnArgument:, how do I
change the name of the selector to pass them?
Thanks,
Brett
Is there a Mac OS X sh command for quoting text (to
Internet-standard)? I'm writing a "Save to URL" command to complement
the Twiki bundle "Open URL" command I described in a previous email,
and I need to convert all the "special characters" in the entire
document to the '%xx' quoted form so I can append it to a URL.
If there is no such thing, I'll write a Python script instead.
--
Daryl
Dear all,
I don't know whether this is a common feature request. But
nevertheless, ... ;)
(I also found nothing about it in this mailing list.)
Would it be possible to add the following feature to the normal Find
dialog?
Given a string "c( 1, 22, 333 , 4444 )" in a line.
I want to highlight item by item ('1', '22', etc.) by using the
normal Find function (APPLE+G).
To do so I would write for instance this regexp:
[,\(] {0,}(.*?) {0,}[,\)]
The problem is that the current Find function doesn't select only the
content of the regexp group '(.*?)', it also highlight the commas and
brackets.
My suggestion would be to change the Find function in such a way,
that if there is at least one group specified by '()' within the
regexp it only highlight the content of it. It also could select all
occurrences of it at ones, if desired.
This could be chosen with two options within the Find dialog, e.g.
'Match only group' and 'Match all groups'.
I don't know whether it would cost much effort to do this, but I'd
find it quite useful to have such a option.
Of course, one coud write a separate command using 'Insert Snippet'
but 'Insert Snippet' has some limitations.
Or is there an other way to do it with TM?
Thanks,
Hans
So somewhere along the line did the default markdown bundle loose the
snippets for links? The menu structure seems to be in the bundle
editor, but both the bundle in the app package and in svn seems to of
lost the links? Am I going bonkers here?
Sam D
Hi there,
Just playing with the R console mode. It's nice, so thanks to the writers!
I often want to edit collections (R lists), and it would be nice if tabbing
inside a collection had the action of moving the selection to the next item
in the list.
Would it be possible to write a command (to hard for a snippet, I think)
which takes over the tab key when there is no snippet bound to it, and
detects if the user is in a c(x,y,..) structure, and selects the next item
in the list?
So if the cursor is in item 1 like this
> a = c(1|11,222)
Then hitting tab would move to highlight all of item 2. Preferably hitting
shift-tab would move to the next previous item, or in front of the
collection if already at the head.
PS: One thing that keeps me in R, is the useful last command function (like
in tcsh, hitting "up" and "down" scrolls through a command history,
replacing the current line. Is it possible to scan the doc, make a list of
lines, and just give this as a drop down menu when up is hit hit?