kate editor with built-in terminal
I don't know about Kate, but with emacs you can do : Alt + X - Shell and you have a terminal inside a text editor inside a terminal :)

https://www.masteringemacs.org/article/running-shells-in-emacs-overview