Save tabs on exit. Restore on start [DONE]

Any wishes
Locked
achekulaev
Posts: 50
Joined: Sat Jul 25, 2015 1:04 am

Save tabs on exit. Restore on start [DONE]

Post by achekulaev » Sat Jul 25, 2015 2:17 am

Currently all opened tabs except currently active are lost upon exit. This is one of reasons why I don't really use them.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Save tabs on exit. Restore on start

Post by mike » Tue Jul 28, 2015 6:59 am

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Save tabs on exit. Restore on start

Post by mike » Wed Jan 20, 2016 7:38 am

First results are available in build 1457: http://filesmanager.info/forum/viewtopic.php?f=7&t=68

don
Posts: 134
Joined: Sat Jul 18, 2015 11:03 am
Location: Sydney, AU

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

Post by don » Sun Jan 24, 2016 4:01 am

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

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

Post by mike » Tue Jan 26, 2016 8:17 am

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?

don
Posts: 134
Joined: Sat Jul 18, 2015 11:03 am
Location: Sydney, AU

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

Post by don » Tue Jan 26, 2016 8:19 pm

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?

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

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

Post by mike » Thu Jan 28, 2016 2:55 pm

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.

Locked