firepad icon indicating copy to clipboard operation
firepad copied to clipboard

Add edit commands to Firepad.Headless

Open iphydf opened this issue 7 years ago • 0 comments

I've implemented autoformatting by calling astyle (a C code formatter) on a server and then setText()ing the result. An unfortunate side-effect is that everybody's cursors are reset to the end of the document, because the entire document is reloaded. It would be good if the server could instead supply small edits as if it were a regular user.

Bonus points: make this extra easy for me by turning the output from diff -u into an edit or sequence of edits via headless.

iphydf avatar Feb 16 '18 16:02 iphydf