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
For anyone like me who is searching how to actually install 3rd party
bundles into TM2, getting confused by the older posts here mentioning
Avian folders and what not, here's my micro-summary how it currently
worked for me, pretty easy, using Gerd's MultiMarkdown as an example:
1. Go to
~/Library/Application\ Support/TextMate/Managed/Bundles
2. git clone git://github.com/gknops/MultiMarkdown.tmbundle.git
This creates the MultiMarkdown.tmbundle folder
3. Restart TM2
That's right, no cache deleting required, the MultiMarkdown bundle
appeared both in the Bundle manager and in the list of installed
bundles under Menu->Bundles.
Also, the multimarkdown command (that I installed with homebrew) was
automatically found and used by the bundle.
As often, this turned out to be easier than I thought. ;)
Thx everybody,
Michael
PS.: Using TM2.0-alpha.9387 on 10.8.2