Closed dmtrKovalenko closed 7 months ago
The recommended way to do this would be by using the winbar (see :help winbar
). You can set that to a custom function that displays the output of oil.get_current_dir()
, or you could show the raw buffer name. Editing the name of the directory that oil is currently displaying is probably not going to happen. It's more complex than you think, and the benefit is small.
For anyone wondering how to set the winbar to display the path, I used
win_options = {
winbar = "%{v:lua.require('oil').get_current_dir()}",
},
Did you check existing requests?
Describe the feature
I would be happy if there would be any way to display the current directory inside oil without additional hacks like virtual text and being able to edit the current directory just like you can edit any other file.
Provide background
I am working on my little idea project of having oild as a sidebar and it looks very good except for one little thing — it does not display the current directory selected at the top which makes it look raw.
What is the significance of this feature?
cannot use this plugin without it
Additional details
No response