hwclass / ziya

:pencil2: Your local in-browser editor
MIT License
62 stars 2 forks source link

Create adding new file functionality #57

Open hwclass opened 7 years ago

hwclass commented 7 years ago

Hi @altayaydemir

In this case, we have some bottlenecks to get over like the following.

Is it enough to provide some CTRL+S functionality. Since I had heard that preventing opening a new window within (for example, in Chrome) browser is disabled and no way to achieve this by .preventDefault or stopPropagation, maybe adding a new button/icon just into the top bar labeled as "New" or such kind of string and open a new modal to get the current file name. After these steps, save the file with the given name within the current directory.

Thanks

Barış