Skip to content

Sort Board menus as done in Arduino IDE 1.x #802

Closed
@per1234

Description

@per1234

Describe the current behavior

Arduino IDE 1.x sorts the menu for each platform in Tools > Board (e.g., Tools > Board > Arduino AVR Boards) according to the order of occurrence of the name property for each board definitions in the platform's boards.txt configuration file. This allows the platform developer to sort the boards in some logical order in the menu (e.g., putting commonly used boards at the top of the menu, or grouping related boards together).

Arduino IDE 2.x sorts them by alphabetical order, which gives the platform author no control. For example, in the Arduino IDE 2.x menu for the Arduino AVR Boards platform menu, the first 8 boards are 3rd party or retired.

Arduino IDE 1.x:

image

Arduino IDE 2.x:

image

To reproduce

  1. Select Tools > Board > Arduino AVR Boards from the Arduino IDE menus.
  2. Note the order of the boards in the menu.
  3. Compare this to the order of occurrence of the name properties for each board definition in the platform's boards.txt file:
    https://github.com/arduino/ArduinoCore-avr/blob/1.8.4/boards.txt

🙁 the Arduino IDE menu sort order does not match the order in boards.txt

Describe the request

Tools > Board menu for each platform is sorted according to the order in boards.txt.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot.759b410
    Date: 2022-01-31T13:15:29.574Z
    CLI Version: 0.20.2 [13783819]

Additional context

Related:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions