kate -s new-session a b c d
opens files d, c,b and a, with d as the active file.
This is really annoying when using kate with globbing. For example, using
kate -s tutorial how-to-step-*.txt
will open the last step as the active document.
I'm currently working around adding a
sort -r | xargs
Git commit 1f01415ba33d58185ec80762f5eaa9451597c292 by Christoph Cullmann, on behalf of Guillermo Molteni.
Committed on 26/11/2018 at 07:48.
Pushed by cullmann into branch 'master'.
Don't reverse order of files opened from the command line
When you do kate file1 file2 file3, it will open tabs
in same order, file1 file2 file3.
In case of having kate opened, invoking it again with
kate file4 file5 file6 final result on tabs shall be
file4 file5 file6 file1 file2 file3
Reviewed By: cullmann
Subscribers: zetazeta, cullmann, brauch, kwrite-devel
Differential Revision: https://phabricator.kde.org/D17145
M +4 -1 kate/kateapp.cpp
M +3 -1 kate/main.cpp