phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.8k stars 124 forks source link

[regression] remember window positions on restart app #1796

Open abose opened 3 months ago

abose commented 3 months ago

Describe the problem

Upon opening the program, it does not remember the size and state of the program window upon previous close; the window state being maximized or otherwise, and if not then the window size. This feature would be nice to have.

https://github.com/orgs/phcode-dev/discussions/1794

Describe the solution you'd like

We can have one of the two:

  1. app specific configuration. This is eazier to implement.
  2. project specific workspace configurations? - now sure if this would be complex to the user.

Alternatives considered

We had this feature in the first release based on tauri plugin. but it looks like we have some regression as we used custom tauri protocols?

We had an earlier rust based implementaion that doesnt depend on the tauri plugin, but it had a problem with multi monitor setup. If we are implementing this in our own layer, we should consider multi monitor setups as well.

Additional context

No response