https://kotlinlang.org logo
#datascience
Title
# datascience
r

Richard Glen

10/26/2023, 1:47 PM
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

Ilya Muradyan

10/26/2023, 2:01 PM
Hi! What is normal mode? What do you want to happen after pressing Enter?
r

Richard Glen

10/26/2023, 2:43 PM
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

Ilya Muradyan

10/26/2023, 3:23 PM
So, you wish to execute the cell after pressing Enter, right?
r

Richard Glen

10/26/2023, 3:26 PM
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

Ilya Muradyan

10/26/2023, 3:29 PM
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

Richard Glen

10/26/2023, 3:38 PM
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

Ilya Muradyan

10/26/2023, 3:46 PM
It's interesting, context of which notebook does this action use then?
r

Richard Glen

10/26/2023, 3:53 PM
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.