Review Request 118987: Export DBus interface for jumping to a specific line in a file

Max Schwarz max.schwarz at online.de
Mon Jun 30 16:25:05 UTC 2014



> On June 30, 2014, 3:22 p.m., Milian Wolff wrote:
> > shell/documentcontroller.h, line 143
> > <https://git.reviewboard.kde.org/r/118987/diff/3/?file=285427#file285427line143>
> >
> >     ah but now that the default column is 0, you don't generate an invalid cursor anymore. Can't you leave it at -1? What will happen, when you open a document at some line but with cursor == -1? Will nothing happen at all?

line=-1 and column = 0 is is still an invalid cursor:
http://api.kde.org/4.x-api/kdelibs-apidocs/interfaces/ktexteditor/html/cursor_8cpp_source.html#l00047


- Max


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118987/#review61291
-----------------------------------------------------------


On June 30, 2014, 12:58 p.m., Max Schwarz wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118987/
> -----------------------------------------------------------
> 
> (Updated June 30, 2014, 12:58 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Repository: kdevplatform
> 
> 
> Description
> -------
> 
> The currently exported DBus interface does not allow opening files & jumping to locations inside the file. This ability is useful for external tools, which could offer to switch to KDevelop with the cursor right at the problematic line of code.
> 
> So add optional line and column parameters to the "openDocumentSimple()" method.
> 
> In the future the kdevelop executable could be extended to support line number selection from the command line using this DBus call.
> 
> 
> Diffs
> -----
> 
>   shell/documentcontroller.h 485588a 
>   shell/documentcontroller.cpp 1468b16 
> 
> Diff: https://git.reviewboard.kde.org/r/118987/diff/
> 
> 
> Testing
> -------
> 
> Tested manually with qdbus and also with a custom log viewer application, which opens KDevelop at the originating line if you click on a log message.
> 
> 
> Thanks,
> 
> Max Schwarz
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140630/a7c4871c/attachment-0001.html>


More information about the KDevelop-devel mailing list