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
Hey All,
recently I can’t seem to update GetBundles-installed bundles, getting
the somewhat unhelpful “could not install…” error in logs:
04/18/2011 00:40:55 TextMate[GetBundles]
GetBundles – version 1.2 – Hans-Jörg Bibiko - bibiko(a)eva.mpg
GetBundles' DIALOG runs at token 1
Cache File lists 1037 bundles. Last modified date: Sun Apr 17 11:00:01 UTC 2011
04/18/2011 00:41:13 TextMate[GetBundles]
Installing “CSS Extended”
Could not install “CSS Extended” by using
“https://github.com/gordonbrander/css-extended.tmbundle/tarball/master”
04/18/2011 00:42:30 TextMate[GetBundles]
Installing “Apache”
Could not install “Apache” by using
“https://github.com/textmate/apache.tmbundle/tarball/master”
04/18/2011 00:43:06 TextMate[GetBundles]
Installing “HTML”
Could not install “HTML” by using
“https://github.com/textmate/html.tmbundle/tarball/master”
These bundles are all showing up as xxx days old. I’m using TextMate
Version 1.5.10 (1631), and I‘ve tried deleting and reinstalling
GetBundles.
Any idea what I should do to get bulk-updating working again?
peace - oli
Hi, I'm currently working on updating the Smarty language grammar, and I
would like to reference an external file. That way I can edit the grammar
in textmate without being forced to copy and paste it back and forth into
the bundle editor to test it out. Can I do that?
Also, is there a better way of editing bundles and language grammars
directly than in that tiny non-colorful bundle editor window?
Thanks for your help!
Brandon
Hi everyone,
I am trying to use textmate from commandline as: mate file.txt but it
doesn't work anymore after adding /sw/lib to my DYLD_LIBRARY_PATH. This is
annoying because I want to be able add "/sw/lib" to my path as I have some
programs there I want to use. How can I fix this issue?
[CODE]dyld: Symbol not found: __cg_TIFFClientOpen
Referenced from:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /sw/lib/libTIFF.dylib[/CODE]
--
View this message in context: http://old.nabble.com/Problems-starting-textmate-from-command-line-tp314141…
Sent from the textmate users mailing list archive at Nabble.com.
Allan Odgaard-4 wrote:
>
> On 28 Oct 2010, at 21:12, Martin wrote:
>
>> [...]
>> I'm having a similar problem with the ruby on rails bundle when
>> generating partials (shift-ctrl-h) and using ruby 1.9.x.
>> I set TM_RUBY with rvm to several versions. ruby 1.8.7 runs fine,
>> every 1.9.x not.
>>
>> I don't want to set TM_RUBY to 1.8.7 because then every script I run
>> with cmd-r uses also 1.8.7.
>>
>> Isn't there a other solution?
>
> I think you have it backwards.
>
> You should set your PATH so that ruby 1.8.x is found first.
>
> Then set TM_RUBY to your 1.9.x ruby.
>
> That way, all commands in TextMate should use 1.8.x but command R will
> use 1.9.x for your own scripts.
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
That does not work for me. My path is set to :
/usr/local/bin:/Users/mhenrixon/.rvm/gems/ruby-1.9.2-p80@global/bin://Users/mhenrixon/.rvm/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/X11/bin
if I run "which ruby" from the terminal I get the following output:
/usr/local/bin/ruby and if I do ruby -v I get 1.8.7 but TextMate still gives
me crap:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in
`to_plist': An object in the argument tree could not be converted
(ArgumentError)
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in
`request_string_core'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in
`request_string'
from /Users/mhenrixon/Library/Application
Support/TextMate/Bundles/Haml-TextMate.tmbundle/Support/bin/create_partial_from_selection.rb:22:in
`<main>'
What can I do now?
--
View this message in context: http://old.nabble.com/Git-Bundle-plist-errors-tp28225818p31389643.html
Sent from the textmate users mailing list archive at Nabble.com.
I am sure it was asked before, but a search in the archives didn't turn up a solution.
I am writing my master's thesis and I need to include C-code in my document.
I would like it to be colored and have line numbers.
There is a nice Copy as RTF command in Textmate that would do everything I need, except it doesn't
work, if I add line numbers manually because this obviously breaks the code structure and highlighting
breaks. So the line numbering will have to be done after the code is colorized.
I would like to have RTF text since I want to paste it into Word later. (Maybe I shouldn't use Word O_o )
I am sure some of you have had the same problem and maybe someone has a working solution.
I also couldn't find any commandline tool that would read and write rtf line by line, which would
be a simple post-processing step then to add the numbering.
It might be possible to change the original Copy as RTF Bundle, but having a quick look inside it was
a bit tricky to find where to add the necessary code.
Help is greatly appreciated.
Thomas
Brandon M Fryslie <bmf(a)email.arizona.edu> wrote:
> I think having "smooth scrolling" on can cause this. You can turn it off in
> System Preferences -> Appearance.
>
Thanks, Brandon, that did the trick.
- Dushan
Dushan Mitrovich wrote:
>> 2 - On a muli-page file the PgUp and PgDn keys have weird behavior:
>> instead of scrolling up or down a page at a time, the window jumps all
>> over the place. For example, on a 5-page textfile and starting with the
>> window about 4 pages down, hitting PgUp puts the window at about page 2,
>> hitting PgUp again puts it at page 3, hitting a third time puts it at
>> the start of the file. This makes no sense to me at all. OTOH,
>> clicking on the scroll bar moves the window one page up or down as you
>> would expect. What might be causing this behavior?
http://screencast.com/t/TvARFTEz This short screencast describes the problem
and shows troubleshooting.
I am getting an error
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/bash_init.sh:
line 27: dirname: command not found
Whenever I run Show TODO List for my Rails application.
I'm assuming this is a path problem but cannot find the source. The only
other recent change I made was deleting an extra copy of ruby that was in
the /opt/ directory.
BASH_ENV=/Applications/TextMate.app/Contents/SharedSupport/Support/lib/bash_init.sh
/bin/bash -xc 'echo test'
+ unset BASH_ENV
+ export LC_CTYPE=en_US.UTF-8
+ LC_CTYPE=en_US.UTF-8
+ set +u
+ [[ -d /bin ]]
+
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/local/mysql/bin:/Library/PostgreSQL/8.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/bin
+ [[ -d /bin/CocoaDialog.app/Contents/MacOS ]]
+ [[ -d '' ]]
+ export PATH
+ : /Users/kevin/Library/Application Support/TextMate/bash_init.sh
+ [[ -f /Users/kevin/Library/Application Support/TextMate/bash_init.sh ]]
+ export RUBYLIB=/lib
+ RUBYLIB=/lib
+ textmate_init /Users/kevin
+ [[ /Users/kevin != / ]]
+ [[ /Users/kevin != /Users/kevin ]]
+ [[ -f /Users/kevin/.textmate_init ]]
+ [[ /Users/kevin == / ]]
+ echo test
test
--
View this message in context: http://old.nabble.com/Show-TODO-List-fails-with-directory-error-tp31370629p…
Sent from the textmate users mailing list archive at Nabble.com.
How do you set the ruby path for the "command R" in textamate. I removed
ruby 1.9.2p0 because I have p136 installed via RVM and have it set as
default. But TM is still using 1.9.2p0. I removed 1.9.2p0 from RVM and
"Command R" stopped working. I tried reseting the patch as it requested but
that did not work either.
It seems to work fine for me. I would try checking your line endings, make
sure you are using the newest version of TextMate, make sure you have
Regular Expression checked in the find box, and make sure there isn't any
whitespace at the end of the lines.
Brandon
> I piped the output of a command to a text file as such:
sudo dscl . -list /Users UniqueID ~/Desktop/unique_id.txt
and opened the file with TextMate:
open -a TextMate.app ~/Desktop/unique_id.txt
I did a simple regex lookup " 9$" (looking for an ID of '9') and hit the
Find All button (i.e. the operator ?). This yielded 0 results however when I
hit the next button, it would have a result.
I think having "smooth scrolling" on can cause this. You can turn it off in
System Preferences -> Appearance.
>2 - On a muli-page file the PgUp and PgDn keys have weird behavior:
instead of scrolling up or down a page at a time, the window jumps all
over the place. For example, on a 5-page textfile and starting with the
window about 4 pages down, hitting PgUp puts the window at about page 2,
hitting PgUp again puts it at page 3, hitting a third time puts it at
the start of the file. This makes no sense to me at all. OTOH,
clicking on the scroll bar moves the window one page up or down as you
would expect. What might be causing this behavior?
Hi,
I piped the output of a command to a text file as such:
sudo dscl . -list /Users UniqueID ~/Desktop/unique_id.txt
and opened the file with TextMate:
open -a TextMate.app ~/Desktop/unique_id.txt
I did a simple regex lookup " 9$" (looking for an ID of '9') and hit the Find All button (i.e. the operator ∑). This yielded 0 results however when I hit the next button, it would have a result.
Bug?
Regards,
Alex
I'm using the latest release (v.1631) of TextMate under OS X.6.5 and am
still experiencing a couple of unexpected problems:
1 - The keyboard shortcut Cmd-Opt-O, which is supposed to toggle between
Insert and Overwrite modes, does nothing. I can make that switch by
going to the menu -- Edit -> Mode -- and clicking on Overwrite Mode, but
this is inconvenient when I need to make that change often. I've looked
at Keyboard Shortcuts under System Preferences to see if there are any
conflicts, but saw none. Any ideas what the problem might be?
2 - On a muli-page file the PgUp and PgDn keys have weird behavior:
instead of scrolling up or down a page at a time, the window jumps all
over the place. For example, on a 5-page textfile and starting with the
window about 4 pages down, hitting PgUp puts the window at about page 2,
hitting PgUp again puts it at page 3, hitting a third time puts it at
the start of the file. This makes no sense to me at all. OTOH,
clicking on the scroll bar moves the window one page up or down as you
would expect. What might be causing this behavior?
Thanks.
- Dushan Mitrovich