emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: Completions and history


From: Drew Adams
Subject: RE: [External] : Re: Completions and history
Date: Tue, 12 Apr 2022 19:49:52 +0000

> Does Icicles support history completion in eshell and comint?

Yes, I believe so.

Command `icicle-comint-search':

 Use `icicle-search' to pick up a previous input for reuse.
 Use this in a `comint-mode' buffer, such as *shell* or
 *inferior-lisp*.

 This searches your interactive history in the buffer for a
 match to your current input, which you can change dynamically.
 When you choose a previous input, it is copied to the current
 prompt, for reuse.

 If the region is active, then only it is searched; otherwise,
 the entire buffer is searched.
 ...

https://www.emacswiki.org/emacs/Icicles_-_Other_Search_Commands#IciclesShell

Command `icicle-comint-command':

 Retrieve a previously used command.
 Use this in a `comint-mode' buffer such as `*shell*' or
 `*inferior-lisp*'.

Option `icicle-comint-dynamic-complete-replacements':

 A list of function replacements, for
 `icicle-comint-dynamic-complete' to replace the functions in
 `comint-dynamic-complete-functions'.  You can use this to
 provide Icicles completion for various modes that inherit from
 Comint mode.  By default, it treats Comint mode and Shell mode.

And there's some support for completion at point in these
contexts.  But in general, Icicles is about minibuffer
completion, not so much buffer-text completion.

https://www.emacswiki.org/emacs/Icicles_-_Defining_Completion_for_Comint_Modes

___

Anyway, my post was about _minibuffer_ history.

And about the history of text you've had in the
minibuffer at some point, but that you never entered
as input (chose with `RET', as opposed to acted on
in some other way or edited with).

The latter is important in the context of completion
and cycling, as I explained earlier.  AFAIK, only
Icicles gives you access to such a history.  (I'll
be pleased to learn that other libraries also offer
this now.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]