ceccopierangiolieugenio / pyTermTk

Python Terminal Toolkit - a Spiced Up Cross Compatible TUI Library 🌶️
https://ceccopierangiolieugenio.github.io/pyTermTk/
MIT License
597 stars 23 forks source link

Save as doesn't change file to the new file in TTk Designer #225

Closed smartkid2024 closed 9 months ago

smartkid2024 commented 9 months ago

Hi I have opened the file and then saved it as a new file but the opened file doesn't change to the new file that I created by the save as so if I change something to that file it overrides the old one and the main file in TTk Designer image

Also when I make some changes and open a new file it doesn't ask to save changes and all my changes will be lost

ceccopierangiolieugenio commented 9 months ago

yep, the logic of the saving mechanism and environment is very basic, I need to make it more consistent, I am curious to check if there are some guidelines about consistent uidesign.

smartkid2024 commented 9 months ago

yep, the logic of the saving mechanism and environment is very basic, I need to make it more consistent, I am curious to check if there are some guidelines about consistent uidesign.

Also please add undo and redo if it's possible Also copy paste or duplicate

ceccopierangiolieugenio commented 9 months ago

That's already there (the logic at least), I am waiting to finish the "Shortcut" feature in order to push all the changes and allow "CTRL+Z" "CTRL+Y" to be used for the undo/redo

ceccopierangiolieugenio commented 9 months ago

Starting to implement the undo/redo in #228

ceccopierangiolieugenio commented 9 months ago

undo/redo is available in ttkDesigner-0.38.0a0 I will fix the filename issue soon

ceccopierangiolieugenio commented 9 months ago

Filename Issue fixed in ttkDesigner-0.38.0a2

ceccopierangiolieugenio commented 9 months ago

Raised #232 for the ask to save feature Raised #233 for a widget clipboard (copy/paste) - I feel it can be tricky but I feel that can be implemented with a simple workaround of the undo/redo feature