Ticket #4295 (new enhancement) — at Initial Version

Opened 3 years ago

Last modified 3 years ago

Tilde + username expansion in copy/move dialogs does not work

Reported by: ZlatkO Owned by:
Priority: minor Milestone:
Component: mc-core Version: master
Keywords: tilde username expansion tab completion Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

See subject: tilde + username expansion (ie. to expand to a certain user's $HOME) in copy/move dialogs does not work. If I enter a tilde character in the destination field followed by one or more characters (ie. ~apa) and then hit <TAB>, nothing happens. If I complete the username myself, followed by a slash (ie. ~apache/), then the rest of the <TAB> completion works as expected.

So it seems that MC actually does understand the ~username/ concept as such in the copy/move dialogs (ie. files do end up in the correct destination), but it can't complete the ~userna<TAB> part by itself. I'm pretty sure that this did already work in some earlier version, but I'm not 100% sure. :-)

Fun fact: in MC's command line widget, this works just fine, ie. entering ~apa<TAB> gets properly completed to ~apache/. So the command line widget's completion code path is probably a different one than the copy/move dialog's one.

Note: See TracTickets for help on using tickets.