aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-15 15:25:36 -0500
committerMarc Coquand <marc@mccd.space>2024-05-15 15:25:36 -0500
commitebb302498593f15330affa732c5206e31d882d8f (patch)
treeb874255b175974576a19789663f6532e4aa06239
parentfa2582d562118dc1ceccd01ede8d0d7e80d71a29 (diff)
downloadstitch-ebb302498593f15330affa732c5206e31d882d8f.tar.gz
stitch-ebb302498593f15330affa732c5206e31d882d8f.tar.bz2
stitch-ebb302498593f15330affa732c5206e31d882d8f.zip
Rename screen -> Prompt
Diffstat (limited to '')
-rw-r--r--lib/done.ml4
-rw-r--r--lib/headlines.ml6
-rw-r--r--lib/input_prompt.ml (renamed from lib/input_screen.ml)0
-rw-r--r--lib/stitched_article.ml6
-rw-r--r--lib/todos.ml4
5 files changed, 10 insertions, 10 deletions
diff --git a/lib/done.ml b/lib/done.ml
index 815f663..63e25a9 100644
--- a/lib/done.ml
+++ b/lib/done.ml
@@ -74,7 +74,7 @@ let rec render
render t { state with pos = 0, min y content_end }
| `Key (`ASCII '?', []) -> Help_screen.render t { go_back = (fun () -> render t state) }
| `Key (`ASCII 'r', []) ->
- let (input_state : Input_screen.state) =
+ let (input_state : Input_prompt.state) =
{ screen = img
; user_input = ""
; prompt = "REGEXP: "
@@ -95,7 +95,7 @@ let rec render
render t state)
}
in
- Input_screen.render t input_state
+ Input_prompt.render t input_state
| `Key (`ASCII '1', []) -> goto_headlines (fun () -> render t state)
| `Key (`ASCII '2', []) -> goto_todo (fun () -> render t state)
| `Key (`ASCII 'g', []) ->
diff --git a/lib/headlines.ml b/lib/headlines.ml
index 6b79262..36191bd 100644
--- a/lib/headlines.ml
+++ b/lib/headlines.ml
@@ -1,7 +1,7 @@
module Grep = Grep
module Common = Common
open Notty
-module Input_screen = Input_screen
+module Input_prompt = Input_prompt
module Stitched_article = Stitched_article
module Help_screen = Help_screen
@@ -98,7 +98,7 @@ let rec render
; goto_done_view
}
| `Key (`ASCII 'r', []) ->
- let (input_state : Input_screen.state) =
+ let (input_state : Input_prompt.state) =
{ screen = img
; user_input = ""
; prompt = "REGEXP: "
@@ -116,7 +116,7 @@ let rec render
render t state)
}
in
- Input_screen.render t input_state
+ Input_prompt.render t input_state
| `Key (`ASCII 'j', []) | `Key (`ASCII 'N', [ `Ctrl ]) -> scroll_down ()
| `Key (`ASCII 'k', []) | `Key (`ASCII 'P', [ `Ctrl ]) -> scroll_up ()
| `Key (`Arrow d, _) ->
diff --git a/lib/input_screen.ml b/lib/input_prompt.ml
index 45979aa..45979aa 100644
--- a/lib/input_screen.ml
+++ b/lib/input_prompt.ml
diff --git a/lib/stitched_article.ml b/lib/stitched_article.ml
index 981258b..1698e68 100644
--- a/lib/stitched_article.ml
+++ b/lib/stitched_article.ml
@@ -1,7 +1,7 @@
module Grep = Grep
module Common = Common
open Notty
-module Input_screen = Input_screen
+module Input_prompt = Input_prompt
module Help_screen = Help_screen
type state =
@@ -58,7 +58,7 @@ let rec render
| `Key (`ASCII 'j', []) | `Key (`ASCII 'N', [ `Ctrl ]) -> scroll_down ()
| `Key (`ASCII 'k', []) | `Key (`ASCII 'P', [ `Ctrl ]) -> scroll_up ()
| `Key (`ASCII 'r', []) ->
- let (input_state : Input_screen.state) =
+ let (input_state : Input_prompt.state) =
{ screen = img
; user_input = ""
; prompt = "REGEXP: "
@@ -100,7 +100,7 @@ let rec render
render t state)
}
in
- Input_screen.render t input_state
+ Input_prompt.render t input_state
| `Key (`ASCII '?', []) -> Help_screen.render t { go_back = (fun () -> render t state) }
| `Key (`ASCII '2', []) -> goto_todos_view (fun () -> render t state)
| `Key (`ASCII '3', []) -> goto_done_view (fun () -> render t state)
diff --git a/lib/todos.ml b/lib/todos.ml
index bc8607f..57f03a8 100644
--- a/lib/todos.ml
+++ b/lib/todos.ml
@@ -86,7 +86,7 @@ let rec render
; content_pretty = Array.of_list content_pretty
}
| `Key (`ASCII 'r', []) ->
- let (input_state : Input_screen.state) =
+ let (input_state : Input_prompt.state) =
{ screen = img
; user_input = ""
; prompt = "REGEXP: "
@@ -107,7 +107,7 @@ let rec render
render t state)
}
in
- Input_screen.render t input_state
+ Input_prompt.render t input_state
| `Key (`ASCII 'j', []) | `Key (`ASCII 'N', [ `Ctrl ]) -> scroll_down ()
| `Key (`ASCII 'k', []) | `Key (`ASCII 'P', [ `Ctrl ]) -> scroll_up ()
| `Key (`ASCII 't', []) ->