saikyun / freja

Self-modifiable editor for coding graphical things
66 stars 2 forks source link

Add menu item for format #12

Open sogaiu opened 3 years ago

sogaiu commented 3 years ago

May be for (re)discovery purposes it would make sense for the edit menu to have an item for format?

Though I wonder what should happen when the content is not Janet source (or the file extension is not .janet).

saikyun commented 3 years ago

Perhaps for now that item should only be visible when editing a janet-file. If someone adds more ways to format files, maybe one could make the menu item generic. :)

sogaiu commented 3 years ago

Is it unclear what to do in the case where there is not yet a file associated with the "buffer"?