Loading

OpenSCAD Customizer Textmate/Sublime 2 Bundle

by TheNewHobbyist, published

OpenSCAD Customizer Textmate/Sublime 2 Bundle by TheNewHobbyist Mar 29, 2013

Description

I took tbuser's awesome OpenSCAD bundle and added some Customizer specific snippets. I've also included as much as possible from the libraries currently supported by Customizer.


March 2015 Update!

I've added and updated this bundle to support some new additions in OpenSCAD 2015.03, some new libraries for Thingiverse Customizer, and some overall clean up.

Updates to this bundle are available on this github repository.

1.2 (2015-03-28)

Features:

  • customizer_display_fonts.sublime-snippet -- Added snippet for Customizer's "Display" font group
  • customizer_fonts.sublime-snippet -- Added snippet for all supported Customizer fonts
  • customizer_handwriting_fonts.sublime-snippet -- Added snippet for Customizer's "Handwriting" font group
  • customizer_monospace_fonts.sublime-snippet -- Added snippet for Customizer's "Monospaced" font group
  • customizer_sansserif_fonts.sublime-snippet -- Added snippet for Customizer's "Sans Serif" font group
  • customizer_serif_fonts.sublime-snippet -- Added snippet for Customizer's "Serif" font group
  • customizer_stencil_fonts.sublime-snippet -- Added snippet for Customizer's "Stencil" font group

1.1 (2015-03-28)

Features:

  • Added offset(), let(), and text() to syntax highlighter
  • color.tmSnippet -- Updated to use color names and alpha channel
  • customizer_documentation.tmSnippet -- Added link to Thingiverse Customizer documentation page
  • customizer_dropdown.tmSnippet -- Added description helper
  • customizer_labeled_dropdown.tmSnippet -- Removed seems redundant
  • customizer_libraries.tmSnippet -- Added new Customizer libraries (3DVector & hsvToRGB)
  • Function.tmSnippet -- Changed tab trigger from "fun" to "function"
  • if ___ else.tmSnippet -- Cleaned up tab order
  • import.tmSnippet -- Updated name field
  • import_dxf.tmSnippet -- Added note to use import(); instead
  • import_stl.tmSnippet -- Added note to use import(); instead
  • include.tmSnippet -- Added note to use import(); instead
  • let.sublime-snippet -- Added a snippet for the OpenSCAD 2015.03 let(); function
  • max.sublime-snippet -- Added a snippet for the max(); function
  • min.sublime-snippet -- Added a snippet for the min(); function
  • mirror copy.tmSnippet -- Renamed to mirror.tmSnippet
  • mod.tmSnippet -- Renamed to module.tmSnippet
  • offset.sublime-snippet -- Added a snippet for the OpenSCAD 2015.03 offset(); function
  • polyhedron.tmSnippet -- Changed tab trigger from poly to polyhedron, updated to use faces instead of triangles
  • projection.tmSnippet -- Updated to use import(); instead of import_stl();
  • rands.sublime-snippet -- Added a snippet for the rands(); Random Number Generator function
  • rotate(___).tmSnippet -- Removed seems redundant
  • scale(___).tmSnippet -- Removed seems redundant
  • search.sublime-snippet -- Added a snippet for the search(); function
  • text.sublime-snippet -- Added a snippet for the OpenSCAD 2015.03 text(); function
  • translate(___).tmSnippet -- Removed seems redundant

Bugfixes:

  • difference.tmSnippet -- Fixed disply error in Sublime Text 2
  • for () {}.tmSnippet -- Fixed disply error in Sublime Text 2
  • intersection.tmSnippet -- Fixed disply error in Sublime Text 2
  • intersection_for () {}.tmSnippet -- Fixed disply error in Sublime Text 2
  • union.tmSnippet -- Fixed disply error in Sublime Text 2

1.0 (2015-03-29)

  • Initial Release

Listed below are the new additions:

Makerbot Customizer Related


customizer_dropdown.tmSnippet // Example Customizer Dropdown Box
customizer_labeled_dropdown.tmSnippet // Example Customizer Labeled Dropdown Box
customizer_libraries.tmSnippet // Drops in all currently supported Customizer libraries
customizer_preview.tmSnippet // Example Customizer Preview
customizer_slider.tmSnippet // Example Customizer Slider
customizer_tabname.tmSnippet // Example Customizer Tab

build_plate.scad


buildplate.tmSnippet // Drops in default customizer options

MCAD Library //


MCAD_2D_complexround.tmSnippet
MCAD_2D_donutslice.tmSnippet
MCAD_2D_ellipse.tmSnippet
MCAD_2D_ellipsepart.tmSnippet
MCAD_2D_ngon.tmSnippet
MCAD_2D_pieslice.tmSnippet
MCAD_2D_roundedsquare.tmSnippet
MCAD_boxes.tmSnippet
MCAD_gridbeam_backboard.tmSnippet
MCAD_gridbeam_bottomshelf.tmSnippet
MCAD_gridbeam_frontboard.tmSnippet
MCAD_gridbeam_topshelf.tmSnippet
MCAD_gridbeam_translatebeam.tmSnippet
MCAD_gridbeam_xbeam.tmSnippet
MCAD_gridbeam_ybeam.tmSnippet
MCAD_gridbeam_zbeam.tmSnippet
MCAD_involutegears_bevelgear.tmSnippet
MCAD_involutegears_bevelgearpair.tmSnippet
MCAD_involutegears_gear.tmSnippet

pins.scad // tbuser's Pins library


pin.tmSnippet
pinhole.tmSnippet
pinpeg.tmSnippet
pintack.tmSnippet

Write.scad // HarlanDMii's text library


write.tmSnippet
writecircle.tmSnippet
writecube.tmSnippet
writecylinder.tmSnippet
writesphere.tmSnippet

Recent Comments

view all

This is awesome, thank you!

Fixed a typo in write.tmSnippet. Two new copies of the zip files have been uploaded.

Liked By

view all

License

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

Instructions

I've uploaded 2 zip files, pick the correct one for your editor and drop in the directories listed below.

To install for Textmate drop the bundle into:
~/Library/Application Support/TextMate/Bundles

For Sublime Text 2 drop the folder into:
~/Library/Application Support/Sublime Text 2/Packages

This is awesome, thank you!

Fixed a typo in write.tmSnippet. Two new copies of the zip files have been uploaded.

Top