discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Abbreviations

TP
Torsten Paul
Mon, Jun 13, 2016 8:05 PM

On 06/13/2016 12:04 PM, buttim wrote:

Thanks to careful examination of your code I managed to get the call
tips functionality working.

Could you please send that as unified diff (e.g. "diff -up")?

ciao,
Torsten.

On 06/13/2016 12:04 PM, buttim wrote: > Thanks to careful examination of your code I managed to get the call > tips functionality working. > Could you please send that as unified diff (e.g. "diff -up")? ciao, Torsten.
B
buttim
Mon, Jun 13, 2016 10:39 PM

As always a Win64 build would be appreciated, but don't get mad at that,
really.

On Mon, Jun 13, 2016 at 10:16 PM, tp3 [via OpenSCAD] <
ml-node+s1091067n17663h28@n5.nabble.com> wrote:

editor-improvement5.patch (12K) http://forum.openscad.org/attachment/17665/0/editor-improvement5.patch

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17665.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

As always a Win64 build would be appreciated, but don't get mad at that, really. On Mon, Jun 13, 2016 at 10:16 PM, tp3 [via OpenSCAD] < ml-node+s1091067n17663h28@n5.nabble.com> wrote: > On 06/13/2016 12:04 PM, buttim wrote: > > Thanks to careful examination of your code I managed to get the call > > tips functionality working. > > > Could you please send that as unified diff (e.g. "diff -up")? > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17663&i=0> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Torsten > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17663.html > To unsubscribe from Abbreviations, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > editor-improvement5.patch (12K) <http://forum.openscad.org/attachment/17665/0/editor-improvement5.patch> -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17665.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Tue, Jun 14, 2016 9:04 PM

On 06/14/2016 12:39 AM, buttim wrote:

As always a Win64 build would be appreciated, but don't get mad at that, really.

Yep, that's why I was asking for the unified diff, much easier to patch
multiple files.

http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev-patch-Installer.exe
http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev_patch.zip
http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch-Installer.exe
http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch.zip

As the config file is not included, it will probably crash when just using the
packages above.

Can you send an example "abbrev.json" file?

ciao,
Torsten.

On 06/14/2016 12:39 AM, buttim wrote: > As always a Win64 build would be appreciated, but don't get mad at that, really. > Yep, that's why I was asking for the unified diff, much easier to patch multiple files. http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev-patch-Installer.exe http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev_patch.zip http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch-Installer.exe http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch.zip As the config file is not included, it will probably crash when just using the packages above. Can you send an example "abbrev.json" file? ciao, Torsten.
B
buttim
Tue, Jun 14, 2016 10:30 PM

Sorry, I thought I had it attached already. Here it is.
And thanks for the build

On Tue, Jun 14, 2016 at 11:05 PM, tp3 [via OpenSCAD] <
ml-node+s1091067n17677h62@n5.nabble.com> wrote:

On 06/14/2016 12:39 AM, buttim wrote:

As always a Win64 build would be appreciated, but don't get mad at that,

really.

Yep, that's why I was asking for the unified diff, much easier to patch
multiple files.

http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev-patch-Installer.exe

http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev_patch.zip

http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch-Installer.exe

http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch.zip

As the config file is not included, it will probably crash when just using
the
packages above.

Can you send an example "abbrev.json" file?

ciao,
Torsten.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=17677&i=0
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17677.html
To unsubscribe from Abbreviations, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

abbrev.json (656 bytes) http://forum.openscad.org/attachment/17678/0/abbrev.json

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17678.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Sorry, I thought I had it attached already. Here it is. And thanks for the build On Tue, Jun 14, 2016 at 11:05 PM, tp3 [via OpenSCAD] < ml-node+s1091067n17677h62@n5.nabble.com> wrote: > On 06/14/2016 12:39 AM, buttim wrote: > > As always a Win64 build would be appreciated, but don't get mad at that, > really. > > > Yep, that's why I was asking for the unified diff, much easier to patch > multiple files. > > > http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev-patch-Installer.exe > > http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-32_abbrev_patch.zip > > http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch-Installer.exe > > http://files.openscad.org/snapshots/OpenSCAD-2016.06.14-x86-64_abbrev-patch.zip > > As the config file is not included, it will probably crash when just using > the > packages above. > > Can you send an example "abbrev.json" file? > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17677&i=0> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Torsten > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17677.html > To unsubscribe from Abbreviations, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > abbrev.json (656 bytes) <http://forum.openscad.org/attachment/17678/0/abbrev.json> -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17678.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Tue, Jun 14, 2016 10:55 PM

On 06/15/2016 12:30 AM, buttim wrote:

Sorry, I thought I had it attached already. Here it is.
And thanks for the build

With that file, I'm getting:

$ ./openscad
Gtk-Message: Failed to load module "canberra-gtk-module"
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::io::too_many_args >'
what():  boost::too_many_args: format-string referred to less arguments than were passed
Aborted

I did not have time to have a closer look yet...

ciao,
Torsten.

On 06/15/2016 12:30 AM, buttim wrote: > Sorry, I thought I had it attached already. Here it is. > And thanks for the build > With that file, I'm getting: $ ./openscad Gtk-Message: Failed to load module "canberra-gtk-module" terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::io::too_many_args> >' what(): boost::too_many_args: format-string referred to less arguments than were passed Aborted I did not have time to have a closer look yet... ciao, Torsten.
B
buttim
Tue, Jun 14, 2016 10:59 PM

It worked for me under win64. Did you put it where the executable is?
Il 15/giu/2016 00:56, "tp3 [via OpenSCAD]" <
ml-node+s1091067n17679h24@n5.nabble.com> ha scritto:

On 06/15/2016 12:30 AM, buttim wrote:

Sorry, I thought I had it attached already. Here it is.
And thanks for the build

With that file, I'm getting:

$ ./openscad
Gtk-Message: Failed to load module "canberra-gtk-module"
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::io::too_many_args

'

what():  boost::too_many_args: format-string referred to less arguments
than were passed
Aborted

I did not have time to have a closer look yet...

ciao,
Torsten.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=17679&i=0
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17679.html
To unsubscribe from Abbreviations, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17680.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It worked for me under win64. Did you put it where the executable is? Il 15/giu/2016 00:56, "tp3 [via OpenSCAD]" < ml-node+s1091067n17679h24@n5.nabble.com> ha scritto: > On 06/15/2016 12:30 AM, buttim wrote: > > Sorry, I thought I had it attached already. Here it is. > > And thanks for the build > > > With that file, I'm getting: > > $ ./openscad > Gtk-Message: Failed to load module "canberra-gtk-module" > terminate called after throwing an instance of > 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::io::too_many_args> > >' > what(): boost::too_many_args: format-string referred to less arguments > than were passed > Aborted > > I did not have time to have a closer look yet... > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17679&i=0> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- Torsten > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17679.html > To unsubscribe from Abbreviations, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17680.html Sent from the OpenSCAD mailing list archive at Nabble.com.
B
buttim
Wed, Jun 15, 2016 6:34 AM

There is a problem with the Windows version.
If I try to close a curly bracket, the CTRL+SHIFT+* shortcut triggers.
I'm using an italian keyboard on which the curly bracket is produced by the
key combination AltGr+Shift++. The + key is used to produce a * in
combination with shift. This does not happen in Ubuntu, so it seems a
QScintilla (or Scintilla) bug.
I also verified the crash when the scad.api file is missing, which I'll try
to solve.

On Wed, Jun 15, 2016 at 12:59 AM, maurizio butti maurizio.butti@gmail.com
wrote:

It worked for me under win64. Did you put it where the executable is?
Il 15/giu/2016 00:56, "tp3 [via OpenSCAD]" <
ml-node+s1091067n17679h24@n5.nabble.com> ha scritto:

On 06/15/2016 12:30 AM, buttim wrote:

Sorry, I thought I had it attached already. Here it is.
And thanks for the build

With that file, I'm getting:

$ ./openscad
Gtk-Message: Failed to load module "canberra-gtk-module"
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::io::too_many_args

'

what():  boost::too_many_args: format-string referred to less arguments
than were passed
Aborted

I did not have time to have a closer look yet...

ciao,
Torsten.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=17679&i=0
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17679.html
To unsubscribe from Abbreviations, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17684.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

There is a problem with the Windows version. If I try to close a curly bracket, the CTRL+SHIFT+* shortcut triggers. I'm using an italian keyboard on which the curly bracket is produced by the key combination AltGr+Shift++. The + key is used to produce a * in combination with shift. This does not happen in Ubuntu, so it seems a QScintilla (or Scintilla) bug. I also verified the crash when the scad.api file is missing, which I'll try to solve. On Wed, Jun 15, 2016 at 12:59 AM, maurizio butti <maurizio.butti@gmail.com> wrote: > It worked for me under win64. Did you put it where the executable is? > Il 15/giu/2016 00:56, "tp3 [via OpenSCAD]" < > ml-node+s1091067n17679h24@n5.nabble.com> ha scritto: > >> On 06/15/2016 12:30 AM, buttim wrote: >> > Sorry, I thought I had it attached already. Here it is. >> > And thanks for the build >> > >> With that file, I'm getting: >> >> $ ./openscad >> Gtk-Message: Failed to load module "canberra-gtk-module" >> terminate called after throwing an instance of >> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::io::too_many_args> >> >' >> what(): boost::too_many_args: format-string referred to less arguments >> than were passed >> Aborted >> >> I did not have time to have a closer look yet... >> >> ciao, >> Torsten. >> >> >> _______________________________________________ >> OpenSCAD mailing list >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=17679&i=0> >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> -- Torsten >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> http://forum.openscad.org/Abbreviations-tp17583p17679.html >> To unsubscribe from Abbreviations, click here >> <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=> >> . >> NAML >> <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17684.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Wed, Jun 15, 2016 10:24 AM

Von: buttim <maurizio.butti@gmail.com>
> I'm using an italian keyboard on which the curly
> bracket is produced by the key combination AltGr+Shift++.
> The + key is used to produce a * in combination with
> shift. This does not happen in Ubuntu, so it seems a
> QScintilla (or Scintilla) bug.
>
It could also be one of the (a bit annoying) platform
differences which all the Qt stuff is supposed to hide.

> I also verified the crash when the scad.api file is
> missing, which I'll try to solve.
>
Yep, I found the crash is gone after putting in the
scad.api file. I just missed it's two files that need
to be put there.

I still could not get it to expand the shortcuts, yet.
I'll have to have a closer look again, for which I
might not have the time in the next couple of days.
I hope the build is still useful for others, we can
try adding the files to the next build...

ciao,
Torsten.

J
jpmendes
Wed, Jun 15, 2016 11:00 PM

Hi

In addition I would suggest "k" for minkowski, "h" for hull, and "z" for
scale.
The abbrev.json file would be then:
{
"c" : { "l": "cube([", "r":"]);"},
"d" : { "l": "difference() {\n\t", "r":"\n}"},
"f" : { "l": "for (i=[", "r":"]) {\n\t\n}"},
"i" : { "l": "intersection() {\n\t", "r":"\n}"},
"m" : { "l": "module ", "r":"() {\n\t\n}"},
"r" : { "l": "rotate([", "r":"]);"},
"s" : { "l": "sphere(r=", "r":");"},
"t" : { "l": "translate([", "r":"])"},
"u" : { "l": "union() {\n\t", "r":"\n}"},
"x" : { "l": ",center=true", "r":""},
"y" : { "l": "cylinder(r=", "r":",h=);"},
"z" : { "l": "scale([", "r":"]);"},
"k" : { "l": "minkowski() {\n\t", "r":"\n\t}"},
"h" : { "l": "hull() {\n\t", "r":"\n\t}"}
}

jpmendes

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17700.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi In addition I would suggest "k" for minkowski, "h" for hull, and "z" for scale. The abbrev.json file would be then: { "c" : { "l": "cube([", "r":"]);"}, "d" : { "l": "difference() {\n\t", "r":"\n}"}, "f" : { "l": "for (i=[", "r":"]) {\n\t\n}"}, "i" : { "l": "intersection() {\n\t", "r":"\n}"}, "m" : { "l": "module ", "r":"() {\n\t\n}"}, "r" : { "l": "rotate([", "r":"]);"}, "s" : { "l": "sphere(r=", "r":");"}, "t" : { "l": "translate([", "r":"])"}, "u" : { "l": "union() {\n\t", "r":"\n}"}, "x" : { "l": ",center=true", "r":""}, "y" : { "l": "cylinder(r=", "r":",h=);"}, "z" : { "l": "scale([", "r":"]);"}, "k" : { "l": "minkowski() {\n\t", "r":"\n\t}"}, "h" : { "l": "hull() {\n\t", "r":"\n\t}"} } jpmendes -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17700.html Sent from the OpenSCAD mailing list archive at Nabble.com.
B
buttim
Thu, Jun 16, 2016 7:16 AM

That's ok form me. I did not include abbreviations for minkowski and hull
because they're used less often than say cube or translate.
But that's why the abbrevs are customizable!

May I suggest something more intuitive for scale like '+'? Indeed you're
not constrained to using alphabetic characters.
Whatever you use it's better to leave off the trailing ';' since you want
to scale something actually.

Revised version would go like this:

{
"c" : { "l": "cube([", "r":"]);"},
"d" : { "l": "difference() {\n\t", "r":"\n}"},
"f" : { "l": "for (i=[", "r":"]) {\n\t\n}"},
"i" : { "l": "intersection() {\n\t", "r":"\n}"},
"m" : { "l": "module ", "r":"() {\n\t\n}"},
"r" : { "l": "rotate([", "r":"]);"},
"s" : { "l": "sphere(r=", "r":");"},
"t" : { "l": "translate([", "r":"])"},
"u" : { "l": "union() {\n\t", "r":"\n}"},
"x" : { "l": ",center=true", "r":""},
"y" : { "l": "cylinder(r=", "r":",h=);"},
"+" : { "l": "scale([", "r":"])"},
"k" : { "l": "minkowski() {\n\t", "r":"\n\t}"},
"h" : { "l": "hull() {\n\t", "r":"\n\t}"}
}

On Thu, Jun 16, 2016 at 1:00 AM, jpmendes [via OpenSCAD] <
ml-node+s1091067n17700h75@n5.nabble.com> wrote:

Hi

In addition I would suggest "k" for minkowski, "h" for hull, and "z" for
scale.
The abbrev.json file would be then:
{
"c" : { "l": "cube([", "r":"]);"},
"d" : { "l": "difference() {\n\t", "r":"\n}"},
"f" : { "l": "for (i=[", "r":"]) {\n\t\n}"},
"i" : { "l": "intersection() {\n\t", "r":"\n}"},
"m" : { "l": "module ", "r":"() {\n\t\n}"},
"r" : { "l": "rotate([", "r":"]);"},
"s" : { "l": "sphere(r=", "r":");"},
"t" : { "l": "translate([", "r":"])"},
"u" : { "l": "union() {\n\t", "r":"\n}"},
"x" : { "l": ",center=true", "r":""},
"y" : { "l": "cylinder(r=", "r":",h=);"},
"z" : { "l": "scale([", "r":"]);"},
"k" : { "l": "minkowski() {\n\t", "r":"\n\t}"},
"h" : { "l": "hull() {\n\t", "r":"\n\t}"}
}

jpmendes


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17700.html
To unsubscribe from Abbreviations, click here
http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=
.
NAML
http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17710.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

That's ok form me. I did not include abbreviations for minkowski and hull because they're used less often than say cube or translate. But that's why the abbrevs are customizable! May I suggest something more intuitive for scale like '+'? Indeed you're not constrained to using alphabetic characters. Whatever you use it's better to leave off the trailing ';' since you want to scale something actually. Revised version would go like this: { "c" : { "l": "cube([", "r":"]);"}, "d" : { "l": "difference() {\n\t", "r":"\n}"}, "f" : { "l": "for (i=[", "r":"]) {\n\t\n}"}, "i" : { "l": "intersection() {\n\t", "r":"\n}"}, "m" : { "l": "module ", "r":"() {\n\t\n}"}, "r" : { "l": "rotate([", "r":"]);"}, "s" : { "l": "sphere(r=", "r":");"}, "t" : { "l": "translate([", "r":"])"}, "u" : { "l": "union() {\n\t", "r":"\n}"}, "x" : { "l": ",center=true", "r":""}, "y" : { "l": "cylinder(r=", "r":",h=);"}, "+" : { "l": "scale([", "r":"])"}, "k" : { "l": "minkowski() {\n\t", "r":"\n\t}"}, "h" : { "l": "hull() {\n\t", "r":"\n\t}"} } On Thu, Jun 16, 2016 at 1:00 AM, jpmendes [via OpenSCAD] < ml-node+s1091067n17700h75@n5.nabble.com> wrote: > Hi > > In addition I would suggest "k" for minkowski, "h" for hull, and "z" for > scale. > The abbrev.json file would be then: > { > "c" : { "l": "cube([", "r":"]);"}, > "d" : { "l": "difference() {\n\t", "r":"\n}"}, > "f" : { "l": "for (i=[", "r":"]) {\n\t\n}"}, > "i" : { "l": "intersection() {\n\t", "r":"\n}"}, > "m" : { "l": "module ", "r":"() {\n\t\n}"}, > "r" : { "l": "rotate([", "r":"]);"}, > "s" : { "l": "sphere(r=", "r":");"}, > "t" : { "l": "translate([", "r":"])"}, > "u" : { "l": "union() {\n\t", "r":"\n}"}, > "x" : { "l": ",center=true", "r":""}, > "y" : { "l": "cylinder(r=", "r":",h=);"}, > "z" : { "l": "scale([", "r":"]);"}, > "k" : { "l": "minkowski() {\n\t", "r":"\n\t}"}, > "h" : { "l": "hull() {\n\t", "r":"\n\t}"} > } > > jpmendes > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17700.html > To unsubscribe from Abbreviations, click here > <http://forum.openscad.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=17583&code=bWF1cml6aW8uYnV0dGlAZ21haWwuY29tfDE3NTgzfDE4OTg0NTUyNTk=> > . > NAML > <http://forum.openscad.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17710.html Sent from the OpenSCAD mailing list archive at Nabble.com.