Page 1 of 1

Save tabs on exit. Restore on start [DONE]

Posted: Sat Jul 25, 2015 2:17 am
by achekulaev
Currently all opened tabs except currently active are lost upon exit. This is one of reasons why I don't really use them.

Re: Save tabs on exit. Restore on start

Posted: Tue Jul 28, 2015 6:59 am
by mike
achekulaev wrote:Currently all opened tabs except currently active are lost upon exit. This is one of reasons why I don't really use them.
achekulaev,
Absolutely agree that windows information like positions and open tabs with locations must be stored and loaded upon start.

Re: Save tabs on exit. Restore on start

Posted: Wed Jan 20, 2016 7:38 am
by mike
First results are available in build 1457: http://filesmanager.info/forum/viewtopic.php?f=7&t=68

Re: Save tabs on exit. Restore on start [DONE]

Posted: Sun Jan 24, 2016 4:01 am
by don
Duplicating the idea here.

My preference would be

- not to save the path of a tab, but rather default to what I select.
- save the window position ( I am rolling them up a little)

Can we add a config option to got to a predefined path?
What would work for me is a command to save the current state as default (location, position, etc) and use it for every new window.

Re: Save tabs on exit. Restore on start [DONE]

Posted: Tue Jan 26, 2016 8:17 am
by mike
Ok, I think the following scheme can work:

Code: Select all

* when allocating a new window:
  * if "restore last window state" option is on:
    * load saved tabs and their paths (if any)
  * otherwise:
    * place one tab per panel with predefined paths (editable in preferences and/or in config)
    * by default these paths are "~/" for both left and right panels
* this logic in not related with OSX Resume, which works upon app start.
Default window position and size is already saved and restored between app runs.

What do you think, can this fit your needs?

Re: Save tabs on exit. Restore on start [DONE]

Posted: Tue Jan 26, 2016 8:19 pm
by don
The immediate guess that it should.

Are we talking about the system wide "restore last window state" option?

The gutfeeling I have, however, is that involving the global option could be problematic down the line - Files is a unique app. It somewhat blures the line between a windowed app and the command line.

Can not put a finger on it as yet, but I think it might create a problem in the future. How hard is it? Should we just enable it and try?

Re: Save tabs on exit. Restore on start [DONE]

Posted: Thu Jan 28, 2016 2:55 pm
by mike
Hi don,

Nope, there's no such system-wide option, that's a hypothetical option inside Files specifically.
I'll write it soon and we'll see if such scheme is useful or not.
Next preview will show :)

Mike.