Topic: Save As' with Projects (1 of 9), Read 36 times
Conf: VEDIT Suggestions
From: Rich Hureau
Date: Monday, January 24, 2005 02:57 PM

There is one problem I keep having with Vedit's handling of the "default" directory in Projects that I wish could be fixed.

This is the case - I open an existing project, with all the files being in the same directory. I do a File/New, and type in some text. I then do a Save As. Instead of picking the directory all the other files are in, Vedit always presents the Vedit Project directory as the dir to save the file. I then have to laboriously browse to the dir all the other files are in to save my new file.

I realize that a project can have files in multiple dirs, so this may be where the problem is - i.e which directory should it use? But just about ANY one would be better than the Project directory. Perhaps it could use the dir of the file with the closest buffer number?

Thanks,
Rich Hureau

 


Topic: Re: Save As' with Projects (2 of 9), Read 23 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, January 24, 2005 03:32 PM

At 02:57 PM 1/24/2005, you wrote:
>This is the case - I open an existing project, with all the files being in the same directory. I do a File/New, and type in some text. I then do a Save As. Instead of picking the directory all the other files are in, Vedit always presents the Vedit Project directory as the dir to save the file. I then have to laboriously browse to the dir all the other files are in to save my new file.

Simple solution - don't use {FILE, New}. Instead use {FILE, Open} to create the new file. The default directory is the same as the current file.

Ted.

 


Topic: Re: Save As' with Projects (3 of 9), Read 23 times
Conf: VEDIT Suggestions
From: Rich Hureau
Date: Monday, January 24, 2005 03:35 PM

Ted,
Good idea! You just taught an old dog a new trick! Thanks!

Rich

 


Topic: Re: Save As' with Projects (5 of 9), Read 20 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Monday, January 24, 2005 04:46 PM

On Mon, 24 Jan 2005 15:35:00 -0500, Rich Hureau wrote:

>Ted,
>Good idea!
>You just taught an old dog a new trick! Thanks!

Dito.

Christian

 


Topic: Re: Save As' with Projects (4 of 9), Read 26 times
Conf: VEDIT Suggestions
From: Christian Ziemski
Date: Monday, January 24, 2005 03:37 PM

On Mon, 24 Jan 2005 14:57:00 -0500, Rich Hureau wrote:

>There is one problem I keep having with Vedit's handling of the
>"default" directory in Projects that I wish could be fixed.
>
>This is the case - I open an existing project, with all the files
>being in the same directory. I do a File/New, and type in some text.
>I then do a Save As. Instead of picking the directory all the other
>files are in, Vedit always presents the Vedit Project directory as
>the dir to save the file.

Here it uses other directories (under Win2k).

That is a "feature" of the newer Windows versions.
It has driven me crazy many times...

Windows seems to remember the last "save as" directory per
application. And so VEDIT simply uses this stored value.

>I realize that a project can have files in multiple dirs, so this
>may be where the problem is - i.e which directory should it use?
>But just about ANY one would be better than the Project directory.
>Perhaps it could use the dir of the file with the closest buffer
>number?

Perhaps a config value "Default_Directory" per project would be nice?


Christian

 


Topic: Re: Save As' with Projects (6 of 9), Read 25 times
Conf: VEDIT Suggestions
From: Pauli Lindgren
Date: Tuesday, February 15, 2005 11:46 AM

On 1/24/2005 3:37:05 PM, Christian Ziemski wrote:
>
>Windows seems to remember the last "save
>as" directory per
>application. And so VEDIT simply uses
>this stored value.

That is a problem with many Windows programs. Therefore I think it is good idea to have the application to remember the last directory itself, instead of using Windows default.

For example TerraConv (my first published Windows program) keeps track of two default directories: one for Terragen files, and another for imported/exported image files. (This is because the Terragen files are typically located in one place and the image files in some other place(s).)

>
>Perhaps a config value
>"Default_Directory" per project would be
>nice?

It sure would be, especially if the value could be read from some Vedit system variable.

In addition to using it as default load/save directory, it could be used as known place for TAGS file, makefile, etc, and for storing other project specific information.

--
Pauli

 


Topic: Save As' with Projects (7 of 9), Read 21 times
Conf: VEDIT Suggestions
From: Ian Binnie
Date: Tuesday, February 15, 2005 10:46 PM

On 1/24/2005 2:57:05 PM, Rich Hureau wrote:
>There is one problem I keep
>having with Vedit's handling
>of the "default" directory in
>Projects that I wish could be
>fixed.
>
>This is the case - I open an
>existing project, with all the
>files being in the same
>directory. I do a File/New,
>and type in some text. I then
>do a Save As. Instead of
>picking the directory all the
>other files are in, Vedit
>always presents the Vedit
>Project directory as the dir
>to save the file. I then have
>to laboriously browse to the
>dir all the other files are in
>to save my new file.

I likewise find the Vedit default inconvenient at times, and have written a couple of macros to set my most frequently used defaults.

There is a work around.

Pick one file in the project, Save as and tick the Change directory box.
The directory will then be used as the default for other saves.

 


Topic: Re: Save As' with Projects (8 of 9), Read 21 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Tuesday, February 15, 2005 11:45 PM

At 10:47 PM 2/15/2005, you wrote:
>I likewise find the Vedit default inconvenient at times, and have written a couple of macros to set my most frequently used defaults.

Tom and I are going to discuss how to implement one or more "Project directories" to better address this issue.

Ted.

 


Topic: Re: Save As' with Projects (9 of 9), Read 26 times
Conf: VEDIT Suggestions
From: Ian Binnie
Date: Thursday, February 17, 2005 07:41 PM

On 2/15/2005 11:45:09 PM, Ted Green wrote:
>At 10:47 PM 2/15/2005, you
>wrote:
>>I likewise find the Vedit default inconvenient at times, and have written a couple of macros to set my most frequently used defaults.
>
>Tom and I are going to discuss
>how to implement one or more
>"Project directories" to
>better address this issue.
>

Ted,
If you are doing something like this I would like to see a macro command to set the default directory.

While you suggested File Open, this is not the ideal answer for me.

I often copy text from my browser, paste into Vedit & save.

For example when I find some useful text on this Forum I want to save into a directory, I use the following:-
FO("D:\progs\Vedit\text\$$$.tmp",CHGDIR) FC(NOMSG|NOEVENT)

This is a little clumsy; it would be nice to be able to set this without creating a file.

PS This trick sets the default for File Save, but NOT File Save as

PPS I have noticed that Vedit uses Menu items like "Save as", whereas most Windows programs use "Save As"