monntecc / lunaeditor

An open-source alternative text editor written in Tauri
MIT License
1 stars 0 forks source link

Save wont overwrite opened files #2

Open monntecc opened 2 weeks ago

monntecc commented 2 weeks ago

if you have saved a file, when you have opened 2 opened files (same ones) then its saved on first file, but not in the second one

monntecc commented 2 weeks ago

the best solution will be NOT open the same opened tab

Yix0n commented 2 weeks ago

A better solution would be:

  1. checking if this file is open. If it is, then just go to the tab with that file
  2. Each time you focus on the tab, it is checking if the file was changed. If it was, then overwrite