Opened 6 years ago

Closed 2 years ago

Last modified 2 years ago

#175 closed enhancement (fixed)

Advanced snippets

Reported by: kaare Owned by:
Priority: major Milestone:
Component: Code Snippets Version: 0.21
Keywords: Cc:

Description

Ticket #97 requested a snippets feature. It was closed with the following features

  • List snippets by programming language, context sensitive to what is in current editor window
  • Add, edit snippet
  • Insert text anywhere in a document

But to have it do anything really usefull we need

  • Quickly insert text (perhaps this will be done with ticket #151
  • sub argument unpacking with or without $self
  • Boilerplate for a script, class
    • It needs to be closely tied to typing text
    • It needs to indent things properly
    • It needs to leave the cursor at a useful location
    • It may have other useful locations registered and provide an easy way to jump between them
    • It may have mirrored input, so you don't need to enter the same text twice (names)
  • Look at Emacs yasnippet, Textmate

Change History (3)

comment:1 Changed 3 years ago by szabgab

  • Component changed from editor to Code Snippets

comment:2 Changed 2 years ago by bowtie

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 2 years ago by azawawi

Padre::Plugin::Snippet handles this.

Note: See TracTickets for help on using tickets.