Closed towry closed 11 months ago
Thanks for such detailed steps!
I think I can reproduce, but will investigate deeper.
So the cause is completely in another direction and has nothing to do with monorepo or directories. The way path is added is without actually visiting it, which leads to have its count
equal to 0. This gets pruned before actually writing index to the disk.
As this is indeed a workflow I'd like to support, default normalize
now doesn't prune if entry has any label. It should work on latest main
.
Thanks again for the repro and interesting case!
Contributing guidelines
Module(s)
mini.visits
Description
https://github.com/echasnovski/mini.nvim/issues/591#issuecomment-1836353708
Neovim version
nightly
Steps to reproduce
nvim -u ../init.lua
:lua vim.cmd.tcd('./child')
<space>pa
add path label.<space>pp
to list paths. (OK).:qa
quit.root
dir, start vim:nvim -u ../init.lua
<space>pp
, nothing here (not ok).Expected behavior
add_label with initial cwd and current cwd should be working.
Actual behavior
not persistent.