Closed liambutterworth closed 2 years ago
I see the issue as well. When I try to run nnn -S -p -
and then quit, the session remembers the directory. But when I pick a file(s) (pressing enter) it doesn't.
Seems to be an issue with nnn itself rather than the plugin.
For the context part, does nnn let you exit with more than one open context? It seems to ask me to quit all context before exiting (pressing Q
).
There is an option to skip the confirmation. See nnn help.
Using command = 'nnn -Q'
works for me, thanks @jarun
I'm not entirely sure if this is a bug, an issue with my configuration, or just a workflow misunderstanding since I'm new to nnn. Currently I have nnn setup to use the global session. Say that I open up nnn in a float, navigate to some file a directory or two down, and then open it. What I expect to happen is the next time I open up nnn, it starts in the same place I opened the file. The only way I can get this to work as I expect is to open nnn, navigate, close, reopen and then press enter on the file. Is there something I'm missing here? The same thing happens if I open a new context, then navigate to the file and open. The new context state isn't saved.
If there's a key bind I could use to update the context state that would be perfect too.
To Reproduce:
1) let g:nnn#session = 'global' 2) :NnnPicker 3) Navigate to file in subdirectory, in a current or new context 4) Press enter on file 5) :NnnPicker
Environment:
arch linux fish 3.3.1 neovim 0.6.0 paq 0.9.2 nnn 4.2