all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 30: Completion Preview Feedback
@ 2024-09-13 21:37 Christopher Howard
  2024-09-14  6:20 ` Eli Zaretskii
  2024-09-14  7:35 ` Eshel Yaron
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Howard @ 2024-09-13 21:37 UTC (permalink / raw)
  To: Emacs Devel Mailing List

Hi, this is just a little unsolicited user feedback on the Completion Preview feature — not meant to be demanding or anything like that.

I think CP is a cool feature, but in the default settings, CP will give a preview even if I have already typed out something that matches, and I find that unnecessarily and frequently distracting. For example, if I type "(mapc", it will give a preview for "(mapcan".

Ideally what I'd like is if the current word already matches something, then there is no preview given.

I set "Completion Preview Exact Match Only" to "on" and that gives me pretty much what I want, since that eliminates the distracting extra previews. A trade off is I don't get any previews for "possible" matches, which could potentionally be useful.

I could I suppose also use an Idle Delay, but personally I hate introducing extra pauses like that into my workflow.

-- 
📛 Christopher Howard
🚀 gemini://gem.librehacker.com
🌐 http://gem.librehacker.com

בראשית ברא אלהים את השמים ואת הארץ



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs 30: Completion Preview Feedback
  2024-09-13 21:37 Emacs 30: Completion Preview Feedback Christopher Howard
@ 2024-09-14  6:20 ` Eli Zaretskii
  2024-09-14  7:35 ` Eshel Yaron
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-14  6:20 UTC (permalink / raw)
  To: Christopher Howard; +Cc: emacs-devel

> From: Christopher Howard <christopher@librehacker.com>
> Date: Fri, 13 Sep 2024 13:37:11 -0800
> 
> Hi, this is just a little unsolicited user feedback on the Completion Preview feature — not meant to be demanding or anything like that.
> 
> I think CP is a cool feature, but in the default settings, CP will give a preview even if I have already typed out something that matches, and I find that unnecessarily and frequently distracting. For example, if I type "(mapc", it will give a preview for "(mapcan".
> 
> Ideally what I'd like is if the current word already matches something, then there is no preview given.

So if you want to type mapcan, you want to see a preview when you type
map, have the preview disappear when you type c, then re-appear again
when you type a?  Won't that flickering be annoying?

> I could I suppose also use an Idle Delay, but personally I hate introducing extra pauses like that into my workflow.

If the delay is short enough, it shouldn't cause any perceptible
pause, I think.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs 30: Completion Preview Feedback
  2024-09-13 21:37 Emacs 30: Completion Preview Feedback Christopher Howard
  2024-09-14  6:20 ` Eli Zaretskii
@ 2024-09-14  7:35 ` Eshel Yaron
  2024-09-16 15:39   ` Christopher Howard
  1 sibling, 1 reply; 4+ messages in thread
From: Eshel Yaron @ 2024-09-14  7:35 UTC (permalink / raw)
  To: Christopher Howard; +Cc: Emacs Devel Mailing List

Hi Christopher,

Christopher Howard <christopher@librehacker.com> writes:

> Hi, this is just a little unsolicited user feedback on the Completion
> Preview feature — not meant to be demanding or anything like that.

Thanks for that, and let me take the opportunity to explicitly solicit
all such feedback: we'd love to hear your thoughts about the new
Completion Preview mode, and other new features too.

> I think CP is a cool feature, but in the default settings, CP will
> give a preview even if I have already typed out something that
> matches, and I find that unnecessarily and frequently distracting. For
> example, if I type "(mapc", it will give a preview for "(mapcan".
>
> Ideally what I'd like is if the current word already matches something, then there is no preview given.

That makes sense, and we can add an option for enabling such a behavior,
but there are some subtleties to consider: imagine that there are two
completion candidates, "mapc" and "mapcan", and that the completion
table sorts "mapcan" before "mapc".  In this case typing "map" triggers
the completion preview, showing the longer suffix, "can".  You may not
be aware of the existence of a shorter candidate at this point.  Now if
you type "c", then the prefix matches the shorter candidate "mapc", yet
it might be unexpected (and undesirable) if the preview would disappear.

What do you think would be the most useful behavior in such cases?


Cheers,

Eshel



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs 30: Completion Preview Feedback
  2024-09-14  7:35 ` Eshel Yaron
@ 2024-09-16 15:39   ` Christopher Howard
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Howard @ 2024-09-16 15:39 UTC (permalink / raw)
  To: Eshel Yaron; +Cc: Emacs Devel Mailing List

> That makes sense, and we can add an option for enabling such a behavior,
> but there are some subtleties to consider: imagine that there are two
> completion candidates, "mapc" and "mapcan", and that the completion
> table sorts "mapcan" before "mapc".  In this case typing "map" triggers
> the completion preview, showing the longer suffix, "can".  You may not
> be aware of the existence of a shorter candidate at this point.  Now if
> you type "c", then the prefix matches the shorter candidate "mapc", yet
> it might be unexpected (and undesirable) if the preview would disappear.
>
> What do you think would be the most useful behavior in such cases?
>

Hi, as I ponder this, my preferences lean more and more toward not having *any* non-exact matches. It seems like no matter how it was done, matches that are only "possible" matches are going to generate a lot of noise around point, which is annoying to me. If I really want possible matches, I can always just hit <TAB> to get them to come up in Helm.

So, I guess that makes it a moot issue for me, since I plan to just leave (completion-preview-exact-match-only t) in any case.

Regarding the specific question you asked — I suppose it might depend a bit on the source and handling of completions. More specifically, if the preview was based on history and heuristics, it might be handy to have the preview showing me the option which I have most frequently used in the past. If the preview is something meaningless like alphabetic order, I would just as soon have the preview disappear once I have an exact match on something. It might be nice (or even more distracting? not sure...) if there was some kind of indicator that let me instantly know if what I had typed was in fact an exact match by itself.

-- 
Christopher Howard



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-16 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-13 21:37 Emacs 30: Completion Preview Feedback Christopher Howard
2024-09-14  6:20 ` Eli Zaretskii
2024-09-14  7:35 ` Eshel Yaron
2024-09-16 15:39   ` Christopher Howard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.