Skip to content

[FEAT] Sessions #20

Closed
Closed

Description

@tgaldi

Did you check the docs and looked for existing issues?

  • I have read CONTRIBUTING.md
  • I have read the docs (README.md, :h project-nvim, etc.)
  • I have checked for existing issues related to this one, whether open or closed

Operating System and, if possible, what version?

Win11

What would you like integrated?

Integrate session management or integration with a session plugin so that opening a project opens the associated session.

How would this plugin improve?

I work on multiple projects and I need to re-open files whenever I open a project with this plugin. I don't use a session plugin (yet), but I'd love to see this plugin automate session management based on opening a project.

Have you considered alternative solutions?

No response

Is there any code implementation you'd suggest?

-- Leave this unchanged if there is no code you can include

Are there any bug issues related?

No response

Additional Context

No response

Activity

  1. DrKJeff16 commented on Sep 29, 2025

    @DrKJeff16
    Owner

    @tgaldi Do you have any session plugin in mind? I use https://github.com/gennaro-tedesco/nvim-possession but I'm wondering if some would prefer an alternative first.

  2. moved this from Missing Features to In Progress in @project.nvim Roadmapon Sep 29, 2025
  3. moved this from In Progress to Missing Features in @project.nvim Roadmapon Sep 29, 2025
  4. tgaldi commented on Sep 29, 2025

    @tgaldi
    Author

    No, seems like there are quite a few plugins for session management. I imagine the two big ones would be:

    https://github.com/folke/persistence.nvim
    https://github.com/nvim-mini/mini.sessions

    I know the mini suite is pretty popular. I use some specific plugins instead of the entire suite.

    Maybe an easy first pass would be to look for or create a session file in the root directory when a project is added? I'd rather just use your plugin :)

  5. DrKJeff16 commented on Sep 29, 2025

    @DrKJeff16
    Owner

    I'll look right into it.

  6. moved this from Missing Features to In Progress in @project.nvim Roadmapon Sep 29, 2025
  7. DrKJeff16 commented on Sep 29, 2025

    @DrKJeff16
    Owner

    @tgaldi

    P.S. Please be patient. I'll be reading a ton of documentation and code before I can appropriately figure out how to integrate this properly. You'll be able to track the progress in #21.

  8. linked a pull request that will close this issueWIP session integration (#20) #21on Sep 29, 2025
  9. 9 remaining items

  10. DrKJeff16 commented on Sep 30, 2025

    @DrKJeff16
    Owner

    @tgaldi I tried replicating your steps, but nothing bad happened. I hope my new patches could've fixed it.
    Unless the UI shows items separated by a \ for you...
    If so , please tell me so that I can patch it. I use Linux so I can't test it on Windows myself right now.

    I appreciate your patience, by the way.


    Demonstration

    This is not related to your latest issue, by the way.

    project_nvim_example.mp4
  11. tgaldi commented on Sep 30, 2025

    @tgaldi
    Author

    No worries at all I appreciate you wanting to add this feature, I really love this plugin. I'm on Windows so maybe that is part of the issue.

    Maybe I'm misunderstanding the concept of sessions though... What I was imagining is some mechanism to save the current windows/buffers for a project, so that when you open the project again it restores everything.

  12. DrKJeff16 commented on Sep 30, 2025

    @DrKJeff16
    Owner

    That can be achieved, but I'll have to rework how sessions are stored in the first placce, then add checks if bufnr/winid is available.

    I'll try some proof of concepts. It'll take me a bit.

    P.S. Don't worry, I've had something like that in mind for a while, but had to tend to stabilizing stuff.

  13. moved this from In Progress to Under Research in @project.nvim Roadmapon Sep 30, 2025
  14. DrKJeff16 commented on Oct 2, 2025

    @DrKJeff16
    Owner

    @tgaldi Hey there! #23 is my attempt.

    To be brief with my progress so far:

    LIFE IS PAIN

  15. DrKJeff16 commented on Oct 27, 2025

    @DrKJeff16
    Owner

    @tgaldi After debating myself for a while I've come to the conclusion I'm not following up on this (entirely). I LOVE the idea, don't get me wrong, but until I am able to deal with #24, and with the original plugin's implementations getting in the way (without absolutely wrecking this plugin), I think I'm going to address this later.

    In the meanwhile, I think this plugin can be paired with far more capable and complete session management plugins (that I know of). It's not my place to recommend which one(s) you could use, only to point you to rockerBOO/awesome-neovim#session.
    I can do some fixes in the future to enhance compatibility with some of these.

    I'll move this to the Discussions section and pin it so that I don't forget about this (unlikely since I am very interested). I hope you'll understand.

    Sorry for the inconvenience!

  16. Repository owner locked and limited conversation to collaborators on Oct 27, 2025
  17. converted this issue into a discussion #27 on Oct 27, 2025
  18. moved this from Under Research to Done in @project.nvim Roadmapon Oct 27, 2025
  19. removed
    needs-triageThis PR needs to be assessed by the maintainers
    in-progressIssue is currently being handled
    on Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfeature-requestThis issue requests a feature to be implemented.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions