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
change default keybinding in default config #5925
Conversation
@WindSoilder I believe on a mac keyboard the Alt key is = Shift-Option I tried it a few times and it seems pretty simple to hit on my keyboard... curious to see what @fdncred thinks about introducing the Alt key as we don't currently use it for any default keybinding commands, but if people like it --- it will open the door for other Alt key commands in the future... |
I use iterm2 on my Mac and I have it setup so I can do option-o like alt-o without issue. I'm fine with it. |
Oh... I never though about I'm not sure if |
It's probably fine. |
I just tested your binding and it does not appear to work at all... Unfortunately it does not appear to be working on my mac and I use the standard out of the box terminal Monterey Terminal.app Version 2.12 (443) So we might not be able to use this binding... |
just curious @fdncred can you fire up the standard terminal I am using on your mac and see if it works for you ? It would be good to know for future reference as we come up with new default key bindings which ones work |
For simplicity for now I think I would stick with either the modifier: Shift which is the way we currently have the default keybindings... We can leave the ALT keys etc... to people's custom bindings.... And then we don't have to worry about all of the keyboard issues / international keyboards etc.... I think all keyboards and platforms have shift and control by default. Just my 2 cents 😄 |
I've tested in mac terminal, it works fine for me, but we need to have extra setup:
I'm fine with changing the modifier to Ctrl |
@stormasm, After making the change that @WindSoilder suggests alt-o works fine in terminal.app. We also cannot use ctrl-o as it's already used. Check |
ok we are good ! we can now start using the ALT modifier for future key bindings.... I tested modifier : alt based on making the config change recommended above in the terminal preferences window.... Thank you both for helping me out here with this particular issue 😄 |
thanks |
@WindSoilder @fdncred just updated to latest code base and deleted config.nu so that it could get the latest version and it works great !! glad to know now that we can use ALT on the mac great job... |
Description
Introduce new keybinding
ctrl-y
in default, I use it heavily withctrl-k
...And move var menu from
ctrl-y
toalt-o
, thealt-o
comes from pycharm navigate to symbol, which is usingAlt-Cmd-O in macOS
alt-o
looks similar to it, so I chosealt-o
Tests
Make sure you've done the following:
Make sure you've run and fixed any issues with these commands:
cargo fmt --all -- --check
to check standard code formatting (cargo fmt --all
applies these changes)cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect
to check that you're using the standard code stylecargo test --workspace --features=extra
to check that all the tests pass