bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#43925: 28.0.50; fido-mode can't find-file further back than ~/


From: Rasmus
Subject: bug#43925: 28.0.50; fido-mode can't find-file further back than ~/
Date: Sun, 11 Oct 2020 17:30:21 +0200
User-agent: Emacs Gnus

Hi,

I am trying to replace ido with fido.

One heuristic that I miss from ido is the ability to easily get to root via find(ing)-file.

In particular, from emacs -q, I might do something like this

(let ((default-directory "~/")) (fido-mode) (call-interactively 'find-file) ;; click <backspace><backspace> to get to root )

Being an ido-user, I would expect to be able to go to /home/ by clicking backspace and then to root. But I doesn’t work with fido.

I don’t know if I have missed some obvious configuration-step here? I looked through the customization groups of both icomplete and minibuffer.

The attached patch expand the file-name if it is “~/”.

I am not really familiar with this part of Emacs so I am not sure it’s the right way to go about it. In particular, I am really not sure whether the internal functions (e.g. ‘icomplete--field-beg’) are used correctly.


Aside: Another annoyance with fido is that $HOME isn’t being abbreviated
to “~” when browsing from root.  E.g.

(let ((default-directory "/home/")) (fido-mode) (call-interactively 'find-file) ;; now select your username ) I would like “/home/$USER” to be abbreviated to “~” (like ido) to conserve space.

Any ideas as to where such a change migh be injected to fido? I didn’t see an obvious place.

Thanks in advance,
Rasmus

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.3) of 2020-10-06 built on X260 Repository revision: d36cfa21b6b695862dae772a94c63ce3aca8467e Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Arch Linux
--
Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!

Attachment: 0001-lisp-icomplete.el-icomplete-fido-backward-updir-Expa.patch
Description: Text Data


reply via email to

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