lifelike
lifelike
Made an attempt to fix dice-parsing and clean up the code, but it still has some issues (currently the old problem with "+0" is back for instance). Will post something...
I pushed a new branch with some tests and a fix for dice that seems to work (but my elisp for parsing numbers is a mess right now!): https://github.com/lifelike/decide-mode/tree/ert-0.10.0
The heuristics now is to put in mini buffer if the buffer is read-only, otherwise insert in buffer. It shiuld be possible to expand that to allow a custom function...
I have been thinking more about this, and my current working theory is that it would be nice to configure this per major-mode. Put an alist there with some modes...
5+ years later... This is what I am planning to implement (and try out a bit on some branch before pushing for real): A buffer-local variable decide-format-output. If it is...
In 0.10.0 this can be configured using decide-format-output.
I like this, but for clearer text I would prefer to have the same markup for dice and tables (and ranges, and choices) eg just []. If someone names their...
The function is called decide-dwim-insert. There is also an old dwim branch where I attempted to improve on that. One part was to make a function that could find all...
The last comment probably should be its own issue? I have thought about adding some more dice-syntax like in other die-rollers, for things like "keep the N lowest", and I...
I think it can be good to have a few small feature requests like that open for discussion and in case someone wants to implement them. Not very high priority...