Hi,
Bundle actions can be accessed through the gear pop-up in the status bar in TM1 with ⌃⎋ but
the shortcut does not work for me in TM2.
Is there a new shortcut?
Best regards
Alain Matthes
When I save any file from TM2, it writes "Hello World" over the file I'm
trying to edit. After the save, the edited file is still displayed in TM. I
deleted and reinstalled TM2 (but not the supporting files), but that had no
effect on the problem. At the moment, TM is unusable. I have auto update
running in TM.
--Lewy
I am trying to install the new Gist bundle and although I click on install
and never get any error message directly, if I go to the log file I see
that the bundle editor has cancelled the request.
What do I need to do?
Ken
Hi,
I have a grammar where a definition starts with a certain sequence, and the definition is ended with an empty line (optionally containing whitespace):
{
begin = 'PATTERN';
end = '^\s*$';
patterns = ( { include = '#some-stuff'; } );
},
My problem is that some of the repository rules in '#some-stuff' define blocks (eg { ... } ), and these blocks seem to 'escape' the frame set by the rule above and eat up empty lines. Example:
PATTERN my first rule
PATTERN my second rule
PATTERN { not actually starting a block because followed by empty line
PATTERN } not actually the end of the block because preceded by empty line
So here the problem is that TM interprets the { } as block, even though the 'outer' rule should limit the part parsed by the repository rules to the empty lines between the last two definitions.
Any way to fix this?
Thanks
Gerd
Hi all,
when using TextMate2 with (modern) Fortran I found that the implementation of derived types does not support the access attributes. For example,
type node
integer :: i
end type node
looks nice, while inserting the "public" or "private" attributes as in
type, public :: node
integer :: i
end type node
does not produce a consistent coloring (see also the attached screenshot1.png).
In an first attempt to resolve the problem, I changed the the corresponding entry in the Fortran-Modern Grammar from
{ name = 'meta.type-definition.fortran.modern';
comment = 'Type definition';
begin = '(?x: # extended mode
^\s* # begining of line and some space
(?i:(type)) # 1: word type
\s+ # some space
([a-zA-Z_][a-zA-Z0-9_]*) # 2: type name
)';
end = '(?x:
((?i:end)) # 1: the word end
\s* # possibly some space
(?i:(type))? # 2: possibly the word type
(\s+[A-Za-z_][A-Za-z0-9_]*)? # 3: possibly the name
)';
beginCaptures = {
1 = { name = 'storage.type.fortran.modern'; };
2 = { name = 'entity.name.type.fortran.modern'; };
};
endCaptures = {
1 = { name = 'keyword.other.fortran'; };
2 = { name = 'storage.type.fortran.modern'; };
3 = { name = 'entity.name.type.end.fortran.modern'; };
};
to
{ name = 'meta.type-definition.fortran.modern';
comment = 'Type definition';
begin = '(?x: # extended mode
^\s* # begining of line and some space
(?i:(type)) # 1: word type
(,\*(?i:(public|private)?)) # 2: optional access attribute
\s+ # some space
([a-zA-Z_][a-zA-Z0-9_]*) # 3: type name
)';
end = '(?x:
((?i:end)) # 1: the word end
\s* # possibly some space
(?i:(type))? # 2: possibly the word type
(\s+[A-Za-z_][A-Za-z0-9_]*)? # 3: possibly the name
)';
beginCaptures = {
1 = { name = 'storage.type.fortran.modern'; };
2 = { name = 'storage.modifier.fortran.modern'; };
3 = { name = 'entity.name.type.fortran.modern'; };
};
endCaptures = {
1 = { name = 'keyword.other.fortran'; };
2 = { name = 'storage.type.fortran.modern'; };
3 = { name = 'entity.name.type.end.fortran.modern'; };
};
which made things even worse (screenshot2.png). I tried several other versions, with no essential improvement.
Can anybody give me a hint how to resolve the problem?
Regards,
Joerg
True,
but in TM2 You have to download the bundle Rails to turn on the "HTML (Rails)" feature witch is included into the HTML scope in TM1
Didn't know that
Cheers,
--
Ronan
Hello,
I tried to use a different font and theme when I write latex, however it does not work and I can not figure out why.
~/Library/Application\ Support/TextMate/Global.tmProperties:
# Version 1.0 -- Generated content!
encoding = UTF-8
fontName = SourceCodePro-Regular
fontSize = 13
[ attr.file.unknown-type ]
fileType = text.plain
###################################################
~/path/to/latex/.tm_properties:
excludeFilesInBrowser = "!*.tex"
[ text.tex ]
spellChecking = true
spellingLanguage = 'de'
theme = 71D40D9D-AE48-11D9-920A-000D93589AF6
fontName = GaramondPremrPro-Capt
fontSize = 18
###################################################
I tried some alternatives but did not find a solution.
I read about some kind of textmate2 console. Were do I find it?
Christian