[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comint-like history search for Eshell?
From: |
Pengji Zhang |
Subject: |
Re: Comint-like history search for Eshell? |
Date: |
Mon, 04 Nov 2024 19:47:35 +0800 |
Juri Linkov <juri@linkov.net> writes:
> The standard features that correspond to these two ways are
> incremental search with 'C-s' (implemented in the proposed patch)
> and occur with 'M-s o' (there is no occur-like interface for Eshell
> history AFAIK, it exists only for the minibuffer history, and
> in shell with 'comint-dynamic-list-input-ring').
In Eshell there is 'eshell-list-history', but it filters the history
using the bang expansion syntax, which is disabled by default now. In
Eshell, you may type 'C-c C-l' after
$ !emacs
to get a buffer showing all history commands that start with 'emacs'. I
do not use bang expansion so I find it rarely useful.
> [...]
>
> So Eshell could have both as well: incremental search and completion.
I agree that we could implement both. For completion, if we are going to
let-bind 'completion-at-point-functions' as in Juri's and Sean's
commands (or use 'completion-in-region' as we do for the minibuffer),
then IMO there is nothing that hinders the implementation of an Isearch
interface.
Pengji