Skip to content

Support save_key that is non-dependent of git/cwd, but rather on a per-session basis #95

@ema2159

Description

@ema2159

Hello. I was trying out your plugin and I really love the concept. However I was wondering why the bookmarks need have the cwd or git as a reference and not be stored without such a reference, but rather using the current session? At work, there is a significant amount of time I work outside of git (unfortunately, and there's not much I can do about it), and I have the vim.opt.autochdir = true option configured, so each time I move to a file that is on a different directory, arrow messes up the marks.

I figured that I could set the global bookmarks setting to make it work the way I described, but then my bookmarks are (surprise surprise) global, which interferes when I have two Neovim sessions open which I do quite often when for example, when I am working in two different non-git repositories (or one git repository and one non-git repository, you get the idea).

Is there a way to support a per-session bookmarks functionality? Currently and as far as I could examine in the code it is not possible. I can help with the implementation if needed, but I want to know that it is something you would be willing to support.

Thanks again for the great plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions