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

Swap tabs (pane items) left or right #14174

Closed
1 task done
eproxus opened this issue Jul 11, 2024 · 1 comment · Fixed by #15583
Closed
1 task done

Swap tabs (pane items) left or right #14174

eproxus opened this issue Jul 11, 2024 · 1 comment · Fixed by #15583
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc panel Feedback for panels. Panels are the content that fills the docks. tabs Feedback for tabs behavior, navigation, style, etc

Comments

@eproxus
Copy link

eproxus commented Jul 11, 2024

Check for existing issues

  • Completed

Describe the feature

I'd like to have keyboard shortcuts for reordering items inside a pane. I frequently have the tabs I use the most to the left, or move related tabs next to each other. It would be nice to be able to do this with keyboard shortcuts.

If applicable, add mockups / screenshots to help present your vision of the feature

For example, { and } are set to focus tabs left or right. It would be nice to be able add to swap items inside a pane:

[
  {
    "context": "Pane",
    "bindings": {
      "cmd-shift-{": ["pane::SwapItemInDirection", "Left"],
      "cmd-shift-}": ["pane::SwapItemInDirection", "Right"]
    }
  }
]
@eproxus eproxus added admin read feature [core label] labels Jul 11, 2024
@notpeter
Copy link
Member

notpeter commented Jul 13, 2024

Chrome supports reordering tabs via the keyboard:

  • ctrl-shift-pageup - move tab left
  • ctrl-shift-pagedown - move tab right

(originally mentioned by @kiaradlf in #5247 (comment))

These keys are not currently bound by default in any Zed keybind. Chrome does not support cycling from one end to the other which means you can slam a tab left or right just by holding ctrl-shift-pageup/pagedown. On a Mac laptop keyboard you can use ctrl-shift-fn-up and ctrl-shift-fn-down for this.

@eproxus On US keyboards cmd-{ is the same as cmd-shift-[ so cmd-shift-{ isn't really possible. cmd-[ and cmd-] are currently used for forward/back (just like chrome).

@notpeter notpeter added keybinds Keyboard shortcuts, mapping, binding, keymaps, etc panel Feedback for panels. Panels are the content that fills the docks. tabs Feedback for tabs behavior, navigation, style, etc and removed triage labels Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc panel Feedback for panels. Panels are the content that fills the docks. tabs Feedback for tabs behavior, navigation, style, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants