Skip to content

bug: Man picker does not respect <C-T> ➜ tab default binding #2171

@rbmarliere

Description

@rbmarliere

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)

v0.11.3

Operating system/version

openSUSE Tumbleweed

Describe the bug

The manual pages picker does not respect the tab key bind. That is, <C-t> has the same effect of <CR>.

Steps To Reproduce

  1. :lua Snacks.picker.man()<CR>
  2. Select something in the list with <C-t>
  3. Confirm it has opened in the same tab

Expected Behavior

It should open in a new tab.

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
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions