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?