Remember the last folders used in panels...

Something is missing in Far Manager? You have a great idea that should be heard? Write here.
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Remember the last folders used in panels...

Post by Mauro72 »

Hi,
A option to save the last folders/DIRs used before exit FAR!!!
Not the Autosave option, only save the last DIRs. Because i change the panels width, format,
working with far, and i don't want to save the panels changes. Only the last used DIRs.
May be a plugin?
Thanks.
2useven10
Posts: 5209
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 18 times
Been thanked: 310 times

Re: Remember the last folders used in panels...

Post by 2useven10 »

Alt-F12 Enter ?
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

The last used folders in the two panels. Not only one show in the history.
Shmuel
Posts: 6820
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Remember the last folders used in panels...

Post by Shmuel »

Mauro72 wrote:A option to save the last folders/DIRs used before exit FAR!!!
The following macros will do what you want provided you exit Far via F10.
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

Thanks Shmuel... works excellent!
But i have error window after exit FAR. Always!!!
Last version, Far Manager v3.0 build 3597 x86
Shmuel
Posts: 6820
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Re: Remember the last folders used in panels...

Post by Shmuel »

I don't have error window (same Far). Could you show a screenshot of that window?
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

far_error.jpg
far_error.jpg (167.37 KiB) Viewed 21385 times
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

Windows XP SP3...
Shmuel
Posts: 6820
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Remember the last folders used in panels...

Post by Shmuel »

I really have no idea (same Windows, same Far, no error). Maybe try it on stable 3525 build?

Here is the modification of the macros which minimizes the number of mf.msave() calls (they take a noticeable time).
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

Fixed the error: Deleting plugincache32.db
Thanks for your help Shmuel ;)
User avatar
Mauro72
Posts: 220
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Re: Remember the last folders used in panels...

Post by Mauro72 »

mmmm, again the error!!! oops
Shmuel
Posts: 6820
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Re: Remember the last folders used in panels...

Post by Shmuel »

Again, no idea what's wrong, on my machine it never fails.
Try the following version, it saves data to a file rather than database.
2useven10
Posts: 5209
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 18 times
Been thanked: 310 times

Re: Remember the last folders used in panels...

Post by 2useven10 »

Shmuel
The following macros will do what you want provided you exit Far via F10.
What is wrong with Event ExitFAR? Why not use it?
Shmuel
Posts: 6820
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Re: Remember the last folders used in panels...

Post by Shmuel »

2useven10 wrote:Shmuel
The following macros will do what you want provided you exit Far via F10.
What is wrong with Event ExitFAR? Why not use it?
Because it is called too late, when most of the Plugins API functions do not work.
For example, FCTL_GETPANELDIRECTORY won't work from ExitFARW.
2useven10
Posts: 5209
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 18 times
Been thanked: 310 times

Re: Remember the last folders used in panels...

Post by 2useven10 »

What about new event or flag "RunBeforeFARExit" ?
Post Reply

Return to “Suggestions and Ideas”