You are need the timer, that can be nil. After saving set it to nil, but after first editing (when timer is nil) run the timer until the given autosave time.
Pro: no edited text will be saved just once.
Building a text editor in LÖVE
- Kartik Agaram
- Prole
- Posts: 34
- Joined: Fri Apr 01, 2022 4:46 am
export
I built an exporter to markdown+SVG -- as a separate app. You can see it in action in this video: https://merveilles.town/@akkartik/108580451364837131. This way people who need the export functionality can get it, without complicating the code for everyone else.
Who is online
Users browsing this forum: No registered users and 0 guests