Merge remote-tracking branch 'origin/round/term' into round/review
llembas-term / linux (push) Failing after 38s

This commit is contained in:
Homer committed 2026-12-03 07:41:34 +00:00
commit ece8c2b595
4 files changed
+8 -5

No files matched your search

+2 -1
View File
@@ -332,7 +332,8 @@ require('llembas').apply(config, {
private = { key = 'H', mods = 'CTRL|SHIFT' },
ide = { key = 'E', mods = 'CTRL|SHIFT' },
model = { key = 'M', mods = 'CTRL|SHIFT' }, -- the list of chat models
ac_model = { key = 'M', mods = 'CTRL|ALT' }, -- the list of autocomplete models
ac_model = { key = 'm', mods = 'CTRL|ALT' }, -- the list of autocomplete models (a capital
-- letter means the key with Shift)
mode_next = { key = 'Tab', mods = 'CTRL' }, -- on the ask line: the other mode
palette = { key = 'P', mods = 'CTRL|SHIFT|ALT' }, -- the terminal's command palette, once more
ask_screen = false, always = false, new = false, mode = false,
+3 -1
View File
@@ -120,7 +120,9 @@ function M.defaults()
private = { key = 'H', mods = 'CTRL|SHIFT' },
ide = { key = 'E', mods = 'CTRL|SHIFT' },
model = { key = 'M', mods = 'CTRL|SHIFT' }, -- the list of chat models
ac_model = { key = 'M', mods = 'CTRL|ALT' }, -- the list of autocomplete models
-- the list of autocomplete models. A small letter: the terminal reads a capital as
-- the key with Shift, which this chord does not have
ac_model = { key = 'm', mods = 'CTRL|ALT' },
-- On the ask line: the other mode (manual, auto). Anywhere else the key does what it
-- did before (Ctrl+Tab: the next tab).
mode_next = { key = 'Tab', mods = 'CTRL' },
+2 -2
View File
@@ -150,7 +150,7 @@ test('options: defaults', function()
eq(o.keys.cli.key, 'S', 'the CLI key')
eq(o.keys.ai.key, 'I', 'the switch')
eq(o.keys.model.key .. ' ' .. o.keys.model.mods, 'M CTRL|SHIFT', 'the list of chat models')
eq(o.keys.ac_model.key .. ' ' .. o.keys.ac_model.mods, 'M CTRL|ALT', 'the list of autocomplete models')
eq(o.keys.ac_model.key .. ' ' .. o.keys.ac_model.mods, 'm CTRL|ALT', 'the list of autocomplete models: a small letter, no Shift')
eq(o.keys.mode_next.key .. ' ' .. o.keys.mode_next.mods, 'Tab CTRL', 'the other mode, on the ask line')
eq(o.keys.palette.mods, 'CTRL|SHIFT|ALT', "the terminal's palette on a chord of its own")
eq(o.keys.mode, false, 'the list of modes has no key until given one')
@@ -971,7 +971,7 @@ test('apply: keys, events, and nothing else happens', function()
end
end
eq(bound['CTRL|SHIFT+M'], 'llembas-model-key', 'the list of chat models')
eq(bound['CTRL|ALT+M'], 'llembas-autocomplete-model-key', 'the list of autocomplete models')
eq(bound['CTRL|ALT+m'], 'llembas-autocomplete-model-key', 'the list of autocomplete models')
eq(bound['CTRL+Tab'], 'llembas-mode-next-key', 'the other mode')
eq(bound['CTRL|SHIFT|ALT+P'], 'llembas-palette', "the terminal's palette, never handed on")
eq(bound['CTRL|SHIFT+P'], 'llembas-pass-ctrl-shift-p', 'the palette chord is the IDE\'s while it is in front')
+1 -1
View File
@@ -96,7 +96,7 @@ if [ "$P" = LLEMBAS_TERM ]; then
if keys="$(clean "$TERMINAL" show-keys --lua 2>"$work/keys-err.txt")"; then
expect "built-in configuration binds the ask key" "$keys" "llembas-ask"
expect "the key for the list of chat models" "$keys" "key = 'M', action = act.EmitEvent 'llembas-model-key'"
expect "the key for the list of autocomplete models" "$keys" "key = 'M', action = act.EmitEvent 'llembas-autocomplete-model-key'"
expect "the key for the list of autocomplete models" "$keys" "mods = 'ALT\|CTRL', key = 'm', action = act.EmitEvent 'llembas-autocomplete-model-key'"
expect "the mode key" "$keys" "llembas-mode-next-key"
expect "the palette chord, which LLeMbas IDE has too" "$keys" "key = 'P', action = act.EmitEvent 'llembas-pass-ctrl-shift-p'"
expect "the terminal's palette on a chord of its own" "$keys" "key = 'P', action = act.EmitEvent 'llembas-palette'"