On 24/09/2024 03:03, Dmitry Gutov wrote: > > The attached patch does not make a distinction for file name completion > - it just covers the core problem - but I think any UI could use the > addition and likewise lookup the 'file' category, and print the "hidden" > suffix in the Completions, and decide to drop the suffix in your first > scenario (file name completion with exit imminent). Here's a halfway PoC of the UI printing the suffix based on the metadata property with emacs22 (without special behavior for files yet, but it should be straightforward to add the same set of conditions - the category, completion boundaries, etc).