Review Request 112226: Add CLI option to open files in running instances

Sven Brauch svenbrauch at
Sun Aug 25 17:52:06 UTC 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Aug. 25, 2013, 5:52 p.m.)

Review request for KDevelop.


Implement changes suggested by Milian, again.
Regarding splitting into separate functions, this (see attached) is what I can offer, I think splitting it more makes no sense. You'll have more code dealing with what the function returns and passing stuff to the function than you have like this.


This feature has been requested various times by various users,
and I'd like to have it too.

The new option is -o <filename> / --open-file <filename>.
 * If no sessions are running, behaves like "kdevelop <file>".
 * If exactly one session is running, opens the file in that session
 * Otherwise, shows the session picker and opens the file in that session

Diffs (updated)

  app/main.cpp 12fa0e0 



Tested all three cases, works


Sven Brauch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list