[Lazarus] (patch) File Open dialog start in the directory of active source file
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Jun 10 21:06:46 CEST 2008
On Mon, 9 Jun 2008 23:26:20 +0300
"Kostas Michalopoulos" <badsector at slashstone.com> wrote:
> >> Hello,
> >>
> >> This tiny patch implements a feature which can be found in
> >> Programmer's Notepad, and which proves to be very useful (at least
> >> to me). It makes the File Open dialog open in the directory of the
> >> file which is active in source notebook. Thus, each opened file
> >> acts as a filesystem bookmark, and whenever you work with sources
> >> from several directories, efforts
> >> needed to navigate in File Open dialog are greatly reduced.
> >>
> >> Maybe this feature must be made configurable (I am ready to do it,
> >> let me know
> >> if I should), but honestly I cannot imagine any reason to disable
> >> it.
> >
> > I think it should definitely be made configurable.
> > I much prefer the notion of the 'currently active' directory.
> >
> > I have many files open, in many directories. Often the current file
> > (rtl/vcl/fcl whatever files, opened with ctrl-enter on a unit name)
> > will be in the wrong directory, which is not part of the project.
> >
> > Michael.
>
> I like this feature. However i also agree with Michael about being
> configurable. I think a combobox in options like
>
> Default file dialog directory:
> * Last used directory
> * Current file's directory
> * Project directory
>
> The last one can enable a checkbox below (will be disabled for the
> first two):
> * Use current file's directory for non project files
At least all three directories should be available in the history.
Mattias
More information about the Lazarus
mailing list