-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Add vim bindings to TerminalMenus #37940
Conversation
While the menus behave as expected when using them directly (on macOS, in case some relevant character codes are different), the tests are broken. I didn't manage to write the proper data to |
@ararslan, I need some help with this. I'm pinging you because I think you might be a community manager of sorts. Sorry, if I'm wrong about that. I don't know who would be the right person to ask. |
Sorry, I'm not familiar with the TerminalMenus code so I'm afraid I can't be of much help here. A good place to start would be to rebase your branch on master to resolve the conflicts, then go from there. |
* `k` to move up * `j` to move down * `<space>` as an alternative to `<enter>`
9ec7568
to
611309d
Compare
I'm a fool. I didn't notice that However, not having seen this code for quite some time makes me want to refactor the tests. What do you think? Originally, I didn't want to touch every usage of multi_menu = MultiSelectMenu(string.(1:10), charset=:ascii)
@test simulate_input(deepcopy(multi_menu), keydict, :enter, :down, :enter, 'd') == Set([1,2])
@test simulate_input(deepcopy(multi_menu), vimdict, :enter, :down, :enter, 'd') == Set([1,2]) Instead of this: # ...
@test simulate_input(Set([1,2]), multi_menu, :enter, :down, :enter, 'd') Moving the expectation to the outside of the call makes checking errors easier. That's why I opted to have |
Bump 🙂 |
@KristofferC bump 🙂 |
LGTM and will be nice together with #38956 |
* `k` to move up * `j` to move down * `<space>` as an alternative to `<enter>`
* `k` to move up * `j` to move down * `<space>` as an alternative to `<enter>`
* `k` to move up * `j` to move down * `<space>` as an alternative to `<enter>`
This is a pretty breaking change, for example for FoldingTrees which was already using the space bar to mean something different and now would have to change. Since we haven't released 1.7 yet, should we revert this? It could be arranged as a configuration option given to the |
Revert "Add vim bindings to TerminalMenus (#37940)"
This reverts commit 4a19b75. Closes JuliaLang#41799.
This reverts commit 4a19b75. Closes JuliaLang#41799.
In addition to the current way to interact with a menu, this PR adds
k
to move up,j
to move down,<space>
as an alternative to<enter>
.