I sent a bug report to bug-gnu-emacs with a suggested simple patch.
FYI, this was implemented in bug=38231. So eventually the following will “fix” ido’s issues with rename-* directory reading, by disabling it:
(add-to-list 'ido-read-file-name-non-ido 'tramp-rename-files) (add-to-list 'ido-read-file-name-non-ido 'tramp-rename-these-files)
Of course it would be nice to work better with ido/etc. without disabling them, but this command is rare enough that this should suffice. Would be worth testing with Ivy/Helm/icomplete/fido/etc. to make sure it works as expected.
JD |