Kate opens files in a new window when used from the command line

I usually open files from the command line using:

kate <filename>

I recently updated kate and now when I do this it opens it in a new window.

Not sure if this is a bug, or was intentional and changable with a setting.
I am running the latest version from here as the microsoft store installers keep freezing on me.

This is running on Windows 10 21H2.

So there was a similar post regarding editing all files in the same process a while back, and I’m not sure if Kate differs much in Windows, but assuming that the command line flags are the same you could try using either -s or --start-name.

Something like:

kate -s mysession <filename>
2 Likes

This works, thanks!

Before i updated it would open it in the current session by default if i used the embedded terminal, do you have any idea why this changed?

It turns out the problem was caused by having two different installations of kate, one from scoop and one from the executable, and launching from the command line opened a different one than the one i was runnning.

tl;dr: problem was between the keyboard and chair.

2 Likes