all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Prepend an indicator to the minibuffer prompt to show you can use completion
@ 2006-08-13 19:38 Drew Adams
       [not found] ` <2cd46e7f0608141023r3ecd44fdl48287a2aa3a33068@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2006-08-13 19:38 UTC (permalink / raw)


Minor feature suggestion, for after the release:

Prepend a one-character indicator, with a face that stands out, to the
minibuffer prompt, whenever completion is possible.

I do this in my own code, and I think it helps orient users. It's not always
obvious, when a function reads input, whether completion is available. This
makes it obvious, at the minor cost of an additional character or two in the
prompt.

For example, in Emacs 20 and 21, when you use `i' in Info, completion is not
available; in Emacs 22, completion is available. There is nothing in the UI
that indicates whether completion is available - you either know it or you
don't, or you try hitting TAB to see if completion is possible. Users
already used to the older, non-completion behavior can miss out, until they
somehow become aware that completion is available for index lookup. If you
have an old habit, you might not think of trying TAB.

Knowing whether completion is available can change the way you interact with
Emacs. Not knowing it is available can mean that you miss out on a quick way
of inputting something.

I just add a space character to the beginning of the prompt, highlighting
it, whenever completion is available. I add another space with no
highlighting, to separate this indicator from the prompt per se.

(I also use Miles's minibuf-depth.el (or mbuf-depth.el), BTW, to indicate
recursive minibuffer depth, and the two indications play well together.)

An additional subtlety can help a little more: I prepend a different
character (`=') and highlight it in a different color, whenever completion
requires a match.

In sum:

* When must-match completing, `=' is prepended and highlighted one way.

* When completing otherwise, ` ' is prepended and highlighted another way.

* When not completing, nothing is prepended.

Users can turn off this feature, if they prefer, by just customizing the
prefix strings to "".

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

end of thread, other threads:[~2006-08-17 19:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-13 19:38 Prepend an indicator to the minibuffer prompt to show you can use completion Drew Adams
     [not found] ` <2cd46e7f0608141023r3ecd44fdl48287a2aa3a33068@mail.gmail.com>
2006-08-14 17:24   ` Fwd: " Ken Manheimer
2006-08-14 18:47     ` Prepend an indicator to the minibuffer prompt to show you canuse completion Drew Adams
2006-08-17 19:36       ` Kevin Rodgers

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.