Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChadTree buffer does not reopen on session source #23

Open
aareman opened this issue Aug 4, 2020 · 5 comments
Open

ChadTree buffer does not reopen on session source #23

aareman opened this issue Aug 4, 2020 · 5 comments

Comments

@aareman
Copy link

aareman commented Aug 4, 2020

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.


@ms-jpq
Copy link
Owner

ms-jpq commented Aug 4, 2020

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
Copy link
Owner

ms-jpq commented Aug 4, 2020

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
Copy link
Owner

ms-jpq commented Aug 5, 2020

neovim/neovim#5728

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

@tuxflo
Copy link

tuxflo commented Jan 27, 2021

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.

@oxxxxxy
Copy link

oxxxxxy commented Jan 17, 2023

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

sir please do help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants