Skip to content

[FEATURE] Change save session filename after cwd changed #102

@nanozuki

Description

@nanozuki

Is your feature request related to a problem? Please describe.

  • open vim in directory A
  • use :cd to directory B (my be use in GUI nvim)
  • do some edit quit, trigger auto-save-session
  • Use vim in directory A, but I open the files in dir B

Describe the solution you'd like

Use the autocmd DirChanged global to follow the cwd change. (Or add an option)

Describe alternatives you've considered

Here is my little workaround:

vim.cmd('autocmd DirChanged global lua require('auto-session-library').conf.last_loaded_session = nil')

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions