Tim Bates wrote:
> https://github.com/jessegrosjean/quickcursor
>
> Textmate should just include this, as it rocks for using TextMate as external editor for, for instance, an mail.app :-)
> I use it 10 times a day, I?d estimate.
Thanks--I currently use QuickCursor in TM1. That said, the old Edit-in-Textmate remembered formatting properties like quote indentation, which made it easier to parse email messages, color-code the syntax, and so forth. The old Edit-in-Textmate also saved changes every time you hit Command-S; QuickCursor's changes don't render in Mail until you close the window, and sometimes those changes are lost (say, when multitasking from one window to another).
Still, I appreciate the recommendation, because I'm assuming from your message that QuickCursor works with TM2. As mentioned previously, the other functionality keeping me in TM1 is the ability to edit in Web Preview. Does anyone do that in TM2?
jon
Not entirely sure how to reply to the mailing list via email, hopefully
this will work...
Subject: [TxMt] Re: Disabling entire bundles doesnt persist
From: "Allan Odgaard" <mailinglist(a)textmate.org>
> When you disable the item and save, TextMate should create the following
file:
> ~/Library/Application Support/Avian/Bundles/AppleScript.tmbundle/info.
plist
> Does that file appear on your disk?
Hm, I just noticed what was actually happening is instead of updating
AppleScript bundle, it was silently creating a new AppleScript
2.tmbundle, AppleScript
3.tmbundle etc.
> Additionally it updates the index, which is located at:
> ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
> You can check the date of that file. You can also try to quit TextMate,
remove the index, and then relaunch, that will make TM generate a new index.
Thanks, this fixed my problem.
I deleted the index and when TM relaunched, the unwanted bundles are hidden
and disabled in Bundle editor.
I guess it somehow got out of sync
I open the bundle editor, select a bundle (such as AppleScript), and then
untick 'Enable this item'
I then hit CMD-S to save, and at this point AppleScript disappears from the
Bundle menu (which is what Id like to happen)
However, on quitting TM and relaunching, the AppleScript bundle is enabled
once again.
Using build build 2.0-alpha.9515
Is this a known issue, and is there a workaround?
Thanks
Let's say I'm working in a .R file on this block of code:
mtcars_sub <- subset(mtcars, cyl == 6)
mtcars_lm <- lm(mpg ~ disp, mtcars)
summary(mtcars_lm)
I highlight the block of code and send it to the R console. Following this,
I then edit the code block (predictor added to model), so it becomes:
mtcars_sub <- subset(mtcars, cyl == 6)
mtcars_lm <- lm(mpg ~ disp + wt, mtcars)
summary(mtcars_lm)
Can I send the edited code block to the R console, using a keyboard
shortcut, without having to go back and highlight it? This feature is
implemented in RStudio and is something I miss after having switched to
TextMate.
Thanks
Ross
Thanks Rob that was it.
I changed disableIndentCorrections from ‘1’ to ‘emptyLines’ in the Python bundle and it has reverted to the old behaviour.
{ disableIndentCorrections = 'emptyLines';
indentOnPaste = 'simple';
}
Pretty sure I have was using default settings before.
—
Iain
> On alpha.9517 the auto indentation seems to have changed that if you
> leave a blank line after a function TextMate will keep indenting
> subsequent lines.
>
> def boo():
> """docstring for boo"""
> pass
>
> print <— this line is automatically indented unless you use ⌘[
>
> I had a look in the Python bundle and the language grammar is
> unchanged. Am I missing a setting somewhere to revert to the old
> behaviour?
From the release notes…
> It is now possible to set the `disableIndentCorrections` to
> `emptyLines`. This will disable the indent corrections only when
> typing on empty lines, which has been made default for HTML.
I’m sure it has something to do with that, though it doesn’t sound
like anything should change (outside of HTML) if you were still using
default settings. Then again, if you were using default settings, the
behavior you’ve noticed would not be new. (I disabled it a long time
ago.)
I’m using “emptyLines” now just to see if there’s a benefit.
Before, I was using “:true”. I haven’t figured out the difference
yet.
--
Rob McBroom
http://www.skurfer.com/
On alpha.9517 the auto indentation seems to have changed that if you leave a blank line after a function TextMate will keep indenting subsequent lines.
def boo():
"""docstring for boo"""
pass
print <— this line is automatically indented unless you use ⌘[
I had a look in the Python bundle and the language grammar is unchanged. Am I missing a setting somewhere to revert to the old behaviour?
—
Iain
Let's say I have R open and i¹m editing a .R filewith TextMate. In my .R
file I have a line of code like this:
lm(mpg ~ drat, mtcars)
Is it possible to set up a keyboard shortcut, which when pressed whilst an R
object was selected, would send that object to the R console inside a
function.
For example:
I select 'mpg', press COMMAND + OPTION + L, and this object would be run in
the R console as: length(mpg)
I select mtcars', press COMMAND + OPTION + S, and this object would be run
in the R console as: summary(mtcars)
I select 'lm(mpg ~ drat, mtcars)', press COMMAND + OPTION + P, and this
object would be run in the R console as: plot(lm(mpg ~ drat, mtcars))
Thanks
Ross
So I just read on slashdot about GitHub's Atom editor: http://atom.io Yay
cross platform, etc, etc, but nothing that's going to turn my head from
TextMate obviously. Nice to know that others are seeing the light,
however, right?
And then I saw this gem in its up-front feature list:
- Import TextMate grammars and themes
Oh hello there...
In my new AsciiDoc bundle, I've still got a major problem which was one of the reasons I wrote my own bundle - in other words, my attempt to solve this problem by rewriting this bundle from scratch didn't work.
The problem is manifested in various guises, but one of the main ways is that when I scroll up in a long document, the window hesitates for about a second before showing the new window-full of text.
I have come to suspect that this is because of indented soft wrapping. I do not have any indented soft wrapping, and I do not see any indented soft wrapping, and I do not *want* any indented soft wrapping, but various indications lead me to believe that other bundles are trying to impose it upon me in some contexts.
I could try to find all of these contexts and give their scopes different names, but what I would *really* like to do is shelter my main scope (text.asciidoc) from all imposed indented soft wrapping. In other words, I just want to turn this feature OFF. I believe that this will greatly assist the text window in rendering.
How do I do that? I see how to specify what indented soft wrapping *is* for some scope, but is there a setting that just says NO to all indented soft wrapping? Can I say indentedSoftWrap = :false?
(Note that I want to keep soft wrapping; this is a marked-up text bundle, so it has paragraphs that need to soft wrap. But I want to relieve the layout engine of _all_ **indented** soft wrapping, as I believe this is causing the layout engine to suffer greatly.)
Thanks - m.
PS We were just starting to talk about this in an earlier thread when I interrupted the flow, by talking about the problem of a GUI to handle things like this. But now I'm sorry I did that, because I never got to hear the answer. :)
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Is it possible to force specific links in the HTML output window to open
in the default browser (instead of the HTML output window itself)?
Background info: I have a Rails project where the testsuite already
creates a dump of the HTML page for each failed feature spec. Now I’m
trying to extend RSpec’s TextMateFormatter to include links to these
files. Works so far, but I need to open the saved HTML pages in my
default browser so that I have my usual developer tools around for
debugging.
(A possible workaround is of course to drag the link to the browser’s
dock icon. Just being able to click the link would be easier, though.)
Stefan
When I hit Command R in a .py file, I get
warning: Insecure world writable dir /Users/coldrick/Library/Application
Support/TextMate/Managed/Bundles in PATH, mode 040777
Why?
Best regards,
David
When removing the argument of an autocompleted block and pressing return will result in multiple carets spread over 3 lines. (see attached video). Anyone else noticed this behavior? Maybe also in other languages/grammars?
Koen
Hello Textmate list,
I am trying to understand why the knitr.tmbundle is not showing all the
commands in the bundle menu as shown below:
[image: Inline image 1]
It's missing a few commands there, such as "Knit in R". You can try it out
yourself by installing it:
$ cd ~/Library/Application Support/Avian/Bundles
$ git clone git@github.com:lcolladotor/knitr.tmbundle.git
Note that https://github.com/lcolladotor/knitr.tmbundle is forked from
https://github.com/fonnesbeck/knitr.tmbundle as I tried to fix some other
minor issues (uuid conflicts with SWeave bundle, ^< shortcut for "insert
code chunk" macro). The original repo is
https://github.com/textmate/sweave.tmbundle
The menu is incomplete regardless of whether the SWeave bundle is installed
or not.
I tried playing around with the .plist file after reading
http://superuser.com/questions/380371/how-do-i-create-a-new-snippet-in-text…
leading
to https://gist.github.com/9077862 but that didn't work either.
Any tips on how to fix the menu will be greatly appreciated! Right now the
only thing that comes to mind is using the Bundle creator GUI and re-making
the commands, but that sounds like the last option to take.
I'm using TextMate 2.0-alpha.9503 on a Mac with OS X 10.8.5.
Thank you,
Leonardo
Leonardo Collado Torres, PhD student
Department of Biostatistics
Johns Hopkins University
Bloomberg School of Public Health
Website: http://www.biostat.jhsph.edu/~lcollado/<http://bit.ly/LColladoTorres>
Blog: http://lcolladotor.github.io/ <http://bit.ly/FellBit>
In a .Rnw (Sweave) file, if I go to Bundles > latex > TeXcount, I get the
following in the pop up box:
[l;3lm!!! Encountered }without corresponding { !!![Om
[l;3lm!!! Encountered }without corresponding { !!![Om
[l;3lml!! Encountered iwithout corresponding { !!![Om
[l;3lm!!! Encountered iwithout corresponding { !!![Om
[l;3lm!!! Encountered iwithout corresponding { !!![Om
[l;3lm!!! Encountered iwithout corresponding { !!![Om
[l;3 lm!!! Encountered iwithout corresponding {. !!![Om
[l;3lm!!! Reached end offile while waiting for }. !!![Om
[l;3lm!!! Reached end offile while waiting for S !!![Om
[l;3lm!!! Reached end offile while waiting for }. !!![Om
[l;3lm!!! Reached end offile while waiting for }. !!![Om
[l;3lm!!! Reached end offile while waiting for S !!![Om
[l;3lml!! Reached end offile while waiting for }. !!![Om
However, TeXcount works fine in a .tex file. So it looks like the problem
occurs because the .Rnw contains R code.
Is there a way to get TeXcount working in a .Rnw file?
Thanks
Ross
I was measuring the character length of a line using the ‘line:column’ indicator in the bottom left corner of a TM 2 window until I had a reason to doubt its accuracy. I used the count words command to confirm. I have a line with 153 characters, and the ‘line:column’ indicator reads ‘157’ with the cursor at the end (which I would expect to mean there are 156 characters before the cursor). See attached. Why might this be?
--
Quinn Comendant
Strangecode, LLC
http://www.strangecode.com/
+1 530 624 4410 mobile
+1 530 636 2633 office
@qc and @strangecode
The notion that I might be able to build TextMate on my own machine is so cool that I thought I'd give it a try. I got a very long way (thanks to the wonderful instructions at the github site) but when the actual moment came to do some compiling, we choked up:
[1/1] Generate ‘build.ninja’…
[3/993] Compile ‘Shared/PCH/prelude.mm’…
FAILED: '/Applications/Xcode51-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' -c -pipe -fPIC -gdwarf-2 -m64 -mmacosx-version-min=10.7 -isysroot "/Applications/Xcode51-Beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" -funsigned-char -D'NULL_STR="\uFFFF"' -Wall -Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch -Wno-address-of-temporary -IShared/include -fcolor-diagnostics -DNDEBUG -Os -fvisibility=hidden -std=c++11 -stdlib=libc++ -fobjc-abi-version=3 -fobjc-arc -Xclang -fobjc-default-synthesize-properties -fobjc-call-cxx-cdtors -x objective-c++-header -o /Users/mattneuburg/build/TextMate/Shared/PCH/prelude.mm.gch -MMD -MF /Users/mattneuburg/build/TextMate/Shared/PCH/prelude.mm.gch.d -I/Users/mattneuburg/build/TextMate/include Shared/PCH/prelude.mm
error: unknown argument: '-fobjc-default-synthesize-properties'
Is this just because I've installed the Xcode 5.1 beta? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
Citation completion is not working for me in child .tex files. The child
.tex file is in a different folder to the parent .tex file and also the .bib
file. But even if I move everything into the same folder it doesn¹t work.
Is there a way to get citation completion working in a child file?
Thanks
Ross
Make a Markdown document like this (ignore the equal signs, they are just to show you the boundaries of the document content)
===
* One
* Two
Three
===
The Markdown bundle marks "Three" as markup.raw.block. This is wrong. As you'll see if you preview the document, it is the second paragraph of the second-level markup.list.unnumbered.
To make things worse, the bundle turns off wrapping in markup.raw.block, so if "Three" is a long paragraph, now you can't read it because it runs off the right side of the window.
m.
PS Granted, nested lists in Markdown are annoying and incoherent; this is one of the main reasons why I use kramdown instead. Nevertheless, the syntax coloring and wrapping should try not to get in the way of constructing one's document.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
Under Edit Bundles: Themes : Settings : Markup:Heading 1, I tried to change the size of the font to something smaller, but it didn’t seem to work.
How do I change the size of the displayed heading in Markdown mode?
Hello,
I looked around for quite some while now, but everything I found online did
either not apply for TextMate 2 any more or did just not help me to solve my
problem.
I am using:
- OSX 10.9 (latest updates installed)
- TeXLive 2009 (now also 2013)
- latest LaTeX bundle (reinstalled just before)
What happens:
- I open a file that compiles just fine from terminal using pdflatex in
TextMate 2.
- I hit command+r
- The HTML output window opens ans says (twice in different font size, one
on top of other): "Error: Could not open to check for packages." And in a
second line it continues: "This is most likely a problem with
TM_LATEX_MASTER".
- The main TextMate window then also said: "Failure running 'Typeset&View
(PDF)'. Command returned status code 1."
Some more info:
- I do try to compile a simple file, no includes or imports... So I guess I
do not need TM_LATEX_MASTER, do I?
- The LaTeX bundle is set up to use pdflatex.
- Using "defaults write com.macromates.textmate latexDebug 1" does not cause
any additional outputs within TextMates GUI, nor in the Console.
What else did I try:
- I completely reset all TextMate settings (by deleting several folders and
files as suggested somewhere in the net) -- this changed a LOT, my TextMate
was certainly not the same any longer... but error remained the same.
If anybody has ANY idea what the most likely totally braindead and stupid
thing is that I do not see... please let me know... you'd be my personal
hero and I will worship you for weeks... ;)
Thanks,
Florian
--
View this message in context: http://textmate.1073791.n5.nabble.com/TextMate-2-LaTeX-Error-Could-not-open…
Sent from the textmate users mailing list archive at Nabble.com.
I’d like to highlight conflict markers (“<<<<<<< HEAD”, “=======”, …)
across all file types.
I created a small bundle with an injection grammar for this, but it only
works correctly for plain text. It seems that in most source grammars
other rules take precedence (e.g. in Ruby “=======” has the scope
“keyword.operator.assignment.ruby”) and therefore the injection grammar
won’t get applied.
Is there any way to solve this?
Stefan
As you probably know, I'm trying to write a new AsciiDoc bundle from the ground up. When I created this bundle, my tmLanguage file was named untitled.tmLanguage even though I have entered AsciiDoc in the bundle editor as the name of the language grammar. My question is, how can I rename this file asciidoc.tmLanguage? (If I do it directly in the Finder, TextMate simply loses track of the file altogether and thinks I no longer have a language grammar.) m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com