[OpenSCAD] Abbreviations

alex at alexgibson.net alex at alexgibson.net
Wed Jun 8 05:57:39 EDT 2016


Hi Maurizio,

This sounds great!!!
For stupid/busy people - how do I install your patch to try it in Linux
and/or Windows please?

Cheers
Alex


> -------- Original Message --------
> Subject: [OpenSCAD] Abbreviations
> From: maurizio butti <maurizio.butti at gmail.com>
> Date: Wed, June 08, 2016 9:18 am
> To: discuss at lists.openscad.org
> 
> 
> I often use the Scite editor, based on the same Scintilla component as
> OpenSCAD. As such I am really missing a very good Scite feature:
> abbreviations. I implemented (in a rather crude way) abbreviation expansion
> for common OpenSCAD constructs. This should allow for really fast coding.
> As a bonus I added folding toggle as a keyboard shortcut (CTRL+*, also
> added to the edit menu as "Toggle current fold").
> 
> *How this works:
> Type a single character abbreviation in the editor, for example "c". Then
> hit CTRL+B. The typed character has been replaced by "cube([]);". The
> cursor is now positioned after the open square bracket for you to enter the
> cube's dimensions.
> 
> *Full list of abreviations (the | character is not included but shows where
> the caret will be positioned):
> c cube([|]);
> d difference() {\n\t|\n}
> f for (i=[|]) {\n\t\n}
> i intersection() {\n\t|\n}
> m module |() {\n\t\n}
> r rotate([|]);
> s sphere(r=|);
> t translate([|])
> u union() {\n\t|\n}
> x ,center=true|
> y cylinder(r=|,h=);<hr>_______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org




More information about the Discuss mailing list