Is there any way to make the line where the cursor is located back to the center/top of the screen?

Yeah, I totally agree!

For example, by turning on “Run on plugin load” you can add your custom editor/file context menu items, Obsidian event handlers (e.g. vault.on("create", ...)), and so on.

That’s why: Is it possible to modify Obsidian's default behavior with code? - #7 by ush

I think you can’t, unfortunately :cry: