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

prevent :e to open files in the outline buffer #60

Open
naps62 opened this issue Apr 1, 2024 · 1 comment
Open

prevent :e to open files in the outline buffer #60

naps62 opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request up for grabs Good first issue & available for contributions

Comments

@naps62
Copy link

naps62 commented Apr 1, 2024

Try the following:

  • open outline
  • while in the ouline, open a new file (e.g.: :e other)
  • the outline buffer will change
  • now press <leader>o twice to close & open the outline

when opening the outline again at the end of this process, I get an error:

image

This is something that neo-tree.nvim and other file explorer plugins prevent. when you accidentally open a file while focused on the file explorer buffer (by :e, or telescope, or some other method), the file is magically opened not on the file explorer buffer, but on the "parent".

I'm not sure how this is achieved, but would be awesome to have the outline window behave in a similar way

@hedyhli hedyhli added enhancement New feature or request up for grabs Good first issue & available for contributions labels Apr 12, 2024
@LeonardoMor
Copy link

This can be fixed by setting winfixbuf when available on the outline window. This is on NeoVim nightly for now. See this issue.

In the meantime, there's stickybuf.nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up for grabs Good first issue & available for contributions
Projects
None yet
Development

No branches or pull requests

3 participants