Hi,
being new to this list, let me introduce me: I’m doing professional (La)TeX typesetting and LaTeX programming, mostly for educational and/or scientific publishers.
I’m also quite new to Textmate (TM). I came across TM looking for a replacement for my long-time editor AlphaX (that I used from the days it was named Alpha 6 and run on Classic -- more than 15 years by now), registering almost instantly as TM seemed to suite all my needs. But …
I'm using also TeXShop (TS) which AlphaX run directly to do the TeX thing; so, one could determine TS’s actions by including a shebang-like line in the first line of the input, e.g.,
---
%!TEX TS-program = pdflatexmk
---
This would cause TS to use latexmk and pdflatex to typeset the document.
So, at last, the question: is there a way to get TM to use this (maybe by running TS instead of the TeX binaries directly) or is there something similar in TM?
… with regards from Ladenburg:
-MWL-
--
Martin Wilhelm Leidig, Nadlerstr. 6, D-68526 Ladenburg, Germany
Professional TeXing, TeXnical counselling, and TeX hacking
Dante e.V. Member #1580
Dear Steve,
thank you for your answer.
I tried the following:
(1) I went to "Bundles" => "Bundle Editor" => "Show Bundle Editor"
(2) navigated to "R Console (R.app)" => "Send Document / Selection to R.app"
(3) created a copy and called it "Send all before cursor to R.app"
(4) for this new command, I went to "Command(s)" and replace the line saying: rawText="`cat`" by: rawText = "`head -$(($TM_LINE_NUMBER-1))`" as you suggested
(5) I used the "Key Equivalent" "shift + apple-key + R"
Now when I executed the command, a lot of weird things happened [I work with Version 1.5.8 (1505) on Mac OS X 10.6.7]:
1) A window pops up, saying "Sending task to Rdaemon.." and then "Rdaemon is busy..." and it seems that every line of the file is sent ...
2) A new file named "console.Rcon -- Rsession" popped up. It had two tabs: The first one is labelled "console.Rcon" and contains the sign ">", the second one is called "r_res" and is empty.
3) nothing is executed in R [R is also not opened etc].
Do you know what's going wrong?
Cheers,
Marius
Hi guys!
I'm currently trying to figure out which editor/IDE to use for my
Python development. (I just started learning Python.) :)
My finalists are WingIDE, TextMate and MacVim (with lots of plugins and config).
If I read the doc correctly, TextMate only has command completion
(will complete print() and so on), but not CallType stuff, like
suggesting .upper(), .lower() and so on on a string object. Right?
WingIDE (and VIM) has this, but it lacks the templates TextMate has –
with it's tab completion and stuff automatically added.
(As I understand it, this is just a limitation of the current Python bundle,
but it should be able to implement – if someone wanted/had the time
and skills ...)
I tried adding pysmell and the pysmell bundle, but I don't think it
made too much difference ... (Unless I did something wrong.)
Vi(m) I've used for ages, so it's an old friend, and I do get
completion and popup of methods with description and such.
But still I think it would be hard emulate the interactive
templates/functions in TextMate ...
On the other hand, TextMate is quite cool, maybe I should buy it
anyway ...
Best regards,
--
Phil S.
Dear textmate-experts,
I use textmate to program in the statistical software R. To execute an R script, I typically first select the lines and then use "Apple-key + R" which launches "Send Selection/Document to ... R.app". In order to execute all lines before the current cursor position, I also first select all lines (with "Apple-key + shirt + up"). But that shifts the view to the top of the document, which is a bit tedious. Is there a simple way to tell textmate to execute all lines before the current cursor position?
Cheers,
Marius
Stephen said:
>What's the search expression? Chances are that's what's causing the
>problem. It's very easy to write a simple expression that (in any
>engine) takes a very long time to evaluate. perldoc perlre has some
>examples, IIRC.
Hi!
Search expression was something like:
\{\"[\d\s]+\",\"\",\"[\w\s]+\",\"[\w\s@-_\+]+\"\},
After an hour after I sent that email, I killed the process. I
couldn't let it run anymore... was too frustrating.
I then wrote a quick ruby script and did it that way. It finished in
seconds. TM has some serious issues with newlines... because it runs
100000x faster when the replacement statement has no "\n" characters
and when the text you're running the regexp on is not one long line.
Give it a try on your own test data.
Thank you for a message! I appreciate it for trying to help.
Melanie
Hello all,
Today I installed ViMate and was disappointed at its lack of features. (plus
the overlapping escape key-bindings)
So, I wanted to uninstall it, but I don't see a "ViMate.tmplugin" folder in
the ".../TextMate/PlugIns" path.
Now my word completion is not working.
I've deleted TextMate and reinstalled it, but ViMate did not go away.
I spent couple hours trying to figure out how to uninstall ViMate from
TextMate, but I had no luck.
Can someone please help me uninstalling ViMate?
Thanks!
Dru Kepple wrote:
> On Apr 18, 2011, at 11:31 AM, Dushan Mitrovich wrote:
>
>> The keyboard shortcut Cmd-Opt-O is supposed to toggle between Insert and
>> Overwrite modes, but on my system it does nothing. I've looked at Keyboard
>> Shortcuts under System Preferences to see if there are any conflicts,
>> but didn't
>> see any. Anybody have any suggestions for getting this to work?
>>
> Most common culprit is a bundle shortcut overriding the app shortcuts. Try this: Press Control-Command-T, in the little magnifying glass drop down choose "Key Equivalent" and then type Cmd-Opt-O, and see if any results show up. This will be language-scope-aware, so do this in the files you normally work in.
>
> Another suggestion might be to use System Preferences to assign it to something else, and see if that works.
>
> +dru
>
Dru, thank you, your suggestion led me to find the interfering culprit.
I have something called 'sidenote', whose shortcut for unfurling from
the left screen edge was just the shortcut that Textmate uses for the
insert/overwrite toggle. Once I changed that one to a different
shortcut, Textmate's toggle began to work.
This prompts two questions:
1 - how does one alter Textmate's shortcut keys?
and
2 - is there an OSX utility to list all of a system's shortcuts to help
the user avoid conflicts?
#2 may be asking too much, tho.
- Dushan
Hi guys,
My first post to this list because this seems to be the best way to get some
help :)
I've had some issues with TM's regexp in the past (it was slow) but today
I've experienced just how slow it is. My TM has been "locked up" for over 11
hours now and all because I ran a simple regexp on a small file (file is
composed of one line, JSON formatted data, which is approximately 10000
characters long). My CPU is at 100% and all my fans are on at high power.
The replacement regexp is something like '\n$1,$2,$3\n'. That's it. From my
short experience with TM, it seems to have some serious issues with regexp
and especially regexp that adds new lines to a document. TM just can't
handle it well.
I have some questions...
1) Since I have some unsaved files and can't terminate TM because TM doesn't
automatically save unsaved 'buffers', is there a way to quit this thing and
retrieve my unsaved changes?
2) Why is TM so painfully slow when running regexp and especially regexp
that creates new lines? Is there a bundle that uses some other regexp engine
that doesn't suck so much?
3) Why doesn't TM use multithreading so that running one thread doesn't lock
up the whole app? How about a progress indicator or a cancel button??
4) Why doesn't TM save unsaved buffers automatically like almost every text
app out there (even TextEdit does it)?
Thanks for any help... I find TM interesting but extremely lacking at very
basic editor things. It's starting to frustrate me.
Melanie
I'd asked this before but got no response, so I thought I'd try one more
time
as it's bothering me:
Using latest release (v.1631) under OS X.6.5.
The keyboard shortcut Cmd-Opt-O is supposed to toggle between Insert and
Overwrite modes, but on my system it does nothing. I've looked at Keyboard
Shortcuts under System Preferences to see if there are any conflicts,
but didn't
see any. Anybody have any suggestions for getting this to work?
Thanks.
- Dushan
Since I've never had good luck with symlinking in the Library folder,
I created a little applescript app that lets me push or retrieve my
settings from a hidden folder in my Dropbox. It's working great for
me so I thought I would share!
At this time it will:
1. Grab TextMate themes, bundles, settings, etc. from
~/Library/Application Support/TextMate and ~/Library/Preferences
2. Store them in a hidden folder in your DropBox called .MateSync
3. Download them onto another machine.
It won't:
1. Work if you don't have your Dropbox in ~/Dropbox
2. Save backups (Dropbox should do this for you)
3. Transfer TextMate.app to your Dropbox. If you make GUI changes,
you have to sync those yourself.
https://github.com/johnvilsack/SyncMate
Please let me know if anyone finds this useful!
- John