Skip to content

deleteCommandLinePreviousWord

deleteCommandLinePreviousWord(state): CommandLineEditState

Defined in: domain/cli/command-line-editing.ts:102

Cursor前方の単語を削除。

CommandLineEditState

現在の編集状態。

CommandLineEditState

前方単語を削除した編集状態。

const result = deleteCommandLinePreviousWord({ value: "go Stripe", selectionStart: 9, selectionEnd: 9 });
// { value: "go ", selectionStart: 3, selectionEnd: 3 }