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