Commit Graph

284 Commits

Author SHA1 Message Date
Pragmatic Software afcb4a0f98 Factoids: unescape certain symbols after expansion 2020-06-17 04:11:18 -07:00
Pragmatic Software 13cb0f9dc6 Factoids: sorting unnecessary for weighted selection 2020-06-17 02:24:46 -07:00
Pragmatic Software a2c918c94e Factoids: remove unnecessary statement 2020-06-16 21:29:47 -07:00
Pragmatic Software 914e844f11 Factoids: add weighted list selection; factadd list a:weight(1) b:weight(2) 2020-06-16 21:26:09 -07:00
Pragmatic Software 0b94ada897 Factoids: fix issue where pick_unique() could repeat a selection 2020-06-14 22:34:24 -07:00
Pragmatic Software b3ca5e69cd Factoids: expand_factoid_vars(): special-case Perl's $a and $b, etc 2020-06-12 18:57:01 -07:00
Pragmatic Software eb9b18cf37 Factoids: fix potential infinite recursion in $var expansion 2020-06-12 12:05:25 -07:00
Pragmatic Software 9b0696b898 Factoids: minor style clean-up 2020-06-12 01:53:25 -07:00
Pragmatic Software 1d98efe9b0 Factoids: expand_factoid_vars(): support multi-line text 2020-06-12 01:37:55 -07:00
Pragmatic Software ead2d5d55f Factoids: correct recursive $var expansion 2020-06-12 00:02:32 -07:00
Pragmatic Software 90b23d5391 Factoids: Fix typo and edge case 2020-06-11 23:34:53 -07:00
Pragmatic Software d81482a5c5 Factoids: restore select_indefinite_article to $variable expansion 2020-06-11 23:03:14 -07:00
Pragmatic Software 78de682320 Factoids: refactor and improve $variable parsing and replacement 2020-06-11 22:51:40 -07:00
Pragmatic Software af7573a20a Factoids: Selectors now fix leading indefinite articles; i.e. a %(orange) -> an orange 2020-06-10 23:06:08 -07:00
Pragmatic Software 5676d6f13b Factoids: improve nested selectors 2020-06-07 15:22:48 -07:00
Pragmatic Software ef072602fa Factoids: test enabled for definedness 2020-06-07 00:12:09 -07:00
Pragmatic Software a40b443c66 Factoids: improve nested Selectors such that %(%(f|b)oo):pick_unique(2) -> foo boo 2020-06-07 00:07:52 -07:00
Pragmatic Software 03fb043ec6 Factoids: significantly improve expansion modifier parsing 2020-06-04 02:28:11 -07:00
Pragmatic Software 20febe7ccd Factoids: add quick-and-dirty early version of :join() modifier with many broken edge cases 2020-06-03 20:47:18 -07:00
Pragmatic Software 128c3014c7 Factoids: Selectors can now be nested within each other 2020-06-03 20:11:41 -07:00
Pragmatic Software 5e574624b4 Factoids: Remove debug statement 2020-06-02 22:41:19 -07:00
Pragmatic Software a3a7319497 Factoids: add %(a|b|c) syntax to select a random item 2020-06-02 22:25:09 -07:00
Pragmatic Software 158b13006c Factoids: minor whitespace reformatting 2020-05-31 15:32:05 -07:00
Pragmatic Software 945b81f12d Factoids: properly set range for pick $variable modifier 2020-05-30 02:47:08 -07:00
Pragmatic Software 0a4ef4eb40 Factoids: change sort+/sort- to +sort/-sort in $var modifier 2020-05-30 01:28:59 -07:00
Pragmatic Software 2e3fed5bae Factoids: more improvements to $variable expansion:
* removed debug code
* index() with a negative value will index from tail end
* improved handling of trailing modifier punctuation
2020-05-30 01:03:07 -07:00
Pragmatic Software 6f9170ecbc Factoids: improvements to $var modifiers 2020-05-29 23:05:51 -07:00
Pragmatic Software 76863dea5c Factoids: strip quotes from pick() $var modifier 2020-05-29 22:34:29 -07:00
Pragmatic Software 9a165a129c Factoids: fix index() $var modifier 2020-05-29 22:22:22 -07:00
Pragmatic Software 669bf7460c Factoids: add more :modifiers to $var expansion: index(x), pick(x, y), enumerate, etc 2020-05-29 22:18:07 -07:00
Pragmatic Software b57fea8120 Factoids: fix export errors upon exit by correcting atexit registration order 2020-05-29 20:43:07 -07:00
Pragmatic Software beef46f120 Variables such as $0 can now be escaped, e.g. in `factset`, etc 2020-05-21 19:23:30 -07:00
Pragmatic Software fdc8cd54d5 Factoids: fix spelling of cmd_factfind in interpreter() 2020-05-04 23:49:59 -07:00
Pragmatic Software a26411fbc4 Factoids: remove debug statement 2020-05-02 23:54:49 -07:00
Pragmatic Software 33f8c5aeab Factoid rate-limit no longer affects factoids piped/substituted/splitted within the same command 2020-05-02 23:49:29 -07:00
Pragmatic Software cfba96e8ae Rename $stuff to $context throughout 2020-05-01 20:59:51 -07:00
Pragmatic Software cac4ac81ad Factoids: Fix undo/redo via DualIndexSQLiteObject 2020-03-19 18:58:24 -07:00
Pragmatic Software 55115d8d16 Factoids: improve "No such factoid" message when no matches found 2020-03-17 23:08:56 -07:00
Pragmatic Software e28d664cd5 Factoids: /msg caller for unknown command instead of silently disregarding 2020-03-04 09:56:22 -08:00
Pragmatic Software 3ff232decd DualIndexSQLiteObject: refactor get_each() to use array instead of hash 2020-03-03 07:40:23 -08:00
Pragmatic Software 941b3327c6 Factoids: Optimize export_factoids() with get_each() and get_next() 2020-02-29 01:46:29 -08:00
Pragmatic Software b178b718f0 Factoids: DualIndexSQLiteObject->get() is now powerful enough to replace FactoidsSQLite 2020-02-27 11:14:43 -08:00
Pragmatic Software c489b6eac7 Factoids: replace get_all_by_trigger() with DualIndexSQLiteObject->get() 2020-02-26 17:48:34 -08:00
Pragmatic Software 5d3dca94b9 Factoids: Optimize find_factoid() 2020-02-26 02:32:22 -08:00
Pragmatic Software e24835ea95 Switch over to SQLite backend for Factoids 2020-02-26 02:29:02 -08:00
Pragmatic Software 891a586409 Factoids can now be run as background processes and have process-timeout override 2020-02-16 16:31:06 -08:00
Pragmatic Software a6b2f60175 Tidy things up 2020-02-16 08:41:45 -08:00
Pragmatic Software fe56b9f0db Tidy things up 2020-02-15 15:16:38 -08:00
Pragmatic Software 5c4e10a35c Tidy things up 2020-02-15 14:38:32 -08:00
Pragmatic Software dc7cdd8a2c Add ProcessManager and Modules
Improve everything to behave nicely with ProcessManager and Modules
2020-02-14 18:52:41 -08:00