GNU bug report logs -
#74287
[PATCH] Rework history Isearch for Eshell
Previous Next
Reported by: Pengji Zhang <me <at> pengjiz.com>
Date: Sun, 10 Nov 2024 01:23:02 UTC
Severity: normal
Tags: patch
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
James Thomas <jimjoe <at> gmx.net> writes:
> Just wanna add a POC to the alternatives suggested. WDYT? Does not use
> regexps for now, and C-. and C-, for cycling (rather than C-r and C-s):
>
> (setq icomplete-in-buffer t)
> (icomplete-mode 1)
>
> (defun my/eshell-history-complete nil
> (interactive)
> (let ((icomplete-compute-delay 0)
> (completion-at-point-functions
> '((lambda nil
> `(,eshell-last-output-end ,(point) ,(append (cddr eshell-history-ring) nil) . nil)))))
> (completion-at-point)))
>
> (define-key eshell-hist-mode-map (kbd "M-r") #'my/eshell-history-complete)
Thanks! While I like the simplicity of your approach, I am not sure if
it is a good idea to depend on 'icomplete-mode'. People may have
different preferences for the in-buffer completion framework.
This bug report was last modified 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.