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

Is there any way to use Vim keybindings inside a cell? #21

Closed
dclong opened this issue May 8, 2022 · 1 comment
Closed

Is there any way to use Vim keybindings inside a cell? #21

dclong opened this issue May 8, 2022 · 1 comment

Comments

@dclong
Copy link

dclong commented May 8, 2022

It seems to me that the Vi keybinding is navigation among cells only. Is there any way to use Vim keybindings when editing inside a cell?

@joouha
Copy link
Owner

joouha commented May 8, 2022

Hello,

While the vi key-bindings are supported (they are implemented by prompt-toolkit), unfortunately in euporie it was not possible to enter vi navigation-mode, because the escape key was used to exit cell edit mode.

I have fixed this this in afd245e and made a new release (v1.6.1).

Now, if you activate the Vi key-bindings (Settings -> Editor key bindings -> Vi in the menu), when you enter cell edit mode, this will take you to Vi insert mode.
Pressing Escape will take you to Vi navigation mode, allowing you to edit the cell using vi style key-bindings.
Pressing Escape again will take you out of cell edit mode, allowing you to navigate the notebook.

Sorry this has been broken for so long - I don't really use the vi key-bindings myself and hadn't noticed they weren't working properly!

@joouha joouha closed this as completed May 8, 2022
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

No branches or pull requests

2 participants