// Bash mode: only if the very first character is '!' and it's not just '!'. // IMPORTANT: use the raw (untrimmed) text so leading spaces do NOT trigger. // Per requirement: a lone '!' should be treated as a normal message. if (raw.startsWith("!") && raw !== "!") {
params.editor.addToHistory(raw); void params.handleBangLine(raw); return;
}
// Enable built-in editor prompt history navigation (up/down).
params.editor.addToHistory(value);
if (value.startsWith("/")) { void params.handleCommand(value); return;
}
// Some macOS terminals emit multiline paste as rapid single-line submits. // Enable burst coalescing so pasted blocks stay as one user message. if (platform === "darwin") { if (termProgram.includes("iterm") || termProgram.includes("apple_terminal")) { returntrue;
} returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.