I had the brilliant (;D) idea to suggest a csv file for command aliases,
for example: circle, cir, c line, l But then I searched the forum and found it exists! Although the syntax is: alias<\t>command-untranslated --- I think it would be helpful to have a wiki page that states the file locations on each OS, for example: Windows 7 file: "C:\Users\[USERNAME]\AppData\Local\LibreCAD\librecad.alias" and lists every tool with "command-untranslated" and a short description. I could start the article if none exists, and you agree. |
Please have a look at http://wiki.librecad.org/index.php/LibreCAD_Tips_and_Techniques
Also, register a wiki account to help building of our wiki |
This post was updated on .
Thank you.
I requested a wiki account. Where is the original list of that is found in the 2nd post of the following thread: http://forum.librecad.org/Command-line-commands-td4562458.html#a5707077 |
I found:
http://wiki.librecad.org/index.php/A_short_manual_for_use_from_the_command_line http://wiki.librecad.org/index.php/Commands_and_tools_-_using_the_command_line I will work on improving "Commands and tools - using the command line", by moving and refining the information from the bottom of the other article. |
I'm updating http://wiki.librecad.org/index.php/Commands_and_tools_-_using_the_command_line
But I'm confused by the inconsistency of rs_commands.cpp. I could help out with cleaning it up if I could see a logical pattern. Compare DrawLineRectangle and ZoomRedraw: cmdTranslation.insert("rectangle", tr("rectangle")); mainCommands.insert(tr("rectangle"), RS2::ActionDrawLineRectangle); cmdTranslation.insert("rect", tr("rect")); shortCommands.insert(tr("rectang"), RS2::ActionDrawLineRectangle); shortCommands.insert(tr("rect"), RS2::ActionDrawLineRectangle); shortCommands.insert(tr("rec"), RS2::ActionDrawLineRectangle); // zoom: cmdTranslation.insert("regen", tr("regen")); cmdTranslation.insert("redraw", tr("redraw")); mainCommands.insert(tr("regen"), RS2::ActionZoomRedraw); mainCommands.insert(tr("redraw"), RS2::ActionZoomRedraw); shortCommands.insert(tr("rg", "zoom - redraw"), RS2::ActionZoomRedraw); cmdTranslation.insert("zr", tr("zr")); shortCommands.insert(tr("zr", "zoom - redraw"), RS2::ActionZoomRedraw); Why cmdTranslation for only rect and rectangle (and not for rec)? Why mainCommands for regen and redraw? Doesn't it make sense to have only one main command (thinking of the alias file)? Why two aliases in shortCommands.insert(tr("rg", "zoom - redraw")? |
actually, I think a major cleanup is needed.
1, coding part. I'm thinking about including a data table to separate code and aliases; 2, command part, we should print out short comand and alias in command widget at action launch (enable/disable by options); or in Menu. button tool tips; 3, logic and intuitive commands;
|
I support your ideas. :-]
|
This post was updated on .
In reply to this post by dxli
I have completed a major update of: http://wiki.librecad.org/index.php/Commands_and_tools_-_using_the_command_line
I think it would make sense if http://wiki.librecad.org/index.php/commands accessed this page. (edit: done) I also removed all the redundant code from: http://wiki.librecad.org/index.php/A_short_manual_for_use_from_the_command_line There is the possibility of merging the two pages now. Although I'm not sure if it would be beneficial. |
Terrific!
Let's design a clear logic/data structure for command/short command/alias. We can find a way to implement, as far as there's a logic design
|
Free forum by Nabble | Edit this page |