utilyre / barbecue.nvim

Visual Studio Code inspired breadcrumbs plugin for the Neovim editor
MIT License
802 stars 35 forks source link

feat: dir_display_limit #89

Open kawre opened 1 year ago

kawre commented 1 year ago

New feature to limit the number of directories to display. Especially useful when working with something like Spring Boot, where just the directory name takes more than 50% of my screen real estate.

kawre commented 1 year ago

Changed the type to integer and added ellipsis symbol to indicate that the directories have been split. Also unsure how to handle the protocol prefix. Do you have any ideas?

utilyre commented 1 year ago

Honestly, it's been a while since I used this plugin myself. So just be sure that nothing breaks.

Cases that I recommend testing:

  1. Relative file paths (especially when there is a ./some.txt or ../some.txt)
  2. Absolute file paths (they should have a / entry at the beginning)
  3. URLs should have a http:// entry at the beginning (http is just an example it should handle any given schema like tcp://, https://, or mycustomschema://)