atlas-engineer / prompter

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

Prompt buffer polishing #32

Open Ambrevar opened 3 years ago

Ambrevar commented 3 years ago

Follow-up to atlas-engineer/nyxt#1157.

Left to be done:

Ambrevar commented 3 years ago

@jmercouris Please let me know if you have answers / suggestions to any of these points.

As usual, I'll push what's uncontroversial directly and send pull requests for the rest.

jmercouris commented 3 years ago

OK!

aadcg commented 3 years ago

Sorry if the following suggestion is already in your list and I missed it. I suggest that the highlighted entry in the prompt buffer should be in the middle. At the moment it's in the lower part. As you can see below: 5 top entries, the current one, 1 below and another "half one".

2021-03-29_10:19:46

Ambrevar commented 3 years ago

It's not in the list and yes, there is a slight "problem" with it :) To be clear, the selection position is currently "unconfigured", I just added some javascript to make sure it's in the view, that's it.

To go even beyond what you suggest, I propose to make the paging configurable, a bit like Emacs allows. Some users would like the selection to remain in the middle, others would like it to go to the bottom when they call "next page", etc.

aadcg commented 3 years ago

Makes sense to me. Btw, can we already page down in the prompt buffer?

Ambrevar commented 3 years ago

Nope (it's the first item on the list), but it shouldn't be hard! :)

I was thinking something along the lines "scroll until it runs out of view". Maybe there is a better way to implement it in Javascript though.

aadcg commented 3 years ago

Nope (it's the first item on the list), but it shouldn't be hard! :)

Right, excuse my blindness!

Can't give much advice regarding the scrolling.

aartaka commented 3 years ago
aadcg commented 1 year ago

Note to self, TODO:

aadcg commented 1 year ago

Quote by @Ambrevar:

Full text search would be better. Montezuma could help. Otherwise Xapian would be better, but there are no cl-xapian bindings as of this writing.