Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organise boards selector: spacer between board families #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions lib/boards.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,23 @@ module.exports =

op = new Option()
op.value = ''
op.text = '== Arduino Setting =='
@selectNode.options.add op
op = new Option()
op.value = 'ignore'
op.text = '== Custom Setting =='
op.text = 'Use Arduino IDE Setting'
@selectNode.options.add op
prev_family = ''
for board of @boards
family = board.split(':')[0]
if family != prev_family
prev_family = family
# Separator to make families stand out
op = new Option()
op.value = 'ignore'
op.text = ''
@selectNode.options.add op
# Family name.
op = new Option()
op.value = 'ignore'
op.text = '[' + family.toUpperCase() + ']'
@selectNode.options.add op
op = new Option()
op.value = board
op.text = @boards[board]
Expand Down