coc-fzf icon indicating copy to clipboard operation
coc-fzf copied to clipboard

Columnar alignment in the lists

Open elkowar opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. The list content ca be quite messy if there is a lot of information shown.

Describe the solution you'd like It should be possible to align the content of the list in columns, the same way as CocList itself can now do it since my recent PR https://github.com/neoclide/coc.nvim/pull/2640 (Look at that PR for example images of what i mean)

Additional context Same as with Coc.nvim itself, i'd be happy to look into writing the PR for this myself, if you'd be willing to merge this feature ;D Given that CocFzfList is all about a more customized coc-list experience, it might even be worth it to add more flexibility than that. Specifically, I'm thinking that it would be really nice to allow users to provide a custom vim-function to format the list.

That function could take the list content as arguments (in the shape of a list of objects, where the list is the different entries/lines, with an object-field per piece of data - i.e. filepath, description, line-number, etc), and return the list in a formatted manner, however the user desires to use the data. This function may however also be something worth introducing into coc itself, but I'd guess there'd be more resistance against this type of config there than there will be here ;D

elkowar avatar Nov 25 '20 08:11 elkowar

Sounds like a great idea, PR welcome !

antoinemadec avatar Nov 25 '20 20:11 antoinemadec