2 Commits

Author SHA1 Message Date
Andrew Jeffery
434ca29c8f completion: complete paths with FilterList
Make the completion filtering for paths use the standard FilterList
function. This leads to fuzzy filtering if configured, as per other
completions.

Changelog-changed: Path completion now uses the normal filtering
 mechanism, respecting case sensitivity and the fuzzy completion option.
Signed-off-by: Andrew Jeffery <dev@jeffas.net>
Acked-by: Robin Jarry <robin@jarry.cc>
2024-10-27 10:15:08 +01:00
Robin Jarry
765761c5bf commands: simplify CompletePath
This function is overly complex, has code duplication and is not
preserving user input (converting all paths to absolute paths).

Simplify it and avoid converting relative paths to absolute ones.

Add unit tests to ensure it works as expected.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
2024-01-17 11:52:57 +01:00