neoclide / coc-lists

Common lists for coc.nvim
264 stars 24 forks source link

add filter by name for files&mru (#126) #127

Closed skysky97 closed 2 years ago

skysky97 commented 2 years ago

Its hard to find a file if it has a long path, especially for small window width. vscode sytle makes the file name in front of line, which is really good for reading.

Before: src/hello/world/coc/list/is/great/to/me/somefile.cpp src/hello/world/coc/list/is/great/to/me/somefile.h

After: somefile.cpp src/hello/world/coc/list/is/great/to/me/somefile.cpp somefile.h src/hello/world/coc/list/is/great/to/me/somefile.h

Options list.source.mru.filterByName and list.source.files.filterByName are added to enable this feature for mru and files list.

When enabled, list is filtered by file names only.