stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.84k stars 110 forks source link

feature request: displaying linear folder tree as a single entry #311

Closed Flygrounder closed 7 months ago

Flygrounder commented 7 months ago

Did you check existing requests?

Describe the feature

Consider the following folder structure

scala
└── com
    └── company
        └── program

If I want to get to program folder, I have to press <CR> 4 times. I want an optional feature that would display this subtree as a single line scala/com/company/program that will get me to program when pressing <CR>. 1<CR> would get me to scala, 2<CR> would get me to com etc.

Provide background

Usually this feature won't make a difference, but when working on Scala projects, I always want this. I understand that tree view is out of scope, but this does not require one as this nested structure would still be a single line in a buffer. Also I understand that many users won't want this behavior, so it should be an opt-in feature.

What is the significance of this feature?

nice to have

Additional details

No response

stevearc commented 7 months ago

Closing as not a good fit for oil. I understand the pain point, but I don't think the proposed solution is a good fit for this project. It would require another special case, which I generally would like to avoid, and it would actually be a fairly tricky case to code. Additionally, the UX of this has some problems. The simple case of jumping to the nested child is easy, but what if you want to rename the company directory? What if you want to add a file in the com directory? These operations may not be common, but suddenly they become much more difficult. Given the relatively small benefit, I don't think this is worth it.