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

Minimap breaks :mksession #192

Open
adamency opened this issue Nov 5, 2023 · 4 comments
Open

Minimap breaks :mksession #192

adamency opened this issue Nov 5, 2023 · 4 comments
Labels
conflict minimap.vim is incompatable in some way with this workflow wontfix This will not be worked on

Comments

@adamency
Copy link

adamency commented Nov 5, 2023

Check list

  • [V] I have read through the README (especially F.A.Q section)
  • [V] I have searched through the existing issues

Environment info

  • OS
    • Linux

Version info

NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1696795921

Question / Problem and steps to reproduce

When using Minimap with auto_start, the command :mksession will also save the minimap window with its "filename" -MINIMAP- which will make loading the session file fail as Minimap will auto-start too when reopening the files from the session and thus try to open a minimap window with the same name as the one recorded in the session.

Error Message:

tmp

Excerpt from Session.vim:

tmp

Full Session.vim:

Session.vim.txt

I believe Minimap should prevent Vim from saving its own windows in the session as they are unusable anyway since their contents are not stored in the file system. Even if untrue, it should at least provide an option to activate this in order to not break :mksession when auto_start is enabled.

@ZNielsen ZNielsen added the conflict minimap.vim is incompatable in some way with this workflow label Nov 10, 2023
@ZNielsen
Copy link
Collaborator

Could this problem be solved by toggling the minimap closed before you make the session?

@ZNielsen
Copy link
Collaborator

I don't see an autocmd in the documentation that fires when :mksession is ran. Without that, I'm not sure what minimap can do. If I'm missing it, please point it out and I'll mark this as a feature request.

Without an autocmd, you might look into making a custom mapping or function that closes the minimap, calls mksession, then reopens the minimap.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
@monnoval
Copy link

monnoval commented Apr 5, 2024

I had this very similar issue based on what I see in Session.vim.txt
The error for me was when using fzf.vim with :Rg!

@ZNielsen ZNielsen added wontfix This will not be worked on and removed stale labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict minimap.vim is incompatable in some way with this workflow wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants