Changes between Version 14 and Version 15 of PadrePluginSnippet


Ignore:
Timestamp:
Mar 10, 2012, 11:06:16 AM (2 years ago)
Author:
azawawi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginSnippet

    v14 v15  
    11[[PageOutline(2-4)]] 
    2 = {{{Padre::Plugin::Snippet - Draft}}} 
     2= {{{Padre::Plugin::Snippet}}} 
    33 
    4 This is used to document the finding about the Padre::Plugin::Snippets plugin and the {{{TextMate/snipMate}}} integration that I have been planning with {{{bowtie (Kevin)}}} and implementing at the moment in {{{Padre::Plugin::Moose}}}. We will eventually migrate this feature into this plugin once it is mature. 
    54 
    65== Notes 
     
    1110- Cancel current selection when exiting snippet mode 
    1211 
    13 == Workflow 
    14 - Snippet mode OFF: 
    15   - {{{$line}}} = the current line text preceding the cursor 
    16   - Find {{{$trigger}}} for {{{$line}}} and the current active snippet bundle or exit 
    17   - Find the snippet associated with trigger or exit 
    18   - Find all variables in snippet of the form:[[BR]] 
    19     {{{${index:default_value},${index} or $index}}}[[BR]] 
    20     e.g. {{{ $1, ${1:...}, ${1} }}} 
    21   - {{{$cursor}}} = the first variable that has the index of 1 
    22   - Insert snippet 
    23   - Select {{{$cursor}}} in snippet and position the cursor at the end of it. 
    24    
    25 - Snippet mode ON: 
    2612== Sample snippet file 
    2713{{{#!application/x-yaml 
     
    5036has: has '${1:property}' => ( is => '${2:rw}', isa  => '${3:Str}', ); 
    5137}}} 
    52 == TODO 
     38 
     39== TODO == 
    5340 
    5441- Support extended syntax ${index:default_value:list_of_values} 
    55 - Convert snipMate snippets 
    56 - Add mojo snippets to the mix 
    57 - Support a way to set the current subscope 
    58 - Provide a default child document for Perl 
     42- Import snipMate snippets facility 
     43- Import {{{TextMate}}} snippets facility 
     44- Add mojo '''HTML''' snippet to the mix [https://github.com/kraih/mojo-tmbundle/blob/master/Snippets/Template.tmSnippet Template] 
     45- Support a way to '''change''' the current subscope 
    5946 
    6047== Resources