0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.53k stars 470 forks source link

[Bug] Can't edit and save files inside a compressed file #1322

Open Pocokk opened 4 months ago

Pocokk commented 4 months ago

Describe the bug When I try to edit/modify a file that is openable by Notepads, it refuses to properly save the that file INSIDE a compressed file. And on top of that, if I indirectly want to Edit it, it opens as an empty file instead.

To Reproduce 1) Create a txt file, write something in it, then save. 2) Using 7-zip/winrar whatever, compress that file. 3) Open the compressed file, try to edit it, then save or open/view it directly and see its empty/nothing was changed.

Expected behavior It should be saved normally inside a compressed file. With default notepad, it works perfectly fine.

Screenshots Even better, a video! https://github.com/0x7c13/Notepads/assets/81096046/87c27118-71e1-447c-a8cc-4b4bb0e43a01

Also once finished with the edit/modify, the archiver program should prompt the following message: (it happens with regular notepad save) bvMcnMc

Desktop (please complete the following information):

Additional context I got tired of the white theme on notepad, that's why I fell in love with Notepads, although this issue annoys me, please have a look, thank you!

P.S: I think it has to do with the fact that Notepads.exe is located in a hidden/restricted folder by default (Program Files/WindowsApps), compared to Notepad.exe, which is in system32.

0x7c13 commented 3 months ago

I am not sure if OG notepad does something automatically for re-saving a file in archive. Not sure how to achieve this with UWP tho.

Pocokk commented 3 months ago

OG Notepad doesn't automatically re-save it, but as you can see on that small picture, it allows this option.

I think it has to do with the fact that this program's exe is in a restricted folder (UWP), hence 7-zip can't access it normally and unlock its full potential.

Any chance for a UWP-less version perhaps, just to test it out? Thank you.