-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Move a single editor from one pane to another with vim ctrl-w
#20205
Comments
Not just vim. To support Sublime Text keybindings I don't see any PRs open for anything similar, I'd like to take a swing at it. So analogous to |
@Igonato please do! If. you want help feel free to book time here: https://calendly.com/conradirwin/pairing |
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Ready for feedback #21760 Question: should we close the pane if the last item has been moved from it?
Example bindings: "alt-shift-h": ["workspace::MoveItemToPaneInDirection", "Left"],
"alt-shift-l": ["workspace::MoveItemToPaneInDirection", "Right"],
"alt-shift-k": ["workspace::MoveItemToPaneInDirection", "Up"],
"alt-shift-j": ["workspace::MoveItemToPaneInDirection", "Down"],
"ctrl-shift-1": ["workspace::MoveItemToPane", 0],
"ctrl-shift-2": ["workspace::MoveItemToPane", 1],
"ctrl-shift-3": ["workspace::MoveItemToPane", 2],
"ctrl-shift-4": ["workspace::MoveItemToPane", 3],
"ctrl-shift-5": ["workspace::MoveItemToPane", 4],
"ctrl-shift-6": ["workspace::MoveItemToPane", 5],
"ctrl-shift-7": ["workspace::MoveItemToPane", 6],
"ctrl-shift-8": ["workspace::MoveItemToPane", 7],
"ctrl-shift-9": ["workspace::MoveItemToPane", 8] The latter should be added to the Should I also add vim defaults? If so, which exact? |
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 An action to move the active editor to a pane in a specified direction
Closes zed-industries#20205 Release Notes: - Added `MoveItemToPane` and `MoveItemToPaneInDirection` actions --------- Co-authored-by: Kirill Bulatov <[email protected]>
Is this supposed to work when not using default sublime keybindings? I'm running zed version 0.166.1 on macos and I added following bindings to my keymap.json
And nothing happens when I press ctrl-shift-{x}. ctrl-{x} works I'm also not seeing commands mentioned in the PR in the default zed key bindings, but I'm guessing that's expected hence added them to my keymap.json |
Yes. Those things are independent.
Yes. They aren't part of any default other than Sublime based at the time.
Do you have the panes created in advance (e. g. Check that "left": ["workspace::MoveItemToPane", { "destination": 0 }],
"right": ["workspace::MoveItemToPane", { "destination": 1 }], |
Thanks for replying over here! yes, I do have at least 2 panes before doing that. What I did is this Added these keybindings to verify that they work at all
And they worked (they don't do anything without assignment as expected). Then i tried them with
And nothing happens. Here's a recording Screen.Recording.2024-12-22.at.1.18.05.PM.movI'm sure I'm doing something wrong, but I can't figure out what. They also don't work when I restart zed. |
I guess one last thing to verify - is that you're not somehow using an older version of Zed without the change. Then it's a bug. Please, post the logs and the system info. I think it's better to create a separate issue, so we don't spam people in this closed one, feel free to @Igonato over there so I can look at it |
Check for existing issues
Describe the feature
In #5574
ctrl-w hjkl
were set up to move between panes andctrl-w HJKL
to move a whole pane in a direction. I'm hoping for a variant of these commands that lets me move a single editor from one pane to another pane.Unless I missed it, I don't think there's a command for this at the moment. I think having that command without any default keymapping would be wonderful.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: