Thanks to Eric Cheng, I was able to update my SWeave bundle from github and it's commands seem to be working correctly. So on to the next problem . . .
TextMate's syntax highlighting in foo.rnw isn't recognizing R code between the "<<>>=" and "@" tags that delimit it, instead it is treated as LaTeX code. This is a problem because R makes frequent use of the "$" symbol, which toggles math-mode in LaTeX. As a result, where I have an odd number of "$"s in a chunk of R code, any LaTeX following that R code will appear highlighted green, as though it were in math mode.
I've read the documentation for scopes and languages, but didn't understand it well enough to figure out where this is going wrong and how to fix it.
Thanks in advance,
Gregory Penn
>
> ya, it doesn't work, tried =/
The assembly languages are all little used enough (I'm guessing) that there
aren't proper language grammars made yet. However they are really easy to
make, just take a look at one of them. Basically just assign variables,
functions, comments, etc to a scope (use the asm language grammars you have
as an example) then use the color options to change the colors. It is not
that hard, I made one for MIPS when I got frustrated with my MIPS project
for school. :)
Brandon
Hi there,
I'm kinda new to TextMate. I was just wondering, is there a way to get TextMate to start up in a certain syntax mode? I only really use the markdown and the C bundles so having it start up in one of those 2 would be perfect.
Thanks
Dan
Hi listers!
This is my first post here. And I'm so sorry to have a so dummy start
but...
I'd like to use TextMate to write Plain TeX (not LaTeX!) papers but I can't
figure out how to do it.
Anyone willing to help me?
Many thanks in advance.
--
ßlue
--
View this message in context: http://old.nabble.com/Plain-TeX-tp31076342p31076342.html
Sent from the textmate users mailing list archive at Nabble.com.
This is another post in what is becoming a series on the LaTeX, R, and SWeave packages. Some strange key-binding behavior has developed since I updated my SWeave bundle through git-hub. The command "SWeave, Typeset & View PDF" works as expected if selected from the bundle menu, which indicates that "command R" is the keybinding for that command. If I use the keybinding, the command does not work correctly, but behaves as it did before I updated the SWeave bundle. This suggests to me that I somehow have two versions of the bundle installed: the correct one is available through the bundle menu and the deprecated one is still controlling keybinding. Does anyone have a suggestion for how to fix this?
I'm encountering a problem with the use of the Command-Control-d shortcut in TextMate on Lion.
Computer: MacBook Air 11" 1.6Ghz Core i5.
OS: Mac OS X 10.7.1
TextMate: Version 1.5.10 (1631)
On starting up the Air for the first time I migrated everything from an external disk.
I have a personal DefaultKeyBinding.dict
When I use the Command-Control-d shortcut in an open file in TextMate on Lion the dictionary popover appears. When I press escape the popover does not disappear. The TextMate window does disappear but TextMate remains running. TextMate's cannot be displayed again by clicking on the Dock icon but can be made to reappear from the Window menu.
After bringing back the window the dictionary popover is still there and cannot be dismissed.
If you're lucky you can still save and quit. If unlucky TextMate quits unexpectedly.
In a clean guest account the shortcut and TextMate behave correctly with no issues whatsoever.
The non disappearing dictionary popover also occurs in TextWrangler and TeXShop 2.43.
All of this behaved correctly in Snow Leopard.
I have tried with clean preferences,with no login items and more. The behaviour persists.
Has anyone else encountered this problem?
Any suggestions?
best
Berend Hasselman
Hi all,
I'm a graduate student struggling up the learning curve with LaTeX and R, and I'm having trouble getting the Sweave bundle for TextMate to work correctly. Here's what happens with the various bundle commands:
If I choose Sweave, Typeset, & View, then foo.rnw file gets typeset and viewed as a pdf, but it doesn't display the R stuff correctly. No .tex file is created.
If I choose Sweave in R, then a .tex file is written if and only if one doesn't already exist. I can then compile the .tex file, which will display the R stuff correctly.
If I then want to edit the document, I have to delete the .tex file and repeat the above steps.
Can anyone suggest how to get Sweave, Typeset, & View to work correctly? Also, I understand that the Sweave bundle at Github is more up-to-date, but I can't figure out how to install it.
Thanks in advance,
Gregory
>
> I think I'm in that early stage where there are one or two key things I
> don't know. The alternative is that I'm hopeless. :)
Hehe in the early stages you probably won't even seeing the edges. :) I
recommend reading all the documentation about Projects, Snippets and
Language Grammars a few times, as well as installing the GetBundles bundle.
Also, press ctrl+opt+cmd+K to bring up a fat menu of keyboard shortcuts.
I'd also read the keyboard shortcut documentation because the shortcuts are
somewhat organized according to their functions (for example,
shift+ctrl+opt+<letter> type shortcuts are used to switch your current
language.
And of course feel free to ask the list, people here are more than happy to
answer.
Brandon
Hello Ron,
Le 22 août 11 à 22:13, RonJeffries a écrit :
> Hi Michèle, Thanks ...
>
> On Aug 22, 2011, at 3:31 PM, Michèle Garoche wrote:
>
>> I suggest you remove the texmate.pid file. It seems to me that it
>> is a sign of something gets wrong.
>> Next, use the second receipt on the page (the one with git clone).
>> You have to create the Bundles folder if it does not exist.
>>
>> Once it is created, just reload the bundles via Bundles menu,
>> Bundle editor, Reload Bundles.
>
>
> Ah. I was expecting to find many bundles already there. Creating and
> doing a suitable git seems to have installed the rspec bundle. Thanks.
No the bundles provided by Textmate about of the box are in /
Applications/Textmate/Contents/SharedSupport/Bundles. You may see them
by right clicking on Textmate in the Applications folder and choose
something like "Display package content" (roughly translated from
French).
The ones under ~/Library/Application Support/Texmate/Bundles are the
bundles that you install yourself, kind of extensions of the original
ones.
This is the same logic for a number of applications on Mac OS X.
>
> Now ... when I %R it, I am getting a message `require': no such file
> to load
> which I take to mean that under TextMate, it's not looking in the
> right place for the gem. It runs correctly under terminal, when I
> just do rspec first_spec.rb at the prompt.
>
> Yet TextMate is not finding rspec ... a pathing issue? Advise me
> please. Thanks,
Not sure.
First try this:
Open whichever file in your project. Select a folder which has tests
in it. Choose Bundles, Rspec, Run Examples in selected files/
directories.
If you want to run a single file, first change the type of the file in
the status bar at the bottom (just after Line:xx Column:yy) to Rspec,
then you can apply cmd-R.
The same applies for a single example, you have to ensure the type of
the file is Rspec before running the spec.
See in Bundle Rspec the various commands.
In case this does not work, you may have to declare the ruby path in
Textmate.
I've installed mine with rvm, so the ruby path is given to Textmate in
Textmate/Preferences/Advanced/Shell Variables like this:
TM_RUBY as variable /Users/whatever/.rvm/bin/rvm-auto-ruby
You have to adapt it to your local installation.
If you have not install ruby with rvm, you should probably (I'm not
sure here) initialize the ruby path in ~/.profile or equivalent. Sorry
I cannot remember how I did it long times ago before rvm appears.
Hope it helps.
>
> Ron Jeffries
> www.XProgramming.com
> I try to Zen through it and keep my voice very mellow and low.
> Inside I am screaming and have a machine gun.
> Yin and Yang I figure.
> -- Tom Jeffries
>
Cheers,
Michèle Garoche
Absolute noob here. New to Mac and to TextMate. Have and am reading the Prag TextMate book. Feel free to send me to a link or such.
I'm trying to run an rspec test under TextMate. I have the rspec gem installed and the test runs under Terminal. Does not run under TextMate, with the require failing. I assume I am missing some path setting or the like in TextMate but can't work out what it is.
I'm told there is an rspec bundle that should "solve" this. I tried what's on this page:
http://rspec.info/documentation/tools/extensions/editors/textmate.html to no avail.
I can't find the rspec bundle on RubyForge and when I try the second suggestion on that page, namely cd ~/Library/Application\ Support/TextMate/Bundles/, I find no Bundles folder under the TextMate folder, just a file, textmate.pid.
I think I'm in that early stage where there are one or two key things I don't know. The alternative is that I'm hopeless. :)
Suggestions welcome. Thanks!
Ron Jeffries
www.XProgramming.com
I try to Zen through it and keep my voice very mellow and low.
Inside I am screaming and have a machine gun.
Yin and Yang I figure.
-- Tom Jeffries
I cannot get TextMate to recognize my git installation
1) Git is installed in the /usr/local/git/bin/git directory
2) I've set up the Shell Variable of TM_GIT to "/usr/local/git/bin/git"
3) I've turned off the PATH variable, as well
But when I try to install a bundle with GetBundles through GitHub, I still
receive the same error. Here's an example:
8/21/2011 18:34:40 TextMate[GetBundles]
Could not install “PHP Drupal” by using
“https://github.com/psynaptic/php-drupal.tmbundle/tarball/master”
sh: git: command not found
Any assistance is appreciated
--
View this message in context: http://old.nabble.com/TextMate-cannot-find-use-git-tp32307720p32307720.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Is there a way to refresh an open file in case the file was changed outside of TextMate?
I use the R Console Bundle and there I have the option to execute R-code and the output is written into another file.
Now I have to reopen this particular file in order to see the changes.
(so I have my script-file open, execute some commands and the output is written to another file (r_res) – but I don't see the newly generated output If this file is already opened– I have to close and reopen r_res to see the newest output generated)
It would be really nice if I could tell TextMate to 'refresh' that file because I know that something was changed in the meantime.
I hope someone understands my problem ;),
Hi all,
I have written a bundle (a macro actually) that edits a file by
finding/replacing characters. However I want to add the functionality for it
to also delete the last character of each line of the document. I tried
using the command moveToEndOfParagraph and DeleteBackward, but it only
deletes the last character of the last line of the document. What command(s)
would I use for the macro to delete the last character of every line? The
number of lines in the document will vary, so I cannot put a hard line count
into the macro.
Thank you for your help.
Keith
--
View this message in context: http://old.nabble.com/Need-help-editing-a-bundle-tp32266863p32266863.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi, I'm a fairly new user to TextMate and love it, in particular the TODO
Bundle, but.
Is there any way to make it recognize TODO's across entire projects (tmproj
etc.)?
I often note them down but as often I forget where I put them.
Thanks :)
Best regards / Med vennlig hilsen
Thor Erik Lie
<http://thorerik.net>
Hi everyone,
I use textmate latex bundle with PDFView to write my documents.
Everything went fine before yesterday ....
I got my registration number and registered my copy of textmate (1.5.10,
1631). Then when I type 'cmd-R' and click the button 'View in PDFView',
things happened, the error massage is:
=====
check_open: Application appears not to understand request
tell application "PDFView" display tex line 5 of file "duvrr_Abeta.pdf"
end tell
Found 0 errors, and 0 warnings in 0 runs
=====
and PDFView also prompts an error with a new window:
=====
The document couldn't be loaded
The document file://localhost/xxx.pdf couldn't be loaded
=====
but it does opens the desired pdf file
I also changed to 'view in TextMate' or 'view in Preview', they are all
right. Only PDFView is in trouble ...
Could you please tell me how to fix it?
Regards,
Hao
I'm using the TODO bundle. It will find all TODO tags in the current file, but will not report all tags in the .tmproj project. The project is simply files in a single directory.
Any help is appreciated.
Thanks.
> When I have a number of files open in tabs - the draw/file-tree can be in any state (folder closed etc). So it's sometimes hard, or just time consuming to locate the current selected tab's file in the tree.
>
> Is there a shortcut does: "show be this file in the draw"
>
> I've had this in other editors - but can't seem to find it in the Menus. Alternatively, is there perhaps a more "Text-matey" way of doing this?
>
> Thanks for the advice.
>
> --
> Phil Cockfield
I recently noticed that the letter template in the Latex bundle stopped
working (TextMate hangs for a second and then does nothing, not even a
console message). I started fiddling with the ruby script that produces the
template document and it appears that the line
me_entry = OSX::ABAddressBook.sharedAddressBook.me
does not work. Commenting out that block and the code that depends on it
makes the template work again. I know so little about ruby it is
embarrassing and consequently have little knowledge on how to fix this. Did
apple change the address book API to Ruby? Perhaps another special case is
need now.
Kyle
Hi all,
I'm editing a man page markup file with a ".1" extension, and I wanted
to get some syntax highlighting, so I installed the official "Man
pages" bundle with GetBundles and set the language to "Man". However,
this produces a hang, and I have to force quit TextMate. (I'm seeing
this on two computers, one running Lion and one Snow Leopard.) If I
restart TextMate and select the same file, the hang recurs.
Is this a bug; or if not, does anyone have any pointers on what I can
do to avoid it?
Thanks,
Jon
I am trying to hunt down a bug somewhere and the was hoping that validate syntax would help me but it is broken on Mac OS X Lion for some reason with a message about:
https://skitch.com/mhenrixon/fpska/textmate
What do I have to do to make it work?
Mikael Henriksson
T: +46 (0) 730 393 200
E: mikael(a)zoolutions.se
W: http://flavors.me/mhenrixon
If I write a long enough single paragraph (or a line) which includes enough
nordic characters (particularly "a" and "o" with umlauts: "ä" and "ö"), the
typing speed while in that paragraph gets very slow. When I switch to a new
line, the typing speed gets back to normal. If I switch back to the
umlaut-paragraph, the typing speed is still very slow.
This problem makes it very hard for me to write text files in Finnish.
Thanks,
Juha
--
View this message in context: http://old.nabble.com/Slow-typing-with-nordic-characters-tp32201911p3220191…
Sent from the textmate users mailing list archive at Nabble.com.
My TextMate now quits immediately on startup. The menu icon bounces once and
then it's gone. It won't show any window. If it matters at all, I have Lion
installed, though TextMate did work on it until yesterday.
I don't see any reports on /Users/[home]/Library/Logs/CrashReporter.
The problem is with only my primary account, if I log on with a guest
account, it works.
--
View this message in context: http://old.nabble.com/TextMate-quits-on-startup-%28Lion%29-tp32200728p32200…
Sent from the textmate users mailing list archive at Nabble.com.