Files
RedBear-OS/local
vasilito 75d704c06c tlc: phase 22 — wire F11 user-menu command execution
Replaces the Phase 21 TODO stub with the full MC
edit_user_menu flow:

  src/editor/mod.rs — Editor::run_user_menu_command(raw_command):
    1. Expand percent variables via PercentCtx::for_file
       (MC: expand_format).
    2. Stash active selection to clipfile (MC: edit_save_block).
       Block file path exposed via %b for downstream expansion.
    3. Run via 'sh -c <expanded>' so user can use pipes,
       redirections, globs (matches MC user_menu_cmd shell-out).
    4. On non-empty stdout: delete any selection, then
       insert_str at cursor position (MC: edit_insert_file).
       Buffer cursor is synced to editor cursor after
       delete_selection so the insert lands at the right spot.
    5. Status line: 'Menu: ok (N bytes inserted)' on success,
       'Menu: exit N, stderr: ...' on failure.

  src/editor/handlers.rs — replaces TODO with call to
    self.run_user_menu_command(command).

Tests: 1141 passed (was 1137, +4):
  - inserts stdout at cursor
  - replaces active selection (cursor sync verified)
  - reports non-zero exit status
  - expands %f to current file path via cat %f

Release binaries build clean.
2026-06-20 21:27:37 +03:00
..