We've discovered (naturally in an unpleasant way)
that TM (1.5.10) will translate CR (0x0d) in a file to
LF (0x0a) on save - even when the Line Endings setting
"Use for existing files as well" is not checked.
This seems like a bug, as it seems the settings are to
leave existing files alone with respect to potential
line ending characters.
Is this a known issue?
Thanks much,
-eric
Hello folks.
After an extended break from Textmate I am very happy with the TM2
alpha and looking forward to getting to grips with this app again.
There was a thread in mid-December about themes where Arlo was looking
to turn of anti-aliasing. Did an answer ever come out? I'd like to
change the default Markdown presentation as I don't like different
fonts in my text files - I've searched but can't find a description of
what can and can't be amended, or how.
Thanks!
Nigel
I've the same problem. I can confirm that folders expand when opening a new
tab under certain (unknown) circumstances.
I think that the folders expansion is what makes Textmate2 not responding.
It takes some minutes to return responsive, it depends on how many folder
levels has to expand.
Being not able to find a way to collapse all the folders back with a single
command, I'm using another way to create files.
Due the fact that neither Finder allows you to create new files, I select
the folder in the TM2 project drawer and open a new terminal from TM2 using
the shift+Ctrl+O shurtcut and operate from there (also because is easier to
add them to git then).
Of all the TM2 bugs this is absolutely the most annoying and work breaking.
--
View this message in context: http://old.nabble.com/TextMate-2-freezing-when-creating-a-new-tab-in-a-larg…
Sent from the textmate users mailing list archive at Nabble.com.
Textmate's Ruby grammar appears to get confused by the
foo = {
"bar" => 42
}
but adding a comment after the closing brace throws things off:
foo = {
"bar" => 42
} # comment breaks indentation
I tend to use "Indent Line" (⌥⌘[) quite a bit, and this behaviour makes it pretty hard to easily re-indent nested data structures, e.g.
data = {
"jim" => {
"name" => "James Jameson"
},
"bob" => {
"name" => "Robert Robertson"
},
"billy" => {
"name" => "William Williams"
}
}
The problem seems to be limited to Ruby mode; other language grammars (e.g. Java, Javascript) seem to be unaffacted.
Am I the only one experiencing this? Any bright ideas?
--
cheers,
Mike Williams
Happy New Year everyone-
I know "scope" probably isn't the right word here, but this is what
I'm struggling with:
I work with a fellow who uses TextWrangler, and for a bunch of legacy
reasons, has language files (Forth) that have no extension to indicate
their contents. I'd love to be able to open these and have them
automatically be parsed as Forth source. This is an obvious solution
for a folder:
[ "cocoa/*" ]
fileType = "source.forth"
But some folders also have other file types in them with extensions:
.txt, .prf ,etc.
So it'd be great to say something like this:
[ "cocoa/*" ]
fileType = "source.forth"
["cocoa/*.{txt, prf}"]
fileType = "text.plain"
and have any text or preferences file be treated as text, and anything
else be considered a Forth source file.
Is this the way that TM2 works? Or are all specifications assumed to
be mutually exclusive?
(And if they are expected to be mutually exclusive, how are glob
conflicts handled?)
Thanks! Charles
Hi,
I'm working in a large project (3000+ files and directories) and can consistently cause TM2 to hang up under the following circumstances:
* In the project file browser, expand a large number of directories, or a very deep directory tree (not sure exactly which, but appears to be related to the number of directories expanded)
* Create a new file in a tab using Opt-Cmd-N
* TM2 freezes.
I've noticed the following symptoms (in addition to the freezing):
* The cursor is not the regular text insertion cursor but is a crosshair.
* The scroll bar in the file drawer appears to periodically jump around
* Spinning beach ball comes and goes
I'm not sure if waiting it out would work, I've waited for a few minutes before force-quitting.
The freezing, etc., doesn't occur if all the top level directories are collapsed. I can create a new document with no trouble.
This is the kind of thing I'm looking at in my project drawer when the freezing happens: http://cl.ly/382p0Z124239253E1M3o. (You can see in that picture that pretty much every directory in the tree is expanded. I think this may have happened the first time I encountered the bug, as I certainly didn't expand all those manually.)
Hopefully that will help you reproduce the bug. Has anyone else experienced this?
Adam
Hi,
Just to say there is a problem with the snippet "Insert Color..." Of Css,
when you have the 2 version of TextMate on you're mac TextMate 2 Call the
"Insert Color..." of TextMate 1 and so you loose the focus, but in the most
of case i'm unable to get the focus back and i will force to "Force Quit"
TextMate 2.
:)
Thanks.
PS : Can you give me a link to convert Tm1 Bundle to Tm2, because i can't
use "Google Closure Compiler" and it's borring to do with Tm1.
Reminder :
- File Browser, Random Expand => http://www.youtube.com/watch?v=X75SprY6nKchttp://www.youtube.com/watch?v=X75SprY6nKc
--
View this message in context: http://old.nabble.com/Insert-Color...-Problem-tp33076043p33076043.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Like many, I have been enjoying playing around with TM2, and have founds lots of things to like; for example, the use of .tm_properties files is great, as is the new file browser. I have, however, discovered a couple issues that prevent me from using TM2 for actual work, which in turn limits my ability to test it out seriously. One of these is probably a trivial issue and the others are minor and cosmetic, so this isn't really directed at Allan (who has more important things to do). However, I wonder whether others might be able to comment:
1) None of the bundle commands seem to work for me (e.g., TODO -> Show TODO List, Python -> Run Script, Mercurial -> Status, etc.) -- they all give the following error:
/Users/pschumm/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/escape.rb:23:in `e_url': private method `gsub' called for nil:NilClass (NoMethodError)
I am using a stock Lion setup (fully updated), with TM Version 2.0 (8971). I admit that I have not tried to look into this more carefully, in large part because I am completely unfamiliar with Ruby.
2) I can't seem to get the Wrap Column indicator line to show up, regardless of what I set Wrap Column to be; also, using the Wrap Column -> Other... menu item doesn't seem to work.
3) The font rendering seems a bit odd, or at least not like it is in TM 1.5, Terminal, etc. In particular, I typically use Monaco 9 pt. with antialiasing turned off. However, when I set TM2 this way, the letters are smaller than they are in an equivalent TM 1.5 or Terminal window and the interline spacing is much larger; in addition, the letters do not appear to be uniformly spaced. Can anyone comment on the possible reason(s) for these visual differences given the same font specification?
Any comments would be much appreciated.
Thanks,
-- Phil
Hi,
Not sure if this has been reported before, but here is how to reproduce the bug:
1. Open a file a.txt with TM2 Alpha.
2. Use another program, say Vim, to edit that file while it is opened by TM2, and save the changes.
3. Switch back to TM2 and the file name (window title) becomes a.txt~.
What should happen:
TM2 should prompt to reload the externally modified file instead of open Vim's temp file.
-Yi
Hi,
Not sure how to cleanly handle this, but I think when the "matching" field explicitly asks for an extension (eg *.xib), that should overwrite "excludeInFolderSearch".
Or maybe there could be a checkbox, or a magical prefix in "matching" that disables "excludeInFolderSearch" for the search in question.
Gerd
There is definitely a bug there somewhere. Just now I had a situation where any keyboard shortcut involving "Alt" would expand a set of folders (not all) in the file browser.
After changing selections a few times in the file browser it stopped as mysteriously as it started.
On at least on two occasions before "Alt" clicking a tab's close button had the same effect.
Gerd
Hello all,
I might be missing something or maybe this feature just didn't make it to the first alpha, but is the there a way to create file in the currently selected folder?
What I end up doing is selecting folder, pressing Alt+Cmd+N to create empty file in new tab and then saving it to apply certain type. Used to be a lot cleaner in older version.
Thanks!
--
Sergey Kuleshov
Not sure if this is a problem with TM2 or the Python grammar, so I’m asking here first.
If I have something like this in a Python script:
# temporarily commented code # followed by an actual comment
the indentation when wrapping is based on the second ‘#’. For example:
I don’t see this behavior with lists in Markdown, so I suspect it’s a problem with the Python grammar. Should I open an issue on GitHub? Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
Hi Adam,
Thank you for your answer. The thing is that the function name is arbitrary(determined by the programmer just like freely named variables)
I can define a function with:
function xyz_any_function_name
...code
end function
The word function and end function are defined as reserved keywords and as such get a color blue(or whatever)
What I was hoping to have is have the arbitrary name of the function "xyz_any_function_name" have a color red when it's defined(after the word "function") or when it's called(after the word "call".
Is that possible?
Thanks
John
________________________________
From: Adam Strzelecki <ono(a)java.pl>
To: John Relosa <john.relosa(a)yahoo.com>; TextMate users <textmate(a)lists.macromates.com>
Sent: Thursday, December 29, 2011 8:55 AM
Subject: Re: [TxMt] Coloring for a function call
> How would I make it so the "my_function_name" has a different color after the "call" keyword ?
I guess you need to group the function name via your lang grammar regular expression and assign some scope to it like "support.function.any-method.yourlang", similar way as you already do keyword scope assign for `call`.
By default themes expect "support.function" scope prefix for standard built-in functions (like time() free() malloc() for C), and "support.function.any-method" prefix for other non-standard, non-built in, user defined functions.
Regards,
-
Adam Strzelecki
Message: 9
Date: Wed, 28 Dec 2011 08:45:02 -0800 (PST)
From: John Relosa <john.relosa(a)yahoo.com>
To: "textmate(a)lists.macromates.com" <textmate(a)lists.macromates.com>
Subject: [TxMt] Coloring for a function call
Message-ID:
<1325090702.17456.YahooMailNeo(a)web121902.mail.ne1.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello,
I am trying to create a bundle where in the particular language after a function definition you would call that function with:
[code....]
function my_function_name
.
.
code
.
.
end function
...more code...
call my_function_name
[/code....]
Now for the question to the TxMt gurus:
How would I make it so the "my_function_name" has a different color after the "call" keyword ??
I have already made the "call" to be a reserved keyword colored blue but if would be nice to have the "my_function_name" function colored red or some other catchy color after the word "call"
Is that possible and what would be the syntax for the bundle?
Thanks in advance.
John
I found Softwrap in Textmate2. This is very useful but for me it is better to have sudo tabs in adjacent line as follows.
before soft wrap
---------------------------------------------------------
class Textmate
def initalize(options = {})
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if yyyyyy
ooooooooooo
else
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
end
end
----------------------------------------------------------
after soft wrap
----------------------------------------------------------
class Textmate
def initalize(options = {})
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if yyyyyy
ooooooooooo
else
ccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccc
end
end
----------------------------------------------------------
I think this should be idealy as follows
----------------------------------------------------------
class Textmate
def initalize(options = {})
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if yyyyyy
ooooooooooo
else
ccccccccccccccccccccccccccccccccccccc
ccccccccccccccccccccccccccccc
end
end
----------------------------------------------------------
How do you think guys?
I have changes now for the Lilypond and LaTeX bundle that I'd like to share.
Are the TM2 "Managed Bundles" at <https://github.com/avian> the
correct place to target?
I didn't see my bundle for Forth there, and I've also made changes to
it. Where's it located?
Thanks!
Charles
Is there a way in Textmate to easily promote or push files from a
development folder to a live folder? Both folders are mapped as network
shares on my Mac, and I just want a way to easily copy the file I am
currently editing in development to a mirrored folder on the live share.
Dreamweaver has this type of "put" functionality built in. Seems like
this would be a common task that many devs would like to automate, so I
have to assume there is a way, but I have not come across it yet.
In TM2 when I open a new window and then open the file browser for that
window, the file browser shows my home directory at the top and then
proceeds to churn away (I guess it is indexing the folders?) and it expands
each and every folder recursively which takes a long time. While this is
happening TM is not usable as I get the spinning wheel. Plus when it has
finished all of the folders are expanded which makes it quite difficult to
browse files without manually collapsing each folder.
I'm first time on TM mailing lists, so don't kick me hard.
I'm wondering if it is possible to add hotkey to switch between File Browser and File View Window?
Also would be cool to be able to open file with a hotkey from File Browser.
Maybe this is odd, bud I didn't find it in archive.
Thanks!
One thing I am missing in TM2 is "Save files when focus is lost".
I'm finding it very difficult to teach myself to edit > save > test in
browser....
Am I missing where that can be set?
If it's not a current feature then I'll toss it on the request pile.
Thanks,
J-
Since C grammar is intended to be the base for other grammars such as C++ or Obj-C it uses `include = '$base'` instead of `include = '$self'` for all recursive sub-block parsing to point back to original grammar (if possible). This works perfectly well for standalone C or C++ file, however when trying to embed C source into other language we get a problem, i.e. for Ruby grammar:
# trying to embed something into Ruby
variable = <<-C
/* we are parsed by C grammar here */
enum {
/* ooops this comment isn't parsed anymore by C grammar but Ruby again! */
}
C
Problem is on '{' which starts new C block, that does `include = '$base'`. Unfortunately $base is Ruby here not C. Same if we change C into CPP in the example above, $base is still Ruby.
I can see two solutions here:
(1) caller should be able to block/change $base i.e. using some new keyword:
{ safeInclude = 'source.c'; }
or
{ base = 'source.c'; include = 'source.c'; }
(2) callee should be able to specify language grammars that are allowed to be base for it.
Or maybe there's already some undocumented solution?
Cheers,
--
Adam Strzelecki