868 Commits

Author SHA1 Message Date
capitaomorte
c454bd2451 * merged from trunk finally (expect more bugs)
* fixed indentation working
* auto-indentation apparently working with dirty hack
* , but did get to see the famous python bug twice,
* contrived existing python snippets are working, even with `yas/indent-line' set to 'auto
* fixed more bugs...
2009-07-16 16:00:02 +00:00
capitaomorte
c15f037874 * enhanced good grace and fixed `yas/trigger-in-field' bug 2009-07-16 06:23:05 +00:00
capitaomorte
5c7e870891 Got to:
* get fixed indentation working
  * merge from trunk
  * try to implement snippet-local vars
  * implement a command `find-snippet-file' that defaults to the dir and sets `yas/snippet-editing-mode'
2009-07-15 16:18:44 +00:00
capitaomorte
63378d00b2 * replaced <tab> by TAB and fixed a small bug in $> indendation 2009-07-15 07:23:13 +00:00
capitaomorte
a1a4bfc773 * "$>" now working
* `yas/hippie-try-expand' fixed to work with new undo system
2009-07-15 07:02:13 +00:00
capitaomorte
4429104dfc * more bug fixes and a global mode 2009-07-14 17:07:42 +00:00
capitaomorte
0ee010ce65 * working on indentation... 2009-07-14 12:57:32 +00:00
capitaomorte
bc7acbaf99 * typed a lot of cleanup code, probably many many bugs
* at least most of the customization group is here I think
* still got a lot to do for the minor mode (including making it global)
* TODO: write wrap regions
* TODO: write per-snippet variable overrides
* goto sleep
2009-07-13 22:19:41 +00:00
capitaomorte
0622075ba9 * yas/next-field' rewritten, now yas/expand' fails... 2009-07-13 07:13:58 +00:00
capitaomorte
953ffbf299 * `yas/next-field' needs to be rewritten to account for unnumbered fields 2009-07-12 20:18:40 +00:00
capitaomorte
3dd0ba6106 * Butchered template choosing code
TODO:

* Still some old syntax to take care of (simple ${field} without number)
* Add messages to snippet events, not just errors
* fix many bugs
* make the customization group
* merge from trunk
...
2009-07-12 19:59:32 +00:00
capitaomorte
01c626efbd * started attack on template code as well
* still got indenting to do
2009-07-11 18:09:25 +00:00
capitaomorte
ad570bf9e5 * region now represented as `yas/deleted-text'
* syntax now correctly backward compatible
* more little bugs fixed...
2009-07-11 17:29:46 +00:00
capitaomorte
555897a4ad * corrected another problem when evaling user elisp with errors 2009-07-11 00:59:27 +00:00
capitaomorte
10e8b41f7c * fixed two small bugs introduced earlier, have to retest stacked
expansion once in a while, wish I had unit tests...
2009-07-11 00:31:56 +00:00
capitaomorte
daf3c788a5 * a little cheating sometimes inserts a newline at end of the buffer... 2009-07-10 15:37:21 +00:00
capitaomorte
460bf76bae * Some little bug fixes, regexps could be cleaner, but oh well... 2009-07-09 16:31:07 +00:00
capitaomorte
39aab51b28 * implemented `yas/points-to-markers' and friend, look OK.
* mirrors only update when something actually changes

* cant reproduce strange undo/redo bug that I think I saw

* escapes apparently working OK

* expressions in fields working OK, but now tested extensively

TODO: Implement the per-snippet exit hook just like the "condition"
      Handle indent the best possible way
      Merge changes from trunk
2009-07-09 16:12:48 +00:00
capitaomorte
dec6fcda41 * primary field transformation working more or less, but seem to have
screwed with undo/redo, shouldn't be too hard...
2009-07-08 13:24:40 +00:00
capitaomorte
9e9f5f477c Commenting... 2009-07-07 17:19:56 +00:00
capitaomorte
7ce15312a7 Commenting... 2009-07-07 17:15:32 +00:00
capitaomorte
e0308fa495 * stacked expansion tricky tricky, but is working and undo/redo seems reasonablt OK
* will try to let the modification hooks do the previous-field advancing but I really don't know if its possible
* also remember to fix the "navigate to deleted field on undo" bug
2009-07-07 16:04:03 +00:00
capitaomorte
5f5e23c829 a minor change, having trouble debugging on mac 2009-07-06 21:38:41 +00:00
capitaomorte
6354579eed * stacked edition not quite perfect yet, otherwise everything looking good 2009-07-06 14:53:01 +00:00
capitaomorte
b56563de60 * stacked expansion is tricky, but can be done
* yas/minor-mode should be needed to expand snippets, this means hooks last while snippets last
* will probably *not* fix this bug: ${1:nested{2:thing}} when "thing" is changed "nested"'s end marker doens't move
2009-07-06 10:08:13 +00:00
capitaomorte
354580b8f7 * field protection problem solved, I guess
* on to the transformations, escapes and indent
2009-07-05 22:28:21 +00:00
capitaomorte
f31a071457 * a little bit of trouble with protection after C-d or deletions, but nothing too serious... 2009-07-05 22:17:22 +00:00
capitaomorte
514243f5b9 * Changed the approach yet again, this is it, this should work... 2009-07-05 20:20:59 +00:00
capitaomorte
97608378d3 * got rid of yas/registered-snippets
* undo/redo much smoother
* hooks last while yas/minor-mode is t (this may be changed)
2009-07-04 20:12:49 +00:00
capitaomorte
0932310893 snippet revival working relatively OK, but need to work on undoing an expansion 2009-07-03 15:04:49 +00:00
capitaomorte
3f9b630d95 * Much better way of calculating a fields visible value, but some subtle bugs.
* TODO: exit snippet if the yas/active-field-overlay is exited
* TODO: kill all field text on first keystroke
* TODO: handle border cases with empty/near empty active field overlays
* TODO: handle escapes
* TODO: handle nested snippets
2009-07-02 21:56:23 +00:00
capitaomorte
f790e77e7c rudimentary undo, very buggy, but this is the way to go 2009-07-02 12:51:08 +00:00
capitaomorte
333d48d731 Going OK, next step is to handler the feared undo/redo! 2009-07-02 09:59:12 +00:00
capitaomorte
25c4e884ae * lookin' good, next step: protecting the hidden overlays from modification somehow... 2009-07-01 22:15:00 +00:00
capitaomorte
42f8345780 Trashed prior implementation of nested snippets and now going full steam on a much better one (I hope...) 2009-07-01 16:58:46 +00:00
capitaomorte
14735e1ba0 Trashed prior implementation of nested snippets and now going full steam on a much better one (I hope...) 2009-07-01 16:58:39 +00:00
Zhang Chiyuan
11a94af52a Added the 'label' snippet for html mode 2009-06-04 13:28:31 +00:00
Zhang Chiyuan
71ab2a18ed More select key for dropdown list (Issue 58) 2009-03-21 15:28:20 +00:00
Zhang Chiyuan
42bb30967b Added a snippet 'prop' for python-mode 2009-03-21 07:08:41 +00:00
Zhang Chiyuan
a01b5eb76c Make initial selection for drop-down. Thanks Brandon Moore. 2009-02-27 15:20:45 +00:00
Zhang Chiyuan
84ac5bd613 Added some snippets for elisp-mode from Xah Lee. 2009-02-25 05:23:31 +00:00
Zhang Chiyuan
28aacbc7c1 Preparing for 0.5.10 release 2009-02-11 09:39:51 +00:00
Zhang Chiyuan
51bd26520c no need for a separate yas/compile-bundle-for-elpa function 2009-02-10 05:34:27 +00:00
Zhang Chiyuan
29d3991eb7 Modified yas/compile-bundle to make the bundle ELPA compatible 2009-02-10 05:29:05 +00:00
Zhang Chiyuan
69bd61b9b2 Added escape syntax rule support for latex-mode 2009-02-08 04:35:18 +00:00
Zhang Chiyuan
842c3a84ce Added a 'template' snippet for c++-mode 2009-02-04 11:08:59 +00:00
Zhang Chiyuan
1ad1be7732 Make the intro doc more friendly to newbie 2009-01-30 05:08:04 +00:00
Zhang Chiyuan
36455f570d Updated the introduction doc, thanks Xah Lee for contributing this description 2009-01-28 11:32:20 +00:00
Zhang Chiyuan
f4dd4094fd Set mime-type for css files 2009-01-28 10:51:02 +00:00
Zhang Chiyuan
34b389d2ad Add svn mime-type to enable online viewing 2009-01-28 10:48:32 +00:00