matbme / JABS.nvim

Just Another Buffer Switcher for Neovim
GNU General Public License v3.0
280 stars 10 forks source link

Feature request: Highlight filename #44

Open YuCao16 opened 1 year ago

YuCao16 commented 1 year ago

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!

jeff-dh commented 1 year ago

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....

YuCao16 commented 1 year ago

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 :)

jeff-dh commented 1 year ago

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).