Menu

#530 LibreCAD 2.0.8 Command keycodes does not work

Next release
closed-fixed
ravas
None
5
2016-09-21
2015-10-15
BennieD
No

In version 2.0.8 command keycodes does not work.
eg. XT for trim

Discussion

  • BennieD

    BennieD - 2015-10-15

    Change bug:
    XT does not exist any more - use TM for trim. Other keycodes do work, but now require <enter> to be pressed to enter the command. This means I have to let go of the mouse to press enter, and keycodes loose it's power.

     
  • ravas

    ravas - 2016-02-12

    If you can build from source, I just added a "Keycode mode" option in application preferences -> defaults. If you are on Windows you can wait for tomorrow's nightly build.
    https://sourceforge.net/projects/librecad/files/Windows/NightlyBuilds/master/

     
  • BennieD

    BennieD - 2016-02-15

    Keycode TM is now accepted without pressing <enter>, if keycode mode is selected in application preferences, in nightly build 2.0.7-954.
    It does require a restart of LibreCAD, maybe you want to highlight it, or is it obvious?
    My old trusted 'XT' is still MIA, but I've re-adjusted to 'TM' by now.
    Thanks

     
  • ravas

    ravas - 2016-02-17

    I'm probably going to move the option;
    I added it there temporarily because I know you have been waiting.

    I could add XT back; or would it be more useful as a keycode for trim2?

     
  • BennieD

    BennieD - 2016-02-17

    As XT-Extend and TM-Trim does exactly the same, I would prefer to rather have Trim2 available with keycodes on, as TM2 becomes unavailable. Which code for which? I suppose the community total would have preferences. Mine would be TM - trim; T2 - Trim2. XT- seems more appropriate for extend, so if T2 is not possible, I recommend XT-Extend (which acts exactly like Trim), and TM-Trim 2 (as this is closer to an abreviation of the action).
    I have just realised that the Extend action was removed, not only the keycode. Makes sense, as it was a duplicate of trim, but it kinds of shambles up my reasoning.
    TM-Trim, and T2-Trim2 would be marvelous, thank you for offering ;-)
    It is difficult to relate XT to Trim2 - unless you think of it as X-Trim, rather than Extend?
    Jip, I could totally live with XT as keycode for Trim2, and I would love it if we could call Trim2 rather X-Trim. Then we can underline the X, because the underline T of both Trim and Trim2 does not function currently!

     
    • ravas

      ravas - 2016-02-17

      Your last point is supported here:
      https://github.com/LibreCAD/LibreCAD/issues/657

      Im not opposed to calling it X-Trim. I see QCad now calls it "Trim Both".

       
    • ravas

      ravas - 2016-02-27

      I added the t2 keycode.
      I also added mp for modify->properties.
      Check the next nightly build.

       
  • Dongxu Li

    Dongxu Li - 2016-02-17

    ravas,

    it might be a good idea to add command alias to Preferences

    we can remove the "Command alias" settings by integrating command aliases into settings.

     
    • ravas

      ravas - 2016-02-17

      黎東旭,

      That does sound useful.
      I'm still considering the issue of integrating commands into the new action / tool system.
      https://github.com/LibreCAD/LibreCAD/issues/583
      which would affect that... possibly making it easier to implement.
      Lot's of grunt work... ;-]

      My one concern about the alias system is how it affects / is affected by command translations.
      http://forum.librecad.org/command-translations-td5712978.html

       

      Last edit: ravas 2016-02-17
  • ravas

    ravas - 2016-02-17

    Another approach would be to have a syntax in the command line that sets the alias
    trim->xt
    And a command that shows the alias list in the command line output.

     

    Last edit: ravas 2016-02-17
  • ravas

    ravas - 2016-03-04

    I've made it so the command line is focused after a keycode is registered,
    so that you can input coordinates and other things...

    Is there any reason this would not be desired?

     
  • BennieD

    BennieD - 2016-03-04

    TM, T2 and MP :) works fine.
    I find no adverse effect from the command line focus thus far.

     
  • ravas

    ravas - 2016-03-07
    • status: open --> closed-fixed
    • assigned_to: ravas
     
  • BennieD

    BennieD - 2016-03-08

    Ravas, thanks for all the trouble.
    I am now sorry that I did not vote for "set the alias trim->xt"
    I thought all the modify commands have keycodes, but now find that I use Devide a lot, and it doesn't seem to have a keycode.

     
  • ravas

    ravas - 2016-03-08

    That feature can still be added. Someone just has to be inspired to implement it.

    Adding keycodes is easy. Feel free to suggest any. "di" isn't in use.

     
  • BennieD

    BennieD - 2016-03-08

    I suggest "de"- DividE, although it's not as obvious as "di", it is closer together. If you think the more obvious is better, I could work with "di".

     
  • ravas

    ravas - 2016-03-11

    I added 'di'.
    'de' might be used for delete.

     
  • BennieD

    BennieD - 2016-09-21

    In 2-2-0-A-109 keycode mode option under Application Preferences is not available anymore.
    (Why can I not create a ticket?)

     
  • BennieD

    BennieD - 2016-09-21

    OK - I found the button in the command window - Nice!

     
  • ravas

    ravas - 2016-09-21

    You can use https://github.com/LibreCAD/LibreCAD/issues for bug reports or feature requests.

    You can use http://forum.librecad.org/ for questions or comments.

     

Log in to post a comment.