With script-message-to commands type, instantly show completions if available. Useful e.g. with loadfile or apply-profile. This also shows completions if you just close the console with a filled line and reopen it.
Unified · Split
| @@ -1599,6 +1599,10 @@ mp.register_script_message('get-input', function (script_name, args) · 1598 unmodified lines | ||
| 1599 | 1599 | history_paths[id] = args.history_path |
| 1600 | 1600 | read_history() |
| 1601 | 1601 | history_pos = #history + 1 |
| 1602 | + | |
| 1603 | + if line ~= '' then | |
| 1604 | + complete() | |
| 1605 | + end | |
| 1602 | 1606 | end |
| 1603 | 1607 | |
| 1604 | 1608 | set_active(true) |