fix: hc send text after --, history reads send args by name
Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
1 parent
2fd0234831
commit
3b7b4618a3
3 files changed
+71
-3
No files matched your search
@@ -39,7 +39,7 @@ import * as fs from "fs/promises";
|
||||
|
||||
import { createState, reduce } from "./state.js";
|
||||
import { keyIntent } from "./keys.js";
|
||||
import { decide, shouldDrain, shouldStartCountdown, sendNow as sendToTerminal } from "./delivery.js";
|
||||
import { decide, shouldDrain, shouldStartCountdown, parseSendArgs, sendNow as sendToTerminal } from "./delivery.js";
|
||||
import { detect as detectTrigger, rank, merge, startsLine } from "./suggest.js";
|
||||
import * as catalog from "./catalog.js";
|
||||
import { LIMITS, validate, mention, removeMention, kindOf, formatBytes } from "./attachments.js";
|
||||
@@ -1896,7 +1896,8 @@ export default class Composer extends View {
|
||||
*/
|
||||
async runSend(args) {
|
||||
const res = await hc(args);
|
||||
if (args[0] === "send" && hcOk(res)) this.recordSent(String(args[1]), String(args[2] ?? ""));
|
||||
const sent = parseSendArgs(args);
|
||||
if (sent && hcOk(res)) this.recordSent(sent.terminal, sent.text);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user