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: 210
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

Remember the last folders used in panels...

Post by Mauro72 » Wed 07 Aug, 2013 16:13

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: 3047
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 84 times

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

Post by 2useven10 » Wed 07 Aug, 2013 16:20

Alt-F12 Enter ?

User avatar
Mauro72
Posts: 210
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 » Wed 07 Aug, 2013 17:16

The last used folders in the two panels. Not only one show in the history.

Shmuel
Posts: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

Remember the last folders used in panels...

Post by Shmuel » Wed 07 Aug, 2013 19:33

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: 210
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 » Wed 07 Aug, 2013 19:50

Thanks Shmuel... works excellent!
But i have error window after exit FAR. Always!!!
Last version, Far Manager v3.0 build 3597 x86

Shmuel
Posts: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

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

Post by Shmuel » Wed 07 Aug, 2013 20:06

I don't have error window (same Far). Could you show a screenshot of that window?

User avatar
Mauro72
Posts: 210
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 » Wed 07 Aug, 2013 20:32

far_error.jpg
far_error.jpg (167.37 KiB) Viewed 6677 times

User avatar
Mauro72
Posts: 210
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 » Wed 07 Aug, 2013 20:34

Windows XP SP3...

Shmuel
Posts: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

Remember the last folders used in panels...

Post by Shmuel » Wed 07 Aug, 2013 20:39

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: 210
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 » Wed 07 Aug, 2013 21:27

Fixed the error: Deleting plugincache32.db
Thanks for your help Shmuel ;)

User avatar
Mauro72
Posts: 210
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 » Wed 07 Aug, 2013 22:02

mmmm, again the error!!! oops

Shmuel
Posts: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

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

Post by Shmuel » Thu 08 Aug, 2013 07:08

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: 3047
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 84 times

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

Post by 2useven10 » Thu 08 Aug, 2013 11:32

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: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

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

Post by Shmuel » Thu 08 Aug, 2013 11:43

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: 3047
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 84 times

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

Post by 2useven10 » Thu 08 Aug, 2013 11:56

What about new event or flag "RunBeforeFARExit" ?

Shmuel
Posts: 5236
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

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

Post by Shmuel » Thu 08 Aug, 2013 11:59

2useven10 wrote:What about new event or flag "RunBeforeFARExit" ?
I would rather fix the existing ExitFARW, calling it when all Plugins API is available.

Post Reply

Return to “Suggestions and Ideas”