Kate send code directly to repl

Hey,

I was trying to switch from vscode to kate, however a dealbreaker is, that sending code to a REPL (e.g Julia) has been unsuccessful so far.
I already assigned the pipe to terminal command, however it requires to do some extra steps like selecting a line and then switching focus to the terminal and pressing enter, that seems unpractical. Is there a quick workaround?

Thanks.