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

Feature request: Vim+Emacs(Mac) keyword shortcuts for selection #102

Closed
zitudu opened this issue Sep 18, 2020 · 4 comments
Closed

Feature request: Vim+Emacs(Mac) keyword shortcuts for selection #102

zitudu opened this issue Sep 18, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@zitudu
Copy link

zitudu commented Sep 18, 2020

I was wondering if it's possible to move cursor up/down-ward just like in vim or terminal?

That is:

j or Ctrl-N -> ↓
k or Ctrl-P -> ↑
h or Ctrl-B -> ←
l or Ctrl-F -> →

@andreatulimiero
Copy link

andreatulimiero commented Jan 28, 2021

I believe giving users the chance to specify a different key combination to scroll up and down would be a nice addition and should be fairly easy to implement.
However, for some notorious key combinations (e.g., Ctrl-J or Ctrl-N) a change is required to python-readchar too -- If I am not mistaken they are not here.

Update:
I've added an issue and a PR for this.
Also, IMHO, I believe it would be better to change the issue, and feature request, to something like "Custom key codes for scrolling".

@thebashpotato
Copy link

Looks like someone was working on this, but they didn't follow through. I have the code that provides this functionality (for vim atleast). I may implement Emacs

@Cube707 Cube707 added the enhancement New feature or request label Aug 15, 2022
@Cube707
Copy link
Collaborator

Cube707 commented Aug 15, 2022

if you have the code ready, feel free to open a PR and I will review it.

But reading #102 (comment) I agree that it would probably be best to make this configurable (with the current behavior as defautl), instead of adding a bounch to the default behavior, possibly creating overlaps in functionalaty (for example j is usefull for yes if your aplication is in german, etc...)

@Cube707
Copy link
Collaborator

Cube707 commented Jun 22, 2024

also closing this because of what was discussed here #560 (comment)

@Cube707 Cube707 closed this as completed Jun 22, 2024
@Cube707 Cube707 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants