| Version 6 (modified by azawawi, 15 months ago) (diff) |
|---|
This is used to document the finding about the Padre::Plugin::Snippets plugin and the TextMate/snipMateintegration that i have been planning with bowtie (Kevin).
Notes
- Snippet mode can be entered through <trigger><TAB>
- <trigger> should be matched on a word boundary that ends with the current position
- Shift-TAB traverses all variables (circular is a useful snipMate feature). Does not break snippet mode.
- Movement keys and deletion: Up/down/right/left/page up/page down/home/end/delete automatically exit snippet mode
- Cancel current selection when exiting snippet mode
Workflow
- Snippet mode OFF:
- $line = the current line text preceding the cursor
- Find $trigger for $line and the current active snippet bundle or exit
- Find the snippet associated with trigger or exit
- Find all variables in snippet of the form: $1, ${1:...}, ${1}
- Find the first variable that starts with with 1
- Snippet mode ON:
Resources
Attachments
- PadrePluginSnippet.png (22.6 KB) - added by azawawi 15 months ago.
-
mac_look_gnome_shell.png
(40.0 KB) -
added by bowtie 15 months ago.
food for thought only
