File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use crate :: state:: IFEXIT ;
22use std:: io;
33use tui:: { backend:: Backend , Terminal } ;
4- pub enum InputMode {
5- Normal ,
6- Editing ,
7- Select ,
8- Popup ,
9- PopupEdit ,
10- SubscriptView ,
11- }
4+
125pub trait App {
136 fn run_app_local < B : Backend > ( & mut self , terminal : & mut Terminal < B > ) -> io:: Result < IFEXIT > ;
147}
Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ use crate::state::IFEXIT;
66use std:: io;
77use tui:: widgets:: ListState ;
88use tui:: { backend:: Backend , Terminal } ;
9+ pub enum InputMode {
10+ Normal ,
11+ Editing ,
12+ Select ,
13+ Popup ,
14+ PopupEdit ,
15+ SubscriptView ,
16+ }
917/// App holds the state of the application
1018pub struct AppSub {
1119 /// Current value of the input box
Original file line number Diff line number Diff line change 1- use super :: app :: InputMode ;
1+ use super :: appsub :: InputMode ;
22use super :: appsub:: AppSub ;
33use tui:: {
44 backend:: Backend ,
Original file line number Diff line number Diff line change 1- use super :: app:: InputMode ;
2- use super :: appsub:: AppSub ;
1+ use super :: appsub:: * ;
32use super :: spider;
43use super :: utils;
54use super :: { Page , IFEXIT } ;
You can’t perform that action at this time.
0 commit comments