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

autosave should not fires when opening single file in any directory #60

Closed
latipun7 opened this issue Mar 9, 2023 · 4 comments
Closed

Comments

@latipun7
Copy link
Contributor

latipun7 commented Mar 9, 2023

I have session at ~/.local/share/chezmoi, the autosave should trigger in any directory if I run nvim in that directory, and it's true and works.
But the previous behavior seems lost. When I open file with nvim $HISTFILE in ~/.local/share/chezmoi, then close it, now the session contain only file $HISTFILE, which is not what I desire and not the previous behaivor.
The autosave should automatically not triggered when opening file directly, i.e. nvim /path/to/file, nvim $HISTFILE, etc.

Tool Version
NVIM NVIM v0.9.0-dev-1166+g06aed7c17
Persisted 88f27dc

Originally posted by @latipun7 in #51 (comment)

@olimorris
Copy link
Owner

Can you share your config too?

@olimorris
Copy link
Owner

I've been able to recreate this! Will work on a fix.

@olimorris
Copy link
Owner

@latipun7 this should be fixed. Thanks for pointing this out.

@Jackaed
Copy link

Jackaed commented Sep 2, 2024

I'm now having this issue as well. Do I need any specific config for this behavior to work or should this be the default behavior?

Also this isn't necessarily the behavior I would want. Ideally, if I open a file in a directory, the session for that directory is loaded and then that buffer is open within that loaded session, but with everything else restored.

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

3 participants