Skip to content

toggle already opened note if another one is open  #2

@akabakass

Description

@akabakass

Hi,
first, thanks a lot for that plugin, it is really nice to use.
I have a small issue, I use one global notes and some git branch name "local" ones.
but if I have let's say the global opened and i want to switch to the local one, if I don't close the global, it will be hidden behind the local one. it make it kinda tedious to switch between them as you have to remember to close the first before if you want to reopen it, or two use the keymap twice to close and open it again above the other.
I'm not sure I'm very clear.
I think a global_note.is_visible(name) so we can define our keymap functions or a second argument to toggle_note(name, bool close_others) might do the trick.
thanks again for this plugin which help me a lot to stay organized
ps: the function you provide for get_git_branch and so on uses vim.system which is only in the nightly version of neovim as of now.
I've rewrited those using vim.fn.system. tell me if you want my versions.
ps2: the third util function in the documentation is misnamed, should be get_git_branch instead or get_project_name

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