Sorry for cross sending, but maybe someone here ca...
# datascience
r
Sorry for cross sending, but maybe someone here can help. Or at least point to a reference where I can figure this out.
1
i
Hi! What is normal mode? What do you want to happen after pressing Enter?
r
Hi thanks for replying. Normal mode is the "Normal mode" in vim modal editor (or in ideavim plugin). What I want to happen is to execute the current block where my cursor currently is in.
I'm expecting something like:
But I don't know what intellij action should I trigger.
i
So, you wish to execute the cell after pressing Enter, right?
r
Yes please. I need to know what should I put in after ":action" in the ".ideavimrc"
To clarify, more of I need to know how I can remap the "Execute cell" action in ideavim plugin.
i
There is a number of related actions: just run the cell, run and select below, run and insert below. You can assign the shortcut you need for these actions including just Enter. Or your point is that it doesn't work in ideavim? My bad is that I don't have experience with ideavim
But I can ask the responsible colleague if it's the point
🙌 1
r
Hi @Ilya Muradyan I think I found what I need now.
I didn't know I could track action ids and find how to map a specific action. Maybe you could ask your colleague who uses ideavim about how can I improve the mapping above. What's bad about this is it always executes the action even when I'm not on a notebook buffer. Thanks alot for your help! <3
i
It's interesting, context of which notebook does this action use then?
r
When my cursor is in a normal file it does nothing (I think). When my cursor is in a notebook file and I have selected a cell, it runs the cell now.