atlas-engineer / prompter

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

`quit-prompt-buffer` and `prompt-buffer-canceled` naming inconsistency? #27

Open aartaka opened 1 year ago

aartaka commented 1 year ago

Since atlas-engineer/nyxt#2655, the function that used to be called cancel-input is called quit-prompt-buffer. But the condition that used to be related to this function is still called prompt-buffer-canceled, which may confuse someone using Nyxt's prompt buffer.

I see two ways out of this inconsistency:

  1. Return the cancel as a verb to relate to this operation. Thus, have cancel-prompt-buffer or something similar.
  2. Rename prompt-buffer-canceled to refer to "quit"-ting.

I am personally in favor of (1), because

aadcg commented 1 year ago

No strong opinion.

Ambrevar commented 1 year ago

No strong opinion either, however slightly leaning towards being conservative with the previous naming, so option (1).

lansingthomas commented 1 year ago

I like cancel. canceling is stopping something in progress, while quitting is like leaving. And there are other similarly named things with quit.