atlas-engineer / prompter

Live-narrowing, fuzzy-matching, extensible prompt framework.
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

Overhaul the `%current-suggestion` API #34

Open aartaka opened 1 year ago

aartaka commented 1 year ago

One thing that I'd change before 3.0 is %current-suggestion. It's numbers and offsets, and it's a really inconsistent API, so making current suggestion to actually be a suggestion instead and indexing based on source contents. eq list search is cheap, mental juggling to work with indices is expensive.

Originally posted by @aartaka in https://github.com/atlas-engineer/prompter/issues/29#issuecomment-1778693117