Bike is becoming my preferred environment for the fast post‑processing of LLM‑generated Markdown exports, because its outlining model lets me quickly turn raw AI output into a clean, heading‑centric document structure.
In my current workflow, the Markdown headings exported from AI tools act as the primary structural anchors of the text. When I bring this content into Bike, I don’t actually want to outdent the headings themselves. Instead, I want to indent all non‑heading rows (body text, notes, etc.) so that the headings remain at their current outline level while the surrounding content moves one level deeper.
Technically, this means: all rows that are not of row type “heading” would be indented by one level, making the headings appear outdented relative to the rest of the text. The headings thus form the outer structural frame, and all other rows hang underneath them as more deeply nested content. This relative outdenting of headings—achieved by indenting everything else—matches how I think about the document: headings as the visible spine, body text as subordinate material.
It would be very helpful if Bike made it easy to perform this kind of operation in a repeatable way (for example via scripting, Shortcuts, or a built‑in command that indents all non‑heading rows in one step), so that imported Markdown can quickly be transformed into a clear, heading‑centric outline.
Klar, hier ein kurzer Nachtrag, den du separat unter deinen bestehenden Post setzen kannst:
As a small follow‑up: for this idea I asked an AI assistant to propose a possible AppleScript. The following snippet is AI‑generated and not tested, but it illustrates the intended operation (indent all non‑heading rows, never indent headings):
-- Bike: Indent all non-heading rows by one level
-- Intention: keep headings at their level and make them appear outdented
tell application "Bike"
if not (exists front document) then return
tell front document
-- Select all rows whose type is not "heading"
set bodyRows to rows matching "//*[@type!=heading]"
repeat with r in bodyRows
try
indent r
end try
end repeat
end tell
end tell