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

macOS: change default keybinds for equalize splits, jump to prompt -1/+1 #3078

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Dec 23, 2024

From: #2363 (comment)

The justification there makes sense to me and I think it would be a good change to make. Copied here:

There are a few bindings that feel a little weird on macOS. My suggestions:

(1) Equalize Splits

keybind = shift+opt+equal=unbind
keybind = ctrl+cmd+equal=equalize_splits

The default hijacks the ± character on US keyboards. Believe it or not, I do use ± in the terminal. Ctrl+cmd+equal matches the arrow key bindings in the Window > Resize Split menu and thus looks more elegant and is easier to memorize.

(2) Jump to Prompt

keybind = cmd+up=jump_to_prompt:-1
keybind = cmd+down=jump_to_prompt:1

These are the bindings in Terminal.app. The default shift-cmd-up/down is usually associated with extending a selection. Cmd-up/down are available (they currently act as simple up/down). I bind them additionally to the defaults.

From: #2363 (comment)

The justification there makes sense to me and I think it would be a good
change to make. Copied here:

> There are a few bindings that feel a little weird on macOS. My suggestions:
>
> (1) Equalize Splits
> ```
> keybind = shift+opt+equal=unbind
> keybind = ctrl+cmd+equal=equalize_splits
> ```
> The default hijacks the `±` character on US keyboards. Believe it or not, I do use ± in the terminal. Ctrl+cmd+equal matches the arrow key bindings in the Window > Resize Split menu and thus looks more elegant and is easier to memorize.
>
> (2) Jump to Prompt
> ```
> keybind = cmd+up=jump_to_prompt:-1
> keybind = cmd+down=jump_to_prompt:1
> ```
> These are the bindings in Terminal.app. The default shift-cmd-up/down is usually associated with extending a selection. Cmd-up/down are available (they currently act as simple up/down). I bind them additionally to the defaults.
@mitchellh mitchellh merged commit 93de811 into main Dec 23, 2024
10 checks passed
@mitchellh mitchellh deleted the push-ukszvstmytuo branch December 23, 2024 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant