777 Commits

Author SHA1 Message Date
capitaomorte
84e9294074 * having trouble with that menu... 2009-07-20 06:36:26 +00:00
capitaomorte
fe8dd70072 * a million new bugs introduced by a million new features, enough for today... 2009-07-19 17:00:11 +00:00
capitaomorte
02117f65e6 * better menu, more bugs found/fixed
* auto-indent bug and a lot more stuff could be made much easier if I
  had known about marker-insertion-type s!!
2009-07-17 14:40:44 +00:00
capitaomorte
399852d10a * as one of the final touches, have to make the menu a
"easy-define-menu" thing
2009-07-16 21:07:37 +00:00
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
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
capitaomorte
795c08dddc 2009-01-23 14:38:15 +00:00
capitaomorte
50e7af74fa * Fuckin' more complicated than I thought. Think I'll have to sanitize
the `buffer-undo-list' once in a while
2008-09-19 16:40:50 +00:00
capitaomorte
9fa6f3533e * Getting there, getting there, `yas/push-undo-action-maybe' has to be
modified to adapt to new arg list and use `pushnew'

* A `yas/cleanup-snippet' action has to be pushed on `yas/expand' 

* expanding a new snippet with a snippet already active must render
  the previous one disabled. This shouldn't be a field, it should be
  found out on the fly. disabled means its big overlay is coloured
  some other color.

* transformations have to be accounted for

* code has to be cleaned up and thoroughly commented.
2008-09-18 21:43:28 +00:00
capitaomorte
d117ee3857 * Nice try reviving snippets. 2008-09-18 15:08:20 +00:00
capitaomorte
94e6ee5503 * Simplified passing of info between pre and post-command-hook 2008-09-18 08:25:34 +00:00
capitaomorte
9aa2cc6486 * Cleaning up some code and preparing for complete snippet undo/redo,
with nested snippets
2008-09-17 16:36:30 +00:00
capitaomorte
aa75b00b55 * Only the full snippet undo/redo missing. Fields are quite OK, I think.
* Also the mirror and primary transforms would be nice.
2008-09-15 08:58:48 +00:00
capitaomorte
5a3b161219 * Much closer to getting this all working, undo, redo and nested
stuff. Works most of the time but:

  1. Consider getting rid of the `deleted' state of a group and using
  some other criteria to discover if user can move to a
  group. `deleted' is only for subgroups anyway, i think.

  2. Consider adding information about restoring boundaries in the
  yas/group itself. This way,

  a) upon `yas/snippet-cleanup', start and end marker could simply be
     set to nil and deleted.

  b) `yas/undo-restore-active-group' could recurse down subgroups
     restoring them as well. (maybe without specifically moving to
     them, but OK.

  3. Don't forget to correct `yas/update-mirrors' to correctly use the
     transformations in the mirror fields.
2008-09-12 18:34:52 +00:00
capitaomorte
d9cb83dc93 * I like. Very nice. New undo scheme is powerful for completely
emulating Textmate behaviour I think.
2008-09-12 13:35:57 +00:00
capitaomorte
38ce2aac82 * Nice! Getting there with this scheme, undo and everything! 2008-09-12 13:19:34 +00:00
capitaomorte
d5695a34cb * Almost removed the field-overlay stuff, preparing for using simple
markers.
2008-09-10 17:00:23 +00:00