In my .tm_properties file I have the following:
[ text.html ]
tabSize = 4
[ source ]
tabSize = 2
If I edit a javascript file then I correctly see tabs taking up two spaces.
If I edit an html file then tabs are seen as four spaces. If I embed
javascript in the html file the tabs within the javascript code are now
taking up 4 spaces. Pressing Cmd-Shift-P shows the following scope:
text.html.basic
source.embedded.js.html
attr.rev-path.xhtml.html.about.misc.views.templates.WEB-INF.webapp.myproject.curt.Users
attr.os-version.10.8.6
attr.scm.svn
attr.scm.status.H
So it appears that the text.html.basic scope is taking precedence over the
source.embedded.js.html scope. Is there a way to have this behave in the
expected manner so that my javascript settings are honored when embedded in
html?
Thanks,
Curt
TM2 (at least in Ruby) seems to treat words as what the compiler sees,
rather than what the developer sees.
For example, in the following ruby code...
def some_variable
@so
end
With the cursor after '@so', when you hit escape, nothing happens. Given
that (from the developers point of view), the accessor method for
'some_variable' and the instance variable name for the same are the same
things, shouldn't that complete properly?
The same goes with symbols. This code has a similar problem...
before_filter :some_method
def some<cursor>
So far, this has probably been one of the frustrating issues in TM2 for me.
Is this going to be fixed/changed?
Hi,
I've got favorites for “lib” and “LIB” set, pointing to two different
locations. That works fine when I switch the file browser to the
favorites (with the heart shape icon), but in the command-shift-O
dialog, I only see one of them.
I know I can rename the favorites and probably will do that, but
shouldn't these two views into the favorites list behave similarly, at
least when I have no subfolders?
Christopher
Is it possible to change the key combination used for completion? Escape is a very far reach given how commonly I use completion. If not, I'll just have to resort to keyremap4macbook.
Thanks,
Connor
On Jan 30, 2012, at 6:00 AM, textmate-request(a)lists.macromates.com wrote:
> Date: Mon, 30 Jan 2012 11:10:32 +0000
> From: "ld(a)ldaley.com" <ld(a)ldaley.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: TM Bundle for Java - Improved Java Properties
> grammar
> Message-ID: <6ACE76A4-AF40-4943-AA54-0805C2990BDA(a)ldaley.com>
> Content-Type: text/plain; format=flowed
>
> On 29 Jan 2012, at 6:15, John Joyce wrote:
>
>> Hello List,
>> After ages of consternation with viewing Java Properties files that
>> had multiline values in KVPs not properly syntax colored, I have
>> created a better language grammar for Java Properties.
>>
>> It does several things...
>> First it captures comments of course.
>> Then single-line KVPs
>> Then KVPs with dangling spaces or tabs between the key and the = sign.
>> (These stand out awesomely during fast scrolling to find where they
>> are and fix them)
>> Then multi-line-value KVPs.
>>
>> One can never be 100% sure of these things, but I feel fairly
>> confident with it because the multi-line-value KVPs I have dealt with
>> are actually HTML emails stored in KVPs. :)
>>
>> By the way, it looks best in Sunburst them.
>>
>> Please consider it for inclusion.
>
> If you submit a pull request for
> https://github.com/textmate/java.tmbundle I'll happily include it.
>
> Thanks!
>
> LD.
Submitted pull request.
Thanks,
John Joyce
Oddity:
My cursor ist placed after the "h" in the tag that should become "h1". The tag has been produced using "Insert open/close tag with current word" but without anything selected. I just typed the "h".
when typing the "1" the snippet inserts weird stuff underneath, where the text "Headline 1" is (see second screenshot).
could someone with a little more expertise have a look at the snippet and possibly fix it? I have no idea why that happens.
Thanks,
Thomas
Hello List,
After ages of consternation with viewing Java Properties files that had multiline values in KVPs not properly syntax colored, I have created a better language grammar for Java Properties.
It does several things...
First it captures comments of course.
Then single-line KVPs
Then KVPs with dangling spaces or tabs between the key and the = sign. (These stand out awesomely during fast scrolling to find where they are and fix them)
Then multi-line-value KVPs.
One can never be 100% sure of these things, but I feel fairly confident with it because the multi-line-value KVPs I have dealt with are actually HTML emails stored in KVPs. :)
By the way, it looks best in Sunburst them.
Please consider it for inclusion.
zipped for your unzipping pleasure.
Thanks,
John Joyce
Sorry if this has been covered, but I couldn’t find a mention of it.
Is there a “Filter Through Command” in TextMate 2 (8998)? Was it re-implimented as a bundle item or something? I can’t find it and the old shortcut doesn’t seem to bring it up.
--
Rob McBroom
<http://www.skurfer.com/>
Dear Sir or Madam:
http://jpfly.com/woaint.php?fuducampID=38
Thu, 26 Jan 2012 8:40:39
______________
" At the commencement of winter, Artichoke plants should be protected against frost, which sometimes destroys them in our climate" (c) Kailene vtk5945