Re: Open Folder and select file

2016-03-19 Thread Kai Uwe Broulik
Hi, I've been working on something exactly like this: https://git.reviewboard.kde.org/r/127004/ I want it to support Windows and OS X eventually, too. Haven't found the time lately to finish it yet, though.  Cheers,  Kai Uwe 

Re: Open Folder and select file

2016-03-19 Thread Sven Brauch
Hey, On 19/03/16 21:44, Dominik Haumann wrote: > I think I will just say > QDesktopServices::openUrl(doc->url().adjusted(QUrl::RemoveFilename)); > then for now. KRun::runUrl seems to work fine as well. Greetings, Sven signature.asc Description: OpenPGP digital signature

Re: Open Folder and select file

2016-03-19 Thread Emmanuel Pescosta
Hi, there is a dbus interface (see ShowItems method in [1]) which does exactly what you want, at least on platforms with dbus. But Kai is already working on a nice job API (see [2]) which can do this in a cross-platform way. :) Cheers, Emmanuel [1] https://www.freedesktop.org/wiki/Specification

Re: Open Folder and select file

2016-03-19 Thread Dominik Haumann
On Sat, Mar 19, 2016 at 9:34 PM, Emmanuel Pescosta wrote: > Hi, > > there is a dbus interface (see ShowItems method in [1]) which does exactly > what you want, > at least on platforms with dbus. > > But Kai is already working on a nice job API (see [2]) which can do this in > a cross-platform way.

Open Folder and select file

2016-03-19 Thread Dominik Haumann
Hi, in Kate's tab bar I would like to implement a context menu action "Open Containing Folder". In KDE, this should open dolphin and preselect the specific file. On Windows, it should open the Explorer and do the same. It seems Qt Creator has some code to do exactly this: http://stackoverflow.com