File tree Expand file tree Collapse file tree
cli/cmd/tui/component/prompt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -688,17 +688,6 @@ export function Prompt(props: PromptProps) {
688688 setStore ( "extmarkToPartIndex" , new Map ( ) )
689689 return
690690 }
691- if ( keybind . match ( "input_forward_delete" , e ) && store . prompt . input !== "" ) {
692- const cursorOffset = input . cursorOffset
693- if ( cursorOffset < input . plainText . length ) {
694- const text = input . plainText
695- const newText = text . slice ( 0 , cursorOffset ) + text . slice ( cursorOffset + 1 )
696- input . setText ( newText )
697- input . cursorOffset = cursorOffset
698- }
699- e . preventDefault ( )
700- return
701- }
702691 if ( keybind . match ( "app_exit" , e ) ) {
703692 await exit ( )
704693 return
Original file line number Diff line number Diff line change @@ -464,7 +464,6 @@ export namespace Config {
464464 agent_cycle : z . string ( ) . optional ( ) . default ( "tab" ) . describe ( "Next agent" ) ,
465465 agent_cycle_reverse : z . string ( ) . optional ( ) . default ( "shift+tab" ) . describe ( "Previous agent" ) ,
466466 input_clear : z . string ( ) . optional ( ) . default ( "ctrl+c" ) . describe ( "Clear input field" ) ,
467- input_forward_delete : z . string ( ) . optional ( ) . default ( "ctrl+d" ) . describe ( "Forward delete" ) ,
468467 input_paste : z . string ( ) . optional ( ) . default ( "ctrl+v" ) . describe ( "Paste from clipboard" ) ,
469468 input_submit : z . string ( ) . optional ( ) . default ( "return" ) . describe ( "Submit input" ) ,
470469 input_newline : z . string ( ) . optional ( ) . default ( "shift+return,ctrl+j" ) . describe ( "Insert newline in input" ) ,
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ OpenCode has a list of keybinds that you can customize through the OpenCode conf
4545 "agent_cycle" : " tab" ,
4646 "agent_cycle_reverse" : " shift+tab" ,
4747 "input_clear" : " ctrl+c" ,
48- "input_forward_delete" : " ctrl+d" ,
4948 "input_paste" : " ctrl+v" ,
5049 "input_submit" : " enter" ,
5150 "input_newline" : " shift+enter,ctrl+j" ,
You can’t perform that action at this time.
0 commit comments