Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.
In InType, like in TextMate, $ and ` are reserved characters.
So if you want to insert one of these, how should I escape them ?
I’ve tried to escape with this without success (for reST):
content: "_\`${1:LinkedText}\`"
to obtain i.e :
_`my linked text`
but it doesn’t work.
and what it inserts?
Hmm, some bug with the parser maybe? You should be able to do escape both characters by doing \` and \$. But only \$ works in the following case
'\$${1:linkedtext} $0' => $typedtext
These doesn’t work:
'\`${1:linkedtext} $0' => \`typedtext
'``${1:linkedtext} $0' => typedtext
'`${1:linkedtext} $0' => typedtext
Sorry Martin, it inserts :
_\`my linked text`\
I’ve passed an hour on this, I think Idyllrain is right : some bug inside the parser ?
Can you test it in release #236, please? I’ve fixed it and I need it confirmed from you. Thanks.
Already tested and its working :)
Btw, just wondering, wouldn’t it be better if escaping of the single quote ( ‘ ) character also be changed to ( \’ )? Currently its the only character to be escaped using two single quotes ( ‘’ ). It’d be more consistent to have all the escaping be done as \’, \$, and \\.
Sorry Martin, it works great like idyllrain said.
I’ve written some new reST basic Snippets, how can I share them?
I can put them on my space, but it’s not the place for.
Thanks.
kib2: Upload the bundle somewhere and drop a link here. I’ll check them out and commit to repository.
Hi Martin,
I would like to know how to regroup my snippets by categories, like in CSS Bundles menus (Background/Border/etc.).
I have difficulties being consistent with name shortcuts, have you any advice ?
I’ve put some little ones here, more to come later :
h**p://kib2.free.fr/documents/InType/Bundles/reStructuredText.itBundle/snippets/
name shortcuts?
For example, should we write “ref”, “reference”, “refer” followed by a tab, to obtain :
reference_
tab trigger naming again :)
The textmate manual has some advice on naming things, icluding tab triggers.
Thanks dflock, I’ll take a look.
how do i regroup my snippets by categories, like in CSS Bundles menus ?
Look at CSS.itBundle/info.itInfo and you’ll get the idea.
Thanks Martin, very usefull :)
I’ve updated the reST bundles with a menu, trying to fit with the reST quickref [ To be continued… ]
h**p://kib2.free.fr/documents/InType/Bundles/reStructuredText.itBundle/
and
h**p://kib2.free.fr/documents/InType/Bundles/reStructuredText.itBundle/snippets/
and where is the info.itInfo?
oops , sorry i uploaded it in a bad directory :)
Now, inside :
h**p://kib2.free.fr/documents/InType/Bundles/reStructuredText.itBundle/
Looks just great, thanx, I’ll add it to repository…
1 to 20 of 20