tiagovla / scope.nvim

Revolutionize Your Neovim Tab Workflow: Introducing Enhanced Tab Scoping!
406 stars 21 forks source link

Buffer appears unlisted if I do `:tab sb` #2

Open ajitid opened 2 years ago

ajitid commented 2 years ago

Steps to reproduce:

tiagovla commented 2 years ago

I think I tried to call vim.api.nvim_buf_set_option(0, "buflisted", true) on TabEnter but it was not quite working. I will check it again.

tiagovla commented 2 years ago

@ajitid could you check if this fixed it?

ajitid commented 2 years ago

Seems like this fixed it, but this also created a new problem. To reproduce:

tiagovla commented 2 years ago

I noticed it. I think the problem is that the TabEvents happen before BufEnter. I'm trying to fix this without introducing custom commands.

tiagovla commented 2 years ago

I think it now works with :tabnew and <c-w>T. It still doesn't work with :tab sb, I think it's an upstream issue, it doesn't trigger the TabNewEntered event. They fixed <c-w>T https://github.com/neovim/neovim/issues/4979 a while ago.

EDIT: here's the issue https://github.com/neovim/neovim/issues/4334

ajitid commented 2 years ago

Yep, I've subscribed to that issue. Let's keep this open until upstream is resolved.

ajitid commented 1 year ago

I think it now works with :tabnew and <c-w>T. It still doesn't work with :tab sb, I think it's an upstream issue, it doesn't trigger the TabNewEntered event. They fixed <c-w>T neovim/neovim#4979 a while ago.

EDIT: here's the issue neovim/neovim#4334

The neovim issue you mentioned has been fixed. I haven't checked if it fixes this ticket as well.

ajitid commented 10 months ago

Seems like this fixed it, but this also created a new problem. To reproduce:

  • Open a file
  • Do :tabnew
  • Do :ls
  • Even though this is a new tab you would see the buffer in your previous tab as your alternate buffer here

Just checked, this isn't fixed.