Skip to content

bug: #1680

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

Open
4 tasks done
horseinthesky opened this issue Apr 3, 2025 · 0 comments
Open
4 tasks done

bug: #1680

horseinthesky opened this issue Apr 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@horseinthesky
Copy link

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.1-dev-55be203

Operating system/version

Ubuntu 24.04

Describe the bug

The Snacks picker allows the selection of multiple items in the list window. It also, by default, has a key to open selected items in tabs:

["<c-t>"] = "tab",

But it opens just one (random) item in a tab. The rest got opened in buffers.

Steps To Reproduce

  1. Setup Snacks
require("snacks").setup {
  picker = {
    win = {
      list = {
        keys = {
          ["<c-t>"] = { "tab", mode = { "n", "i" } },
        },
      },
    },
  }
}
  1. Open any file
  2. Run :lua Snacks.picker.files()
  3. Pick any number of files
  4. Press <c-t>
  5. See just one of the selected files is open in a tab
  6. Run :ls to see others are opened in buffers

Expected Behavior

All selected items are opened in tabs.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})
@horseinthesky horseinthesky added the bug Something isn't working label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant