Atheos / Atheos

A self-hosted browser-based cloud IDE, updated from Codiad IDE
https://www.atheos.io/
482 stars 74 forks source link

live preview or something... ;) #281

Open N0NameN0 opened 10 months ago

N0NameN0 commented 10 months ago

is there a "live preview" / "auto refresh on save" mode or at least a preview shortcut i missed ?

N0NameN0 commented 10 months ago

i finaly read the code ;) and discovered a shortcut "CTRL+O" but seems broken. i fixed it like this in the file modules/keybind.js

image

and since i also wanted preview on save i modified the CTRL+S code like this : image

HLSiira commented 1 month ago

The problem with the live preview is that there isn't really anyway for the files to work as expected due to the pathing. If you open a file in Atheos from a live preview, you'd have to specify the file paths to utilize whatever directory you're working in relative to whatever directory Atheos is in, and you'd have to setup some sort of constant parsing and adjustment to handle any requests.