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>