I have the following snippet where the tab $1 is intended to match the
whole string (to be used in LaTeX)
${1:\NMsubject{\textbf{${2:Subject}}}}
However the tab $1 does not match the last two braces - I suspect this
is an issue with the LaTeX and TextMate use of braces.
The snippet below works as expected (but would be no use in LaTeX
${3:someText|someMoreText|${4:Subject}||}
Is there some way to get $1 above to match to the last brace ?
Phil
I'm a new user and I don't have a Unix background, so I am struggling with
Section 21.1. in the manual.
I am attempting to use TextMate as an external editor.
1. It works fine with my various Cocoa apps, with the shortcut showing up in
the Edit menu. No problems here.
2. I need to use TextMate with Tinderbox (a non Cocoa app). Users on the
Tinderbox forum have various ways of doing this, either using the "mate"
command in Terminal, or using a variety of ways of calling this command.
However, my problem is that I cannot get commands via terminal to import
text, or save it back. "mate -h" does bring up a menu of commands, so that
much is working. Quite likely, this is owing to my lack of experience with
the command line.
I have read and re-read section 21.1. but it assumes a familiarity with Unix
and CL operation which is new ground to me.
I would really appreciate a *simple*, assuming-nothing, explanation of what
I need to do to copy contents of a window from my non-Cocoa app (Tinderbox)
into TextMate, and then back again -- presumably using some variant of the
"mate" command via Terminal.
--
View this message in context: http://old.nabble.com/Difficulty-using-TextMate-as-external-editor-tp305546…
Sent from the textmate users mailing list archive at Nabble.com.
I am using TextMate 1623.
I have just gone back to learning PERL and I am now unable to ask for info (<STDIN>). I have scripts that worked previously, and now fail. All of the scripts work on the command line.
Any ideas?
T. Zakharko wrote:
>
> Dear all,
>
> I post this here because I am unsure of who is the current maintainer of
> the Sweave bundle. The help files list Alan Schussman as author, but as
> the bundle has last been updated in 2006 I have no idea if he is still
> responsible for it.
>
> To make the story short: it is sometimes desirable to run Sweave with a
> custom driver. I need it for literate programming documentation style
> where I want Sweave to skip the code parsing to allow for chunks
> containing incomplete R expressions (and I also developed a very simple
> driver that does just that). A probably more common usage would be
> invoking the pgfSweave driver instead of the vanilla one.
>
> An option like
>
> %!TEX SWeave= my_driver
>
> would be very nice. I can hack something like this together on my own, but
> this is a feature which should probably be added to the official
> distribution.
>
> Thank you,
>
> -- Taras
>
P.S. I have patched the Sweave bundle's 'Sweave,Typeset and View' command
with following:
# get the Sweave driver option
DRIVER=`grep -e '^%!TEX Sweave' "$TM_FILEPATH" | sed 's/.*=//g'`
SW=${TM_SWEAVE_WD:=${TM_DIRECTORY}}
if [ -n "$DRIVER" ]; then
echo -e "setwd('$SW')\nSweave('$TM_FILEPATH', driver=$DRIVER)" | R
--no-restore --no-save --quiet | pre
else
echo -e "setwd('$SW')\nSweave('$TM_FILEPATH')" | R --no-restore --no-save
--quiet | pre
fi
This replaces the previous R invocation and works reasonably well. Usage is:
%!TEX Sweave= my_driver
Maybe someone could patch it to the official repo...
--
View this message in context: http://old.nabble.com/Sweave-bundle-feature-request-tp30588762p30594043.html
Sent from the textmate users mailing list archive at Nabble.com.
I have noticed that especially after upgrading to 10.6, TextMate has become more and more crash prone -- especially after switching from another app back to TextMate. I use it mainly in larger LaTeX projects in conjunction with git and nowadays it would crash, two, three times a week. I often switch back and forth between Skim or Preview and Textmate. Hence, I mostly don't lose any data, because I've saved the file before switching apps, but nevertheless, it's quite disconcerting.
Back in the (good old ;-) 10.4 days, TextMate was absolutely rock solid and it was exceedingly rare for TextMate to crash. Are those known issues? Will there be more fixes down the road for 1.5 addresses stability problems? What are the root causes?
Hi,
I try to run a feature with cmd+R and it gives me the following message:
:29:in `require': no such file to load -- spec (LoadError) from :29:in
`require' from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23:in
`' from :29:in `require' from :29:in `require' from
/Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate/feature_helper.rb:1:in
`' from :29:in `require' from :29:in `require' from
/tmp/cucumber-19009.rb:2:in `'
The RSpec specs work fine it's just my features that don't run. I hate
having to switch to console to do this. Any suggestions?
Mikael Henriksson
Tel: +46 (0) 730- 393 200
mikael(a)zoolutions.se
Hi there,
I have Python related issue within TextMate. I am trying to start Python
script directly from TextMate, but it fails.
Here comes the output from Terminal:
michalo:/Users/michalo/test> python simple.py
One
Two
michalo:/Users/michalo/test> cat simple.py
#!/usr/bin/python
import xml.etree.ElementTree as ET
def main():
element = ET.XML("<root><child>One</child><child>Two</child></root>")
for subelement in element:
print subelement.text
if __name__ == "__main__":
# Someone is launching this directly
main()
michalo:/Users/michalo/test> python simple.py
One
Two
michalo:/Users/michalo/test> python --version
Python 2.6.1
However, if I use Python bundle to start this script directly from the
TextMate (Bundles -> Python -> Run script) I get following error:
ImportError: 'No module named etree.ElementTree'
module body in xml.py at line 3
import xml.etree.ElementTree as ET
copy output
Program exited with code #1 after 0.19 seconds.
If I start it from TextMate Bundles -> Python -> Run script (Terminal)), I
am getting following error:
Traceback (most recent call last):
File "/Users/michalo/Documents/work_files/public/notes/python/xml.py",
line 3, in <module>
import xml.etree.ElementTree as ET
File "/Users/michalo/Documents/work_files/public/notes/python/xml.py",
line 3, in <module>
import xml.etree.ElementTree as ET
ImportError: No module named etree.ElementTree
michalo:/Users/michalo/Documents/work_files/public/notes/python>
Do you know what can be the source of the issue?
That's what I get from the Terminal windows (when I try to get Python
version):
michalo:/Users/michalo/test> which python
/usr/bin/python
michalo:/Users/michalo/test> python --version
Python 2.6.1
michalo:/Users/michalo/test>
And you can find attached screen shoot from text mate. I have created simple
text file:
which python
python --version
And executed it with: Bundles -> Shell Scripts -> Run script
Does anyone have an idea what's wrong here?
Cheers
Michal
A recent attempt to update bundles returned
"sh: git: command not found"
But in terminal, I see
bash-$ git --version
git version 1.7.3.1
which is something new. What's happening?
I'm running TM Version 1.5.10 (1623)
Model Identifier: MacBook5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
with OS X 10.6.5