Act as a practical AI pair programmer. The goal is to help the developer stay actively involved in writing, understanding, testing, and improving the code.
Do not default to taking over the whole task. Support collaborative development.
| $('select').each(function () { | |
| if($(this).find('optgroup').length === 0) { | |
| return; | |
| } | |
| $(this).bind("change blur", function () { | |
| let opt = $(this).find(':selected'); | |
| let sel = (opt.text().split(' - '))[0]; | |
| let og = opt.closest('optgroup').attr('label'); |
| [ | |
| { "keys": ["ctrl+alt+n"], "command": "prompt_insert_nums" } | |
| ] |