yakut icon indicating copy to clipboard operation
yakut copied to clipboard

For custom commands, allow yakut to read a map file

Open emrainey opened this issue 2 years ago • 1 comments

The file could be yaml or json or ini, but would map commands in words to command numbers. It could be automatically read in from known location like a ~/.yakut/custom_commands.yaml

---
custom_commands:
    - number: 300
       name: foo
    - number: 301 
       name: bar

This would allow users to do:

yakut cmd X foo instead of yakut cmd X 300 which is not descriptive.

These could be also checked for duplicates and limits (like predefined values).

emrainey avatar Aug 08 '23 16:08 emrainey

Do we want to consider the possibility of storing a JSON mapping in a string-typed register like uavcan.custom_commands directly on the node?

pavel-kirienko avatar Aug 09 '23 08:08 pavel-kirienko