- Filenames can no longer be snippet triggers. Please upgrade your snippet collections.
- Fixed issues 99, 98, 93, 90, 91, 88, 87. Thanks everybody.
- More compliant customization group Issue94, (thanks wyuenho).
- Added workaround for issue 97 in the FAQ
- Small updates to documentation.
- Much more powerful menu. See The YASnippet menu.
- New ways to organize snippets. See Organizing snippets.
- Added
yas/also-auto-indent-first-line
customization variable. - Renamed directive
# env:
to# expand-env:
- Rewrote much of the documentation.
- Added TextMate import tool
textmate-import.rb
to to svn repository (see "extras/") - Added experimental bundle of textmate snippets
yasnippet-textmate-bundle.el
- Fixed Issue 74 (thanks rmartin.k...@gmail.com)
- Fixed Issues 80 through 84 (thanks Moritz Bunkus)
- Fixed many more issues...
- Now byte compiles correctly with no warnings.
- Fixed Issue 68 with
mouse-clicking alternatives in
ido-mode
. - Added
yas/also-auto-indent-first-line
customization variable.
- Nested placeholders of the type
<div${1: id="${2:someid}"}> $0
. - More robust undo/redo support.
- Stacked snippet expansion (snippet in snippet).
- Transformation on a primary field with syntax
${1:default$(transform)}
- Validations on field exit through the
yas/verify-value
primary field transformation. - Wrapping the region in the exit marker
$0
of the snippet. Useyas/wrap-around-region
. - Auto-indentation. Use
yas/indent-line
set to'auto
- Easier definition of snippets. Use
yas/find-snippets
oryas/visit-snippet-file
. In the newsnippet-mode
useyas/load-snippet-buffer
andyas/tryout-snippet
. - Customization group
yasnippet
. - Overriding customization variables in snippets. Use the
env: let-form
template keyword. - Fixed Issue 60
- Fixed Issue 65
- Fixed Issue 56
- Added grouping support so that the snippets in the menu can be groupped together.
- Make the bundle ELPA compatible.
- Fixed the bug of disabling the auto-indenting of
cc-mode
.
- Added a
key
property in snippet definition for snippet names that are not valid path name. - Fixed some bugs of indenting (Issue 44, Issue 46).
- Fixed Issue 45 by
providing a proper default value for
yas/buffer-local-condition
. - Added helper function
yas/substr
for convenient mirror transformation. - Make variable
yas/registered-snippet
properly initialized. - Fixed the overlay error when overlay becomes empty (Issue 49 and Issue 48). This bug has occurred and been fixed earlier, and should not have happened if we have proper regression test.
- Added a workaround for
c-electric-
serial commands (Issue 27).
- Fixed Issue 28 of properly clean up snippet (by joaotavora).
- Added a new section "Field-level undo functionality" to correct Issue 33 (by joaotavora).
- Added some snippets from users for sql, erlang, scala, html, xml, latex, etc.
- Fixed Issue 16 by adding
$>
support. Here's the doc for $> indenting.
- Added a buffer local variable
yas/dont-activate
to turn offyas/minor-mode
in some major modes. See Issue 29. - Make the environment of elisp evaluation more friendly to
(current-column)
. - Fixed the regular expression bug in python-mode snippets.
- Use filename or full key extension for snippet name if no
name
property is defined.
- Tweak
yas/extra-mode-hooks
so that it can be more easily customized. - Add an entry in FAQ about why
TAB
key doesn't work in some modes.
- Added
ox-mode-hook
andpython-mode-hook
toyas/extra-mode-hooks
to fix the problem YASnippet is not enabled in those modes.
- Fix indent of python-mode snippets.
- Fix a bug of dropdown-list: conflicts with color-theme (Issue 23). Thanks Mike.
- Fix a bug of condition system.
- Fix a bug for comparing string to symbol using
string=
(which will fire an error).
- Use a beautiful css style in the document.
- Integrate with hippie-expand. Just add
yas/hippie-try-expand
tohippie-expand-try-functions-list
. - If you set
yas/fall-back-behavior
to'return-nil
, YASnippet will return nil when it can't find a snippet to expand. - Defect fix: the condition of a snippet was evaluated twice in earlier version.
- Deleting snippet (using
C-w
orC-k
) won't cause serious problem now. - Several complex snippet for python-mode from Yasser included in the distribution.
- Merge the latest dropdown-list.el.
- Add snippets for f90-mode from Li Zhu.
- Bug fix: l-safe-expr-p: Lisp nesting exceeds
max-lisp-eval-depth
error when several (more than two) snippets overlaps. Thanks sunwaybupt@newsmth for reporting this bug.
- Bug fix: dropdown-list.el doesn't recognize [return] properly.
- Bug fix: failed to recognize user customized yas/trigger-key.
- Make a separate document package for release. Also make document available online.
- Make sure
yas/minor-mode
's key bindings always take priority to other minor modes.
- Document refinement and released with YASnippet. Most of the Online wiki document will be deprecated soon.
- Powerful condition system added to yasnippet!
- Incorporate
dropdown-list.el
and make it default way for selecting multiple candidates. Thanks to Jaeyoun Chung. - yas/before-expand-snippet-hook
- Enhancement: A better way to define minor-mode. Thanks to Kentaro Kuribayashi. See this thread for more details.
- Bug fix: Emacs get confused when a field is deleted. See issue 10.
- Add a
yas/after-exit-snippet-hook
so that you can do something likeindent-region
orfill-region
after finish the snippet. - Use minor-mode instead of
global-set-key
to bind the trigger key. Now the trigger key and fall-back behavior can be more flexible. Not constrained to<tab>
. Thanks to Trey Jackson. See this thread for more details. - Now user can customize the popup function for selecting multiple candidate for the same snippet key.
- Support
dropdown-list.el
to be a better way to select multiple candidate when in text mode.
- Bug in non-window (-nw) mode when there's multiple candidate to expand. See issue 7.
- Allow expanding another snippet as long as not currently inside a field.
- Added customized face for fields and mirrors. Better in dark background. And users can customize it.
- Fix the insert-behind problem under both Emacs 22 and Emacs 23.
- Use big keymap overlay to detect
insert-behind
event manually to avoid sometimes missed hook calls. See issue 3 for more details. - Support parent snippet table. Now you can set (for example)
cc-mode
as common mode forc++-mode
,c-mode
andjava-mode
. They'll share snippets defined forcc-mode
.
- Add a rake task to upload to google code.
- Use elisp compile-bundle function instead of python scrip
- Embedded elisp support.
- Fields navigation support.
- Mirror of fields support.
- Menu-bar support.
- Multiple snippets with same name support.
- Popup menu for multiple snippet with same name support.
- Transformation of fields support.
- Load directory support.
- Compile bundle support.