Pre-Fill searchdir in grepdialog

Manuel Breugelmans mbr.nxi at gmail.com
Sat Aug 23 20:58:47 UTC 2008


On Saturday 23 August 2008 21:12:45 Andreas Pakulat wrote:
> Hi,
>
> I'm going to do a bunch of things on the grep plugin. I'm not 100% sure
> about the best way to pre-fill the searchdir for the dialog. My current
> plan is:
>
> - get the active document, try to find a project for it. If the project
>   is found use the projectdir
> - if no project can be found for active document, check the current
>   selection in the project treeview and use the projects of those, which
>   means supporting multiple searchdirs
> - if none of the above works I think we can just fall back to either
>   $HOME or the "Documents" location - not sure which one is better
>
> Better/Other ideas? comments?
>
> Andreas

+1





More information about the KDevelop-devel mailing list