chadtree icon indicating copy to clipboard operation
chadtree copied to clipboard

ChadTree buffer does not reopen on session source

Open aareman opened this issue 5 years ago • 5 comments

If I open chadtree and expand some nodes and open a few files. Then I call :mksession it saves the session. If I close vim and reopen and run :source Session.vim it loads the files I had open and a [No Name buffer where chadtree was. If I reopen chadtree, it resumes where I left it, but it doesn't repopulate the pane where it was.

Thanks for making a cool NERDTree alternative. When I saw session support I was like whoa!

Maybe I'm doing something wrong. I have python 3.8 and

health#mkdp#check
========================================================================
  - INFO: Platform: linux
  - INFO: Nvim Version: NVIM v0.4.3
  - INFO: Pre build: /home/avraham/.config/nvim/plugged/markdown-preview.nvim/app/bin/markdown-preview-linux
  - INFO: Pre build version: 0.0.9
  - OK: Using pre build

...

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "/usr/bin/python3.8"
  - INFO: Executable: /usr/bin/python3.8
  - INFO: Python version: 3.8.5
  - INFO: pynvim version: 0.4.1
  - OK: Latest pynvim is installed.


aareman avatar Aug 04 '20 16:08 aareman

ohhh it uses its own session file, separate from VIM’s session, i can maybe find a way to make them work together,

ms-jpq avatar Aug 04 '20 17:08 ms-jpq

So I dug into it there is an autocmd SessionLoadPost that would allow me the open chadtree after session restore.

but it would add a cost of loading the python environment which could cost upwards of half a second, which is really expensive.

I can add a flag that allows session restore for session files but only if you want it?

ms-jpq avatar Aug 04 '20 20:08 ms-jpq

https://github.com/neovim/neovim/issues/5728

they are not fixing the slowness bug until 0.6...

ms-jpq avatar Aug 05 '20 06:08 ms-jpq

I'm interested in this as well I would accept the slowness. Coming from NERDtree and the session management was something that was annoying there too.

tuxflo avatar Jan 27 '21 11:01 tuxflo

So, do anyone know how to fix that? This problem is quite annoying... :see_no_evil:

sir please do help

oxxxxxy avatar Jan 17 '23 17:01 oxxxxxy