lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

Long file paths in lsp-ui-peek-find show only prefix

Open nenorbot opened this issue 2 years ago • 1 comments

When working with highly nested directories, the paths shown in the file list get truncated to just their prefix. As a result, the most meaningful parts of the path are often lost (package/modules/file name/etc).

For example, in Rust, when finding references/implementations of a type that's used across many dependencies, the file list might only show identical entries for /home/myuser/.cargo/registry/src/github..., making the file list harder to work with.

I know it's possible to disable showing directories with lsp-ui-peek-show-directory, but the directories can have interesting information like project name or module paths.

I think showing the path suffix rather than the prefix would be more helpful in these cases.

nenorbot avatar Jan 18 '23 18:01 nenorbot

This is also being discussed in https://github.com/emacs-lsp/lsp-ui/issues/261

tonicebrian avatar Jul 18 '23 13:07 tonicebrian