arduino / lab-micropython-editor

Arduino Lab for MicroPython is an Integrated Development Environment (IDE) for MicroPython.
GNU Affero General Public License v3.0
222 stars 28 forks source link

Renaming tabs #102

Closed murilopolese closed 7 months ago

murilopolese commented 7 months ago

Renaming tabs turned out to be very similar to the "safe save" procedure but with some additional rules.

image image

murilopolese commented 7 months ago

There are a lot of board/disk ifs and elses that we should look into because it's polluting the source code readability quite a bit in my humble opinion. But that is a longer, bigger task, I can (and I assume you too) work with this caveat for a bit longer I think :stuck_out_tongue_winking_eye:

The implementation of both save and finish-renaming-tab are tighter with the flowchart. Both flowchart and design reference were updated.

Covered a few weird edge cases: