JABS.nvim icon indicating copy to clipboard operation
JABS.nvim copied to clipboard

Feature request: Highlight filename

Open YuCao16 opened this issue 3 years ago • 3 comments

Hello,

Awesome project!

Sometimes it takes a while to focus on the file name after opening the panel, is it possible to create custom highlight for file name?

Thanks!

YuCao16 avatar Dec 10 '22 21:12 YuCao16

Did you noticed the options split_filename and split_filename_path_width?

    split_filename = true -- Split filename into separate components for name and path. Default false
    split_filename_path_width = 20 -- If split_filename is true, how wide the column for the path is supposed to be, Default 0 (don't show path)

They don't do what you want but I added them for the same reason. Have a look at them....

jeff-dh avatar Dec 10 '22 22:12 jeff-dh

Did you noticed the options split_filename and split_filename_path_width?

    split_filename = true -- Split filename into separate components for name and path. Default false
    split_filename_path_width = 20 -- If split_filename is true, how wide the column for the path is supposed to be, Default 0 (don't show path)

They don't do what you want but I added them for the same reason. Have a look at them....

Thanks for your quick reply. I understand highlight string partially is hard, and this is a good alternative solution. So if you don't have plan to add this feature recently, feel free to close this Issue :)

YuCao16 avatar Dec 10 '22 22:12 YuCao16

checkout the expJABS branch:

https://github.com/jeff-dh/expJABS.nvim

added your requested feature in that branch (be aware, it might behave slightly different due to different default values).

To enable the feature set config.highlight.filename to some valid highlight (pick one from :highlight).

jeff-dh avatar Dec 10 '22 23:12 jeff-dh