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

How can I unmap tab? #179

Closed
habanerotostitos opened this issue Oct 17, 2023 · 4 comments · Fixed by #211
Closed

How can I unmap tab? #179

habanerotostitos opened this issue Oct 17, 2023 · 4 comments · Fixed by #211
Labels

Comments

@habanerotostitos
Copy link

habanerotostitos commented Oct 17, 2023

I use the tab keymap for something else and would like to unmap it from Spectre but couldn't figure out how.

I tried to follow the documentation for other mappings and just replaced the example with "tab" instead, but it didn't seem to work.

This is what I tried to remap it off of <Tab> and into <S-Tab>

mapping = { ["tab"] = { map = "<S-Tab>", cmd = "<cmd>lua require('spectre').tab()<cr>", } }

@EpsilonKu
Copy link
Member

Ahh, it was add recently. Yeah, we should add reconfiguration.

@xzbdmw
Copy link

xzbdmw commented Feb 19, 2024

Hello what's the state of this

@EpsilonKu
Copy link
Member

I nearly done #110 after I will do this. Should be easy. Sorry, I was inactive long-time only now recovering.

@EpsilonKu
Copy link
Member

Can you guys try #211 . Add to config mapping without ['tab], ['shift-tab'] or remap to another key:

...
        ['tab'] = {
            map = 'gn',
            cmd = "<cmd>lua require('spectre').tab()<cr>",
            desc = 'next query'
        },
        ['shift-tab'] = {
            map = 'gp',
            cmd = "<cmd>lua require('spectre').tab_shift()<cr>",
            desc = 'previous query'
        },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants