discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Abbreviations

MB
maurizio butti
Wed, Jun 8, 2016 8:18 AM

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=);

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=);
TP
Torsten Paul
Wed, Jun 8, 2016 10:20 AM

I think that could be integrated into: https://github.com/openscad/openscad/pull/905

The main thing missing there (and in the attached patch) is to move
the substituions into a separate configuration file.

ciao,
Torsten.

I think that could be integrated into: https://github.com/openscad/openscad/pull/905 The main thing missing there (and in the attached patch) is to move the substituions into a separate configuration file. ciao, Torsten.
B
buttim
Wed, Jun 8, 2016 12:22 PM

It would be great to see my little mod integrated!
As I said the code is quite crude. I thought about moving the subs in a cfg
but was not sure of the correct way of doing it. Still I'm not sure if that
would really help since the language seems pretty stable and in any case the
most basic and often used "bricks" are not going to change any time soon.

tp3 wrote

I think that could be integrated into:
https://github.com/openscad/openscad/pull/905

The main thing missing there (and in the attached patch) is to move
the substituions into a separate configuration file.

ciao,
Torsten.


OpenSCAD mailing list

Discuss@.openscad

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

It would be great to see my little mod integrated! As I said the code is quite crude. I thought about moving the subs in a cfg but was not sure of the correct way of doing it. Still I'm not sure if that would really help since the language seems pretty stable and in any case the most basic and often used "bricks" are not going to change any time soon. tp3 wrote > I think that could be integrated into: > https://github.com/openscad/openscad/pull/905 > > The main thing missing there (and in the attached patch) is to move > the substituions into a separate configuration file. > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- View this message in context: http://forum.openscad.org/Abbreviations-tp17583p17587.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Wed, Jun 8, 2016 12:43 PM

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.

Yes, I agree the feature would be nice to have. It's not so much about the language changing, but about the possibility to enable/disable it (basically https://xkcd.com/1172/) and give the option for power users to extend this by editing the config file (I don't think there's a huge chance of getting this easily configurable anytime soon). The infrastructure for that is mostly there and already used to configure the editor and render color schemes. ciao, Torsten.
B
buttim
Wed, Jun 8, 2016 12:48 PM

Got it!
What about integrating the mod as-is and adding the external cfg in the
near future?
(A bit greedy for having the abbrevs on my windows machine; trying hard to
recompile for windows)

On Wed, Jun 8, 2016 at 2:44 PM, tp3 [via OpenSCAD] <
ml-node+s1091067n17589h34@n5.nabble.com> wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


OpenSCAD mailing list
[hidden email] http:///user/SendEmail.jtp?type=node&node=17589&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-tp17583p17589.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-tp17583p17591.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Got it! What about integrating the mod as-is and adding the external cfg in the near future? (A bit greedy for having the abbrevs on my windows machine; trying hard to recompile for windows) On Wed, Jun 8, 2016 at 2:44 PM, tp3 [via OpenSCAD] < ml-node+s1091067n17589h34@n5.nabble.com> wrote: > Yes, I agree the feature would be nice to have. It's not so > much about the language changing, but about the possibility > to enable/disable it (basically https://xkcd.com/1172/) and > give the option for power users to extend this by editing the > config file (I don't think there's a huge chance of getting > this easily configurable anytime soon). > The infrastructure for that is mostly there and already used > to configure the editor and render color schemes. > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17589&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-tp17583p17589.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-tp17583p17591.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jon
Wed, Jun 8, 2016 1:30 PM

I can type "cube([" faster than I can type "c" and then some bizarre key
combination.  I am pleased that this feels like progress to some of you,
but for me, it is just awkward.  I am not a complex-shortcut-key kind of
a guy (but recognize that many of you are).  So.  Are there other
options, such as a simpler key (like <escape>) or a delay?

Thanks for listening!

Jon

On 6/8/2016 8:43 AM, Torsten Paul wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16

I can type "cube([" faster than I can type "c" and then some bizarre key combination. I am pleased that this feels like progress to some of you, but for me, it is just awkward. I am not a complex-shortcut-key kind of a guy (but recognize that many of you are). So. Are there other options, such as a simpler key (like <escape>) or a delay? Thanks for listening! Jon On 6/8/2016 8:43 AM, Torsten Paul wrote: > Yes, I agree the feature would be nice to have. It's not so > much about the language changing, but about the possibility > to enable/disable it (basically https://xkcd.com/1172/) and > give the option for power users to extend this by editing the > config file (I don't think there's a huge chance of getting > this easily configurable anytime soon). > The infrastructure for that is mostly there and already used > to configure the editor and render color schemes. > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16 > >
B
buttim
Wed, Jun 8, 2016 1:50 PM

I wouldn't define CTRL+B as a bizarre shortcut. Not more than the standard
copy CTRL+C and surely less than CTRL+SHIFT+F that OpenSCAD already uses
for replace. The expansion is actually accessible via the menu (which lists
the shortcut so that one can learn it for the next time).
Il will become even less bizarre since 90%+ of the constructs are
expandable that way; hence a very frequent use of the shortcut.
In terms of speed the right comparison is for cube([]);<left><left>left>
(not 6 keystrokes but 12). And it is even more evident for intersection (2
keystrokes against 20+).
I chose the keystroke because Scite already uses the same. ESC would be
nice but seems a bit nonstandard/dangerous to me. A timeout would be
definitely not desirable for most users  I'm afraid.
A possible alternative would be the combo CTRL+SPACE, which some editors
use for keyword completion. But it still is as "complex" as the current one
(although the space key is bigger and therefore easier to hit).
The occasional OpenSCAD users probably won't gain anything from
abbreviations, but people who spend a few hours with the editor would
probably benefit.

On Wed, Jun 8, 2016 at 3:31 PM, jon_bondy [via OpenSCAD] <
ml-node+s1091067n17592h27@n5.nabble.com> wrote:

I can type "cube([" faster than I can type "c" and then some bizarre key
combination.  I am pleased that this feels like progress to some of you,
but for me, it is just awkward.  I am not a complex-shortcut-key kind of
a guy (but recognize that many of you are).  So.  Are there other
options, such as a simpler key (like <escape>) or a delay?

Thanks for listening!

Jon

On 6/8/2016 8:43 AM, Torsten Paul wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date:

06/08/16


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


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17592.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-tp17583p17593.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I wouldn't define CTRL+B as a bizarre shortcut. Not more than the standard copy CTRL+C and surely less than CTRL+SHIFT+F that OpenSCAD already uses for replace. The expansion is actually accessible via the menu (which lists the shortcut so that one can learn it for the next time). Il will become even less bizarre since 90%+ of the constructs are expandable that way; hence a very frequent use of the shortcut. In terms of speed the right comparison is for cube([]);<left><left>left> (not 6 keystrokes but 12). And it is even more evident for intersection (2 keystrokes against 20+). I chose the keystroke because Scite already uses the same. ESC would be nice but seems a bit nonstandard/dangerous to me. A timeout would be definitely not desirable for most users I'm afraid. A possible alternative would be the combo CTRL+SPACE, which some editors use for keyword completion. But it still is as "complex" as the current one (although the space key is bigger and therefore easier to hit). The occasional OpenSCAD users probably won't gain anything from abbreviations, but people who spend a few hours with the editor would probably benefit. On Wed, Jun 8, 2016 at 3:31 PM, jon_bondy [via OpenSCAD] < ml-node+s1091067n17592h27@n5.nabble.com> wrote: > I can type "cube([" faster than I can type "c" and then some bizarre key > combination. I am pleased that this feels like progress to some of you, > but for me, it is just awkward. I am not a complex-shortcut-key kind of > a guy (but recognize that many of you are). So. Are there other > options, such as a simpler key (like <escape>) or a delay? > > Thanks for listening! > > Jon > > > On 6/8/2016 8:43 AM, Torsten Paul wrote: > > > Yes, I agree the feature would be nice to have. It's not so > > much about the language changing, but about the possibility > > to enable/disable it (basically https://xkcd.com/1172/) and > > give the option for power users to extend this by editing the > > config file (I don't think there's a huge chance of getting > > this easily configurable anytime soon). > > The infrastructure for that is mostly there and already used > > to configure the editor and render color schemes. > > > > ciao, > > Torsten. > > > > _______________________________________________ > > OpenSCAD mailing list > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17592&i=0> > > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > > > > > ----- > > No virus found in this message. > > Checked by AVG - www.avg.com > > Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: > 06/08/16 > > > > > > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17592&i=1> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17592.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-tp17583p17593.html Sent from the OpenSCAD mailing list archive at Nabble.com.
DM
doug moen
Wed, Jun 8, 2016 1:57 PM

Jon's response is why we need a separate config file, in order for this to
be useable. This is a power user feature, and power users like to configure
things.

My keyboard layout is obviously different from Jon's, since I can type
ctrl-B far more easily than hit Esc. I would personally prefer Tab for
keyword expansion, since I'm already used to that from using the bash shell.

On 8 June 2016 at 09:30, jon jon@jonbondy.com wrote:

I can type "cube([" faster than I can type "c" and then some bizarre key
combination.  I am pleased that this feels like progress to some of you,
but for me, it is just awkward.  I am not a complex-shortcut-key kind of a
guy (but recognize that many of you are).  So.  Are there other options,
such as a simpler key (like <escape>) or a delay?

Thanks for listening!

Jon

On 6/8/2016 8:43 AM, Torsten Paul wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16

Jon's response is why we need a separate config file, in order for this to be useable. This is a power user feature, and power users like to configure things. My keyboard layout is obviously different from Jon's, since I can type ctrl-B far more easily than hit Esc. I would personally prefer Tab for keyword expansion, since I'm already used to that from using the bash shell. On 8 June 2016 at 09:30, jon <jon@jonbondy.com> wrote: > I can type "cube([" faster than I can type "c" and then some bizarre key > combination. I am pleased that this feels like progress to some of you, > but for me, it is just awkward. I am not a complex-shortcut-key kind of a > guy (but recognize that many of you are). So. Are there other options, > such as a simpler key (like <escape>) or a delay? > > Thanks for listening! > > Jon > > > > On 6/8/2016 8:43 AM, Torsten Paul wrote: > >> Yes, I agree the feature would be nice to have. It's not so >> much about the language changing, but about the possibility >> to enable/disable it (basically https://xkcd.com/1172/) and >> give the option for power users to extend this by editing the >> config file (I don't think there's a huge chance of getting >> this easily configurable anytime soon). >> The infrastructure for that is mostly there and already used >> to configure the editor and render color schemes. >> >> ciao, >> Torsten. >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> >> ----- >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16 >> >> >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > >
B
buttim
Wed, Jun 8, 2016 2:02 PM

An external cfg is not a problem for me;I'd be glad to implement it (or
even better steal the implementation from Scite)

But a configurable shortcut modifiable by the settings page is something
that goes beyond my knowledge of the Qt environment and OpenSCAD source
code.

On Wed, Jun 8, 2016 at 3:58 PM, doug.moen [via OpenSCAD] <
ml-node+s1091067n17594h89@n5.nabble.com> wrote:

Jon's response is why we need a separate config file, in order for this to
be useable. This is a power user feature, and power users like to configure
things.

My keyboard layout is obviously different from Jon's, since I can type
ctrl-B far more easily than hit Esc. I would personally prefer Tab for
keyword expansion, since I'm already used to that from using the bash shell.

On 8 June 2016 at 09:30, jon <[hidden email]
http:///user/SendEmail.jtp?type=node&node=17594&i=0> wrote:

I can type "cube([" faster than I can type "c" and then some bizarre key
combination.  I am pleased that this feels like progress to some of you,
but for me, it is just awkward.  I am not a complex-shortcut-key kind of a
guy (but recognize that many of you are).  So.  Are there other options,
such as a simpler key (like <escape>) or a delay?

Thanks for listening!

Jon

On 6/8/2016 8:43 AM, Torsten Paul wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date:
06/08/16


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


If you reply to this email, your message will be added to the discussion
below:
http://forum.openscad.org/Abbreviations-tp17583p17594.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-tp17583p17595.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

An external cfg is not a problem for me;I'd be glad to implement it (or even better steal the implementation from Scite) But a configurable shortcut modifiable by the settings page is something that goes beyond my knowledge of the Qt environment and OpenSCAD source code. On Wed, Jun 8, 2016 at 3:58 PM, doug.moen [via OpenSCAD] < ml-node+s1091067n17594h89@n5.nabble.com> wrote: > Jon's response is why we need a separate config file, in order for this to > be useable. This is a power user feature, and power users like to configure > things. > > My keyboard layout is obviously different from Jon's, since I can type > ctrl-B far more easily than hit Esc. I would personally prefer Tab for > keyword expansion, since I'm already used to that from using the bash shell. > > On 8 June 2016 at 09:30, jon <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=17594&i=0>> wrote: > >> I can type "cube([" faster than I can type "c" and then some bizarre key >> combination. I am pleased that this feels like progress to some of you, >> but for me, it is just awkward. I am not a complex-shortcut-key kind of a >> guy (but recognize that many of you are). So. Are there other options, >> such as a simpler key (like <escape>) or a delay? >> >> Thanks for listening! >> >> Jon >> >> >> >> On 6/8/2016 8:43 AM, Torsten Paul wrote: >> >>> Yes, I agree the feature would be nice to have. It's not so >>> much about the language changing, but about the possibility >>> to enable/disable it (basically https://xkcd.com/1172/) and >>> give the option for power users to extend this by editing the >>> config file (I don't think there's a huge chance of getting >>> this easily configurable anytime soon). >>> The infrastructure for that is mostly there and already used >>> to configure the editor and render color schemes. >>> >>> ciao, >>> Torsten. >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=17594&i=1> >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >>> >>> >>> ----- >>> No virus found in this message. >>> Checked by AVG - www.avg.com >>> Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: >>> 06/08/16 >>> >>> >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=17594&i=2> >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >> > > _______________________________________________ > OpenSCAD mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=17594&i=3> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.openscad.org/Abbreviations-tp17583p17594.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-tp17583p17595.html Sent from the OpenSCAD mailing list archive at Nabble.com.
RW
Rogier Wolff
Wed, Jun 8, 2016 2:18 PM

On Wed, Jun 08, 2016 at 09:57:42AM -0400, doug moen wrote:

Jon's response is why we need a separate config file, in order for this to
be useable. This is a power user feature, and power users like to configure
things.

My keyboard layout is obviously different from Jon's, since I can type
ctrl-B far more easily than hit Esc. I would personally prefer Tab for
keyword expansion, since I'm already used to that from using the bash shell.

I'm used to "left-alt - / " to do the expansion. It expands what I've
typed so far to the closest matching string. So while editing openscad
stuff, c<leftalt-/> will probably expand to cube. Alas, not the
parentheses and brackets. To explain this some more: cl<leftalt-/>
will expand to "closest". because its' there 4 lines up.

If there is a shortcut I think I'd like alt-C to be say cube([]) with
after this the cursor inside the brackets.... Problem is that
cylinders start with a c too. :-(

IMHO, when you work with openscad, you use the primitives to make
modules you use. So quickly after starting a project you're no longer
using cubes and cylinders but higher level objects that you defined...

Roger. 

On 8 June 2016 at 09:30, jon jon@jonbondy.com wrote:

I can type "cube([" faster than I can type "c" and then some bizarre key
combination.  I am pleased that this feels like progress to some of you,
but for me, it is just awkward.  I am not a complex-shortcut-key kind of a
guy (but recognize that many of you are).  So.  Are there other options,
such as a simpler key (like <escape>) or a delay?

Thanks for listening!

Jon

On 6/8/2016 8:43 AM, Torsten Paul wrote:

Yes, I agree the feature would be nice to have. It's not so
much about the language changing, but about the possibility
to enable/disable it (basically https://xkcd.com/1172/) and
give the option for power users to extend this by editing the
config file (I don't think there's a huge chance of getting
this easily configurable anytime soon).
The infrastructure for that is mostly there and already used
to configure the editor and render color schemes.

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16

--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
-- BitWizard writes Linux device drivers for any device you may have! --
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

On Wed, Jun 08, 2016 at 09:57:42AM -0400, doug moen wrote: > Jon's response is why we need a separate config file, in order for this to > be useable. This is a power user feature, and power users like to configure > things. > > My keyboard layout is obviously different from Jon's, since I can type > ctrl-B far more easily than hit Esc. I would personally prefer Tab for > keyword expansion, since I'm already used to that from using the bash shell. I'm used to "left-alt - / " to do the expansion. It expands what I've typed so far to the closest matching string. So while editing openscad stuff, c<leftalt-/> will probably expand to cube. Alas, not the parentheses and brackets. To explain this some more: cl<leftalt-/> will expand to "closest". because its' there 4 lines up. If there is a shortcut I think I'd like alt-C to be say cube([]) with after this the cursor inside the brackets.... Problem is that cylinders start with a c too. :-( IMHO, when you work with openscad, you use the primitives to make modules you use. So quickly after starting a project you're no longer using cubes and cylinders but higher level objects that you defined... Roger. > On 8 June 2016 at 09:30, jon <jon@jonbondy.com> wrote: > > > I can type "cube([" faster than I can type "c" and then some bizarre key > > combination. I am pleased that this feels like progress to some of you, > > but for me, it is just awkward. I am not a complex-shortcut-key kind of a > > guy (but recognize that many of you are). So. Are there other options, > > such as a simpler key (like <escape>) or a delay? > > > > Thanks for listening! > > > > Jon > > > > > > > > On 6/8/2016 8:43 AM, Torsten Paul wrote: > > > >> Yes, I agree the feature would be nice to have. It's not so > >> much about the language changing, but about the possibility > >> to enable/disable it (basically https://xkcd.com/1172/) and > >> give the option for power users to extend this by editing the > >> config file (I don't think there's a huge chance of getting > >> this easily configurable anytime soon). > >> The infrastructure for that is mostly there and already used > >> to configure the editor and render color schemes. > >> > >> ciao, > >> Torsten. > >> > >> _______________________________________________ > >> OpenSCAD mailing list > >> Discuss@lists.openscad.org > >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >> > >> > >> > >> ----- > >> No virus found in this message. > >> Checked by AVG - www.avg.com > >> Version: 2016.0.7639 / Virus Database: 4598/12382 - Release Date: 06/08/16 > >> > >> > >> > > > > _______________________________________________ > > OpenSCAD mailing list > > Discuss@lists.openscad.org > > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > > > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 ** ** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 ** *-- BitWizard writes Linux device drivers for any device you may have! --* The plan was simple, like my brother-in-law Phil. But unlike Phil, this plan just might work.