iOS: suggestion row above the keyboard; editor file name !484

merged merged by cmc on 2026-11-26 06:03 UTC · krz/orgstar:m4-suggestions into main

Discussion

cmc 2026-11-26 06:02 UTC

Closes #145, closes #236.

#145

  • While completion has candidates and the on-screen keyboard is used (iPhone and iPad), the key bar shows them in its place: the CompletionList's candidates in order (up to 30), with the list's detail (snippet name, template block, heading file); snippets marked with a symbol. Scrolls on its own; the x button at the end stays fixed and puts the row away until the completion closes or Complete at Point runs again.
  • A tap inserts as choosing from the list does; snippets expand.
  • Shows when the list would open by itself (completion-auto, pause, minimum length) and on Complete at Point.
  • With a hardware keyboard (GCKeyboard connected) the floating list stays, since its keys move through it; the key bar keeps its buttons.
  • Same height and Dynamic Type behaviour as the key bar.
  • Shared logic: SuggestionRow in OrgApp (usesRow, shows, items), SuggestionRowTests.

#236

  • Export… (app.export-dialog) and Export Subtree… (app.export-subtree-dialog, greyed outside a subtree) in the editor's Commands list, under Export. Export… opens ExportScreen.
  • iPhone toolbar: no Export and no Recovery Versions button (Recovery Versions… is in Commands). With the Recovery button the name was cut to "suggesti…" at the default size and gone at the largest size. iPad keeps both buttons.
  • EditorCommandListTests checks both commands are in the editor's list and in the Export group.

Manual: 14-ios.org (Suggestions under The key bar, Completion, editor toolbar, Commands, Export, Recovery Versions). New string "Hide Suggestions" in all catalog languages.

Tested: swift test, both Xcode builds. Simulator: iPhone 17 and iPad Air 11-inch (M4), on-screen keyboard, light and dark, default and largest text size. Not tested: hardware keyboard path on a device (floating list instead of the row).

Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form