Snapmaker / Luban

An easy-to-use 3-in-1 software tailor-made for Snapmaker machines.
https://snapmaker.com/snapmaker-luban
GNU Affero General Public License v3.0
437 stars 115 forks source link

Feature Request: Simple text editor as a new Tab in Luban #253

Open tonejaco opened 4 years ago

tonejaco commented 4 years ago

A new tab that is a simple text editor would be a great addition to the Snapmaker Luban App. Then the user doesn't have to go to some external editor which may introduce bad text formatting. Future versions could do syntax checking and have shortcuts to inserting G & M code commands. All the other tabs could have an option to open the gcode file in the text editor.

tonejaco commented 4 years ago

Or maybe a Widget in the workspace?

parachvte commented 4 years ago

Text editor could be too complicated if you want syntax support.

Is there any existing editor for G-code?

Ralnoc commented 4 years ago

I haven't been able to find an editor, though prismjs is an extendable syntax highlighter that could possibly be adapted to be integrated into a custom editor.

tonejaco commented 4 years ago

It’s just plain text. Start basic. Add features later. If it’s a large file then it will need to be paged in.

tonejaco commented 4 years ago

The Macro Widget is kind of the thing, only it can't open, close & save to/from files. It's also doing it in a pop up window instead of it's own pane.