From 2c0f6e026acb2ecfc1c39d617f47d024e404bb9d Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 30 May 2024 08:45:22 -0500 Subject: Input Prompt: Implement left and right arrow --- lib/stitched_article.ml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/stitched_article.ml') diff --git a/lib/stitched_article.ml b/lib/stitched_article.ml index d333747..9548e11 100644 --- a/lib/stitched_article.ml +++ b/lib/stitched_article.ml @@ -96,7 +96,8 @@ let rec render | `Key (`ASCII 'o', []) -> let (input_state : Input_prompt.state) = { screen = img - ; user_input = "" + ; user_input_pre = "" + ; user_input_post = "" ; prompt = "EXPORT TO" ; on_enter = (fun path -> @@ -128,7 +129,8 @@ let rec render let selected_file = Grep.execution_directory ^ "/" ^ selected_file in let (input_state : Input_prompt.state) = { screen = img - ; user_input = "" + ; user_input_pre = "" + ; user_input_post = "" ; prompt = "COMMAND" ; on_enter = (fun command -> @@ -174,7 +176,8 @@ let rec render | `Key (`ASCII 's', []) -> let (input_state : Input_prompt.state) = { screen = img - ; user_input = "" + ; user_input_pre = "" + ; user_input_post = "" ; prompt = "REGEXP" ; on_enter = (fun tag -> -- cgit v1.2.3