Front end suggestion

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Front end suggestion

wibbly
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Front end suggestion

Gary Crowell
I like the features of the new editor too, but I don't use it.  I like the autocomplete and in-line help offered by my thing for use in Notepad++ as an external editor.  I haven't noticed any other editors that offer both for OpenSCAD.

When I type 'tr' it opens the following drop-down list:
translate ([
translate ([0, 0, 0])
translate ([0, 0, 0]) cube (size = [1, 1, 1]);
translate ([0, 0, 0]) cylinder (h =
translate ([0, 0, 0]) rotate (a = [0, 0, 0]) cube (size = [1, 1, 1]);
translate ([0, 0, 0]) rotate (a = [0, 0, 0]) cylinder (h =

This is much like your commented list, except that it is available at a few keystrokes rather than a copy-and-paste.  And there are similar lists for nearly every keyword, where appropriate. I don't include 'center' in the above list, because it has it's own autocomplete with 'ce'.

Typing 'rotate(' opens the following tooltip:
rotate ()
rotate (a = [x, y, z]) {...} - rotates the object 'a' degrees around the origin.
Also: rotate (a = deg, v = [x, y, z]) {...} - rotates the object 'a' degrees around the axis specified by the vector.

And again, nearly every keyword is represented.

I could never get the autocomplete/tooltip files to work with any Notepad++ version later than 6.5.3, but all older versions are available on the Notepad++ website. At least for OpenSCAD, I haven't noticed that newer versions offer anything significant.

I'm a pretty inexperienced user of OpenSCAD, so the autocomplete lists reflect what I've found useful.  I'm sure there are many entries that could be added - I'd welcome suggestions.




On Sun, Sep 6, 2015 at 2:34 AM, wibbly <[hidden email]> wrote:
Love the new front end, makes things very easy to use.

There is one thing that I would love to see. We now have icons across the
top of the editor. We also have the very useful cheat sheet. Would it be
possible to link the two to save typing and syntax errors. I think it would
make things very simple for newbies and get them on board.

I have a template at the top of which is a commented out list of all of my
most commonly used commands. I just copy and paste the commands into my code
whenever I need them.

Eg
translate([0,0,0])rotate([0,0,0])cube([0,0,0],center=true);

If I don't need to 'translate' or 'rotate' I just leave the values as '0'.
If there was a simple icon bar at the top that allowed me to select
cylinder, cube, sphere etc etc all that I would need to do is click on it to
get the command to create the shape, and then enter the parameters. No
syntax errors, and no trying to figure out where the mysterious errors are.

I use openscad to design plastic models with multiple parts that are 3D
printed separately due to print bed constraints. So my code is in module
format, and I just have a list of modules at the end, and comment out the
ones I am not printing prior to exporting to STL.

Probably pushing the boat out with this additional request, but if Openscad
could identify module names, and hold them in a drop down list, it would be
great to just click on the module that I wanted to export, name it, and
export it.

It's a great tool, took me a while to get to grips with it, but use it daily
now.

Rob






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

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Front end suggestion

Neon22
Hi Gary, thanks for your notepad++ work. I did a remix and it works for me in 6.8.1.
The autocomplete & inline help is great.
The other thing I value in notepad++ is the auto highlighting of identical words. So if I mark a variable (say) then by scrolling I can see everywhere that variable is used without additional keystrokes.
Reply | Threaded
Open this post in threaded view
|

Re: Front end suggestion

MichaelAtOz
Administrator
In reply to this post by Gary Crowell
Gary, I think you will find the problem with the newer version of NP++ is it doesn't like spaces in the keyword. I just removed the spaces, not ideal for how I like to format it.

I mentioned it on the NP++ forum some time ago, but they are not as responsive as this place.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Front end suggestion

Gary Crowell
Ok, I've got the urge to do some more work on the AutoComplete and ToolTips file for Notepad++.  I've been adding the new keywords and the ones I'd missed before.  Also largely expanding the descriptions and adding examples where I can (too bad it can't embed images or links).  I've also added some help_... entries that display the keywords in the same categories as the cheat sheet, with short explanations, and a help_keyword entry that displays all of the keywords.  The file is now at least 3x the size it was.

I've got a bit more to do, but I'll put that up as a new item on Thingiverse in a few days.

On Sun, Sep 6, 2015 at 10:08 PM, MichaelAtOz <[hidden email]> wrote:
Gary, I think you will find the problem with the newer version of NP++ is it
doesn't like spaces in the keyword. I just removed the spaces, not ideal for
how I like to format it.

I mentioned it on the NP++ forum some time ago, but they are not as
responsive as this place.



-----
Newly minted Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :)  - Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
View this message in context: http://forum.openscad.org/Front-end-suggestion-tp13708p13722.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Front end suggestion

tp3
Von: "Gary Crowell" <[hidden email]>
> Ok, I've got the urge to do some more work on the AutoComplete and ToolTips
> file for Notepad++.  I've been adding the new keywords and the ones I'd
> missed before.  Also largely expanding the descriptions and adding examples
> where I can (too bad it can't embed images or links).  I've also added some
> help_... entries that display the keywords in the same categories as the
> cheat sheet, with short explanations, and a help_keyword entry that displays
> all of the keywords.  The file is now at least 3x the size it was.
>
If you feel like adding more information as the mentioned images / links, it
would be cool if that info still would end up somewhere. This might become very
useful when continuing with: https://github.com/openscad/openscad/pull/905

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten