Pre-Fill searchdir in grepdialog

dizzy dizzy at roedu.net
Mon Aug 25 07:03:02 UTC 2008


On Saturday 23 August 2008 22: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?

I'm not sure if those 3 options covers this too:
- if none of the first 2 options apply then use the project dir of the single 
opened project (if and only if a single project is opened but not browsing 
through it); this should cover a rather common use case of kdevelop where it 
would be being used only with one project at a time

-- 
Dizzy
			"Linux is obsolete" -- AST





More information about the KDevelop-devel mailing list