Changes between Version 13 and Version 14 of PadrePluginSnippet
- Timestamp:
- 03/06/12 15:52:13 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PadrePluginSnippet
v13 v14 1 [[PageOutline(1-4)]] 1 [[PageOutline(2-4)]] 2 = {{{Padre::Plugin::Snippet - Draft}}} 3 2 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. 3 5 4 == Notes ==6 == Notes 5 7 - '''Snippet mode''' can be entered through '''<trigger><TAB>''' 6 8 - '''<trigger>''' should be matched on a '''word boundary''' that ends with the current position … … 9 11 - Cancel current selection when exiting snippet mode 10 12 11 == Workflow ==13 == Workflow 12 14 - Snippet mode OFF: 13 15 - {{{$line}}} = the current line text preceding the cursor … … 48 50 has: has '${1:property}' => ( is => '${2:rw}', isa => '${3:Str}', ); 49 51 }}} 50 == TODO ==52 == TODO 51 53 52 54 - Support extended syntax ${index:default_value:list_of_values} … … 56 58 - Provide a default child document for Perl 57 59 58 == Resources ==60 == Resources 59 61 - [http://www.vim.org/scripts/script.php?script_id=2540 snipMate on vim] 60 62 - [http://manual.macromates.com/en/snippets TextMate Manual/Snippets] 61 63 * [http://www.zalas.eu/how-to-use-textmate-like-snippets-in-vim How to use snipMate] 64 \\ 65 **{{{__END__}}}**
