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

Keep <C-t> for action select_tab #2419

Closed
sbeyer opened this issue Mar 10, 2023 · 2 comments
Closed

Keep <C-t> for action select_tab #2419

sbeyer opened this issue Mar 10, 2023 · 2 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@sbeyer
Copy link

sbeyer commented Mar 10, 2023

Is your feature request related to a problem? Please describe.
When I use telescope, I usually use C-x, C-v and C-t to open the selected file in a new split, vsplit, and tab respectively. However, C-t is overridden to action change_cwd.

Describe the solution you'd like
I would like, that C-t is kept as default select_tab action.

Describe alternatives you've considered
I fixed it via the configuration

      local actions = require "telescope.actions"
      local fb_actions = require("telescope").extensions.file_browser.actions
      require("telescope").setup {
        extensions = {
          file_browser = {
            mappings = {
              i = {
                ["<C-t>"] = actions.select_tab,
                ["<C-z>"] = fb_actions.change_cwd,
              },
              n = {
                t = actions.select_tab,
                z = fb_actions.change_cwd,
              },
            },
          },
        },
      }

Additional context
None.

@sbeyer sbeyer added the enhancement Enhancement to performance, inner workings or existent features label Mar 10, 2023
@jamestrew
Copy link
Contributor

This is specific to telescope-file-browser rather than core telescope but yeah, that's why the mappings are configurable. We will never agree on one correct key mapping.
There's no enhancement to make here.

@sbeyer
Copy link
Author

sbeyer commented Mar 18, 2023

I'm so sorry! I thought I would have written this issue for telescope-file-browser. It seems I had both projects open in different tabs and started the issue in the wrong tab. I'm deeply sorry for the disturbance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

2 participants