[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48782: 28.0.50; fido-mode: shell variables distort find-file behavio
From: |
simon254 |
Subject: |
bug#48782: 28.0.50; fido-mode: shell variables distort find-file behaviour |
Date: |
Mon, 7 Jun 2021 19:23:11 +0100 (BST) |
great, will do!
off topic:
would also be nice to have some simple helper functions to go to the first and
last match in case of fido-vertical-mode, something along the lines of
(defun icomplete-vertical-last-completions ()
"Go to last completions entry..."
(interactive)
(let* ((beg (icomplete--field-beg))
(end (icomplete--field-end))
(comps (completion-all-sorted-completions beg end))
(last (last comps)))
(while (consp (cdr comps))
(push (pop comps) icomplete--scrolled-past)
(setq icomplete--scrolled-completions comps)
(completion--cache-all-sorted-completions beg end comps))))
(defun icomplete-vertical-first-completions ()
"Go to first completions entry..."
(interactive)
(let* ((beg (icomplete--field-beg))
(end (icomplete--field-end))
(comps (completion-all-sorted-completions beg end))
last-but-one)
(while icomplete--scrolled-past
(push (pop icomplete--scrolled-past) comps)
(setq icomplete--scrolled-completions comps))
(completion--cache-all-sorted-completions beg end comps)))
> On 06/06/2021 17:16 João Távora <joaotavora@gmail.com> wrote:
>
>
> On Sun, Jun 6, 2021, 09:01 <simon254@mailbox.org> wrote:
> > Thank you very much for looking at this!
> >
> > Now, if I type $HOM I get candidate $HOME, then I have to M-Tab to insert
> > the candidate and type "/" to continue find-file in the directory, and then
> > everything works as expected. This makes it now definitely usable for me!
> >
> > It might still be a bit confusing that in case of an environment variable
> > which value is a directory, Enter does open dired instead of transversing
> > into the directory with find-file (typing $HOM followed by Enter opens
> > dired in home). But I don't know if changing this would be better or worse
> > than the current behaviour after your fix - or possible at all.
>
> May be possible. Is that what Ido does? I'll try in a couple of days, ping me
> here if I forget.
>
> João