-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
keymap feature #925
keymap feature #925
Conversation
This looks promising to me! 👍 |
@codetheory @matheuss what do you think? |
Cool :) Is it necessary to couple keybindings so tightly to Couldn't an alternative be to just treat it as a regular part of the config? That way you could do something like Also, regarding the keymap, I think it would really help in terms of user experience if all the default keybindings are listed explicitly where you're able to change them, so that you don't have to look up the names to know how to make modifications (seeing as we don't have an insane amount of different combinations). This might make the config too large though, which is why I previously argued for having it in a separate file (and bundle everything below a In regards to if it should be implemented in the core or as a default plugin, I think it would definitely make more sense to have this in Hyper itself, as it wouldn't be too different from the already existing stuff that makes use of values from the config. |
Very excited to see this being implemented! I found this PR while looking to add ketbindings to hyper. i have a suggestions for a Hyper command, I would love to be able to have a global key binding that would bring up the hyper app to the foreground in focused where ever I was, not sure how you would name that command tho. |
@chennybaby i believe there are several plugins with that idea in mind. check out https://github.com/bnb/awesome-hyper |
This looks an awful lot like what I was looking for in #783. A couple of suggestions:
If the PR can fulfill these requirements, then it's a huge win and I'd be proud to switch to Hyper full-time. I'm stuck on iTerm because of the lack of disable-ability, if that makes any sense. |
I think it might also make sense to think about generalizing everything and letting users specify which keys correspond to which keybinds—I quite like the |
Great idea @iamstarkov. I'm interested in pc-style word navigation inside the terminal as well as pc-style copy/paste (would obviously need to remap ctrl+c to something else)... something like...
Would this PR support that? |
Correct, Its not necessary to couple keybindings to Menu. Though, its the only working RPC-ish way to emit actions to both |
Correct, Its not possible with accelerators. |
I finally see what you are saying, thats probably gonna work out |
Its debatable, user's keymap config rarely would grow much. And default keybindings will be configured in default config in Hyper itself. |
will copy our discussion from slack:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Work @iamstarkov 👍
@iamstarkov mind resolving the merge conflicts? @PSNAppz are you able to merge once conflicts are accurately resolved? this would be great and open up even more doors for hyper via https://github.com/iamstarkov/hyper-keymap#-caveats |
@megalithic Yes. |
heads up to @megalithic and everybody in this thread: yay, i will be working on this on this holyday |
@iamstarkov To make your life easier (and to get this wonderful feature out faster), I took a stab at rebasing this. Feel free to peruse! https://github.com/zeit/hyper/compare/master...macobo:iamstarkov-feat/keymap-2?expand=1 |
Bump on this as without this hyper is unusable on linux - should I open a separate PR with the rebase? |
@macobo can i ask you to make a pull-request to my fork with your rebase? |
sorry, i have to say this: i couldnt make it and have no energy to fix this issue on my own. That said, I will close this pull-request. Another reason to close PR is this branch and code is outdated. Please refer to original issue #872 |
Plz add request inside issue: ppot#11 |
PR needs feedback
I want flexible keymap for Hyper #872. First approach to use single RPC to communicate all the didnt really work out well, because of two separate RPCs, one for Electron and on for Renderer windows. So there is another approach to use Menu as kind of one entry-point to bind all hotkeys.
command
field, which can be used to identify what for this menu item is responsible🤔 Suggestion:
question messageBox
with "add it" or "dont bother me" buttons.😟 Cons (temporarily):
hyper-keymap
is not working fully, due to existing key bindings declared inlib/containers/hyper.js
. Though, this pull-request almost fixes it.move-word-{left,right}
needs to be implemented the same way as everything else. I think this is possible, because as far as it is hotkey, there is no need in passing additional arguments, so it should possible to implement. That said, i seek for help to do that.😎 Pros:
I tried my best, to bring keymap management to Hyper and now looking for feedback and discussion. What do you think about proposed approach?