bug: When opening the tags menu from netrw, the tags menu does not go away until I reopen neovim
- Dominant language
- Lua
- Stars
- 716
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
### Did you check docs and existing issues?
- [x] I have read the Grapple docs
- [x] I have searched the existing issues of Grapple
### Neovim version (nvim -v)
NVIM v0.12.5 Build type: Release LuaJIT 2.1.1785763465 Run "nvim -V1 -v" for more info
### Operating system/version
NixOS 26.11
### Describe the bug
I open netrw, and then call the `grapple.toggle_tags()` function via a keybind. The window is not focused and does not close when I enter a file. It is still not closed if I focus it by calling `toggle_tags` again, and pressing q or jumping to a tag by pressing enter.
### Steps To Reproduce
1. :Ex
2. :Grapple toggle_tags
3. Observe the tags window not closing.
### Expected Behavior
The tags window behaves like when opening it from a file.
### Repro
```Lua
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"cbochs/grapple.nvim"
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with :Ex, :Grapple toggle_tags, and the grapple.toggle_tags() entry point from netrw. Trace how the tags window handles focus and closing in that context; done means it behaves like it does when opened from a file and closes after selecting a file, pressing q, or jumping to a tag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100