Ticket #383 (assigned enhancement)

Opened 4 years ago

Last modified 3 years ago

Investigate smart snippets

Reported by: rob Owned by: rob
Priority: major Milestone: 0.15
Component: application Keywords:
Cc:

Description

Found a pointer to some emacs lisp to  expand snippets of code that's loosely based on textmate.

Attachments

Change History

Changed 4 years ago by rob

  • status changed from new to assigned
  • milestone changed from 0.7.3 to 0.7.4

Changed 4 years ago by rob

  • milestone changed from 0.7.4 to 0.7.5

Changed 4 years ago by rob

KDevelop uses simple snippets that prompt the user to replace text that is between $ delimiters. I.e. $VAR$ will produce a prompt that asks what to replace $VAR$ with.

It seems the TextMate? way is more like: insert the snippet into the code with the caret placed in the first variable, then tab to the remaining fields.

Changed 3 years ago by https://me.yahoo.com/postrockrob#52e3a

From duplicate ticket #588: ran across a  Trac link] that included some TextMate? snippets. They are in XML, but I wonder if there is documentation enough where I could use that as a format for snippet support and thereby leverage all the TextMate? stuff that's out there?

Changed 3 years ago by https://me.yahoo.com/postrockrob#52e3a

The  E Text Editor has been  open sourced and it has code to deal with TextMate? snippets.

Changed 3 years ago by https://me.yahoo.com/postrockrob#52e3a

Another resource on yasnippets (similar to textmate snippets):  http://yasnippet.googlecode.com/svn/trunk/doc/define_snippet.html

Add/Change #383 (Investigate smart snippets)

Author


E-mail address and user name can be saved in the Preferences.


Action
as assigned
 
Note: See TracTickets for help on using tickets.