Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkib2
    • CommentTimeJan 20th 2007
     permalink

    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.

  1.  permalink

    and what it inserts?

    • CommentAuthori
    • CommentTimeJan 20th 2007 edited
     permalink

    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

    • CommentAuthorkib2
    • CommentTimeJan 20th 2007
     permalink

    Sorry Martin, it inserts :

    _\`my linked text`\

    I’ve passed an hour on this, I think Idyllrain is right : some bug inside the parser ?

  2.  permalink

    Can you test it in release #236, please? I’ve fixed it and I need it confirmed from you. Thanks.

    • CommentAuthori
    • CommentTimeJan 21st 2007
     permalink

    Already tested and its working :)

    • CommentAuthori
    • CommentTimeJan 21st 2007
     permalink

    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 \\.

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    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.

  3.  permalink

    kib2: Upload the bundle somewhere and drop a link here. I’ll check them out and commit to repository.

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    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/

  4.  permalink

    name shortcuts?

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    For example, should we write “ref”, “reference”, “refer” followed by a tab, to obtain :

    reference_

    •  
      CommentAuthordflock
    • CommentTimeJan 21st 2007
     permalink

    tab trigger naming again :)
    The textmate manual has some advice on naming things, icluding tab triggers.

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    Thanks dflock, I’ll take a look.
    how do i regroup my snippets by categories, like in CSS Bundles menus ?

    • CommentAuthormartincohen
    • CommentTimeJan 21st 2007 edited
     permalink

    Look at CSS.itBundle/info.itInfo and you’ll get the idea.

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    Thanks Martin, very usefull :)

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007 edited
     permalink

    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/

  5.  permalink

    and where is the info.itInfo?

    • CommentAuthorkib2
    • CommentTimeJan 21st 2007
     permalink

    oops , sorry i uploaded it in a bad directory :)
    Now, inside :

    h**p://kib2.free.fr/documents/InType/Bundles/reStructuredText.itBundle/

  6.  permalink

    Looks just great, thanx, I’ll add it to repository…