elihunter173/dirbuf.nvim

calling write fails with E17 path is a directory

matu3ba opened this issue · 4 comments

config:

use { 'elihunter173/dirbuf.nvim', config = function() require("dirbuf").setup { write_cmd = "DirbufSync -confirm" } end, }

However, manually running the command :DirbufSync -confirm works as expected.

The behavior occurs both from opening a directory and opening a file first and then calling :Dirfuf %
Is this behavior expected? If yes, then it should be documented.

Side question: Is there a difference in using :e pathtodir and :Dirbuf pathtodir?

known workaround: Use the first time :w! to force the write.
Subsequent writes will work as expected.

I have the same issue on Neovim nightly. Maybe the same issue as #45.

Is this behavior expected? If yes, then it should be documented.

This behavior is not expected. Are you using Neovim nightly? If yes, then I'll close this issue as a duplicate of #45 since I just re-opened that for investigation.

Yes, I am using Neovim nightly. Closed as duplicate of #45.