atlas-engineer / prompter

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

libraries/prompter: Resurrect `return-*` API #26

Open aartaka opened 1 year ago

aartaka commented 1 year ago

We had a nice function in Prompter before atlas-engineer/nyxt#2655: return-selection. It was a nice, actionable, discoverable name, quite rooted in both programmer lingo and the meaning of the library itself.

Now, the idea of "selection" is deprecated for good, but the actionability of "return"-ing something is still useful. What I suggest is:

Original commentary: https://github.com/atlas-engineer/nyxt/pull/2655#discussion_r1073311060