aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-19 06:25:52 +0100
committerAkshay <[email protected]>2020-07-19 06:25:52 +0100
commite46a6819b5f6a83ae81b3484369d2072c7f09d35 (patch)
tree2ab58c7c0ac8fb28e0982a8d45a711403d6b6890 /src/main.rs
parent6efda9445a89ccbe30aff30f846119129bf3e53c (diff)
improve command mode positioning/ux
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index f83fc83..d96119e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -13,7 +13,7 @@ use crate::utils::{load_configuration_file, AppConfig};
13 13
14use clap::{App as ClapApp, Arg}; 14use clap::{App as ClapApp, Arg};
15use cursive::termion; 15use cursive::termion;
16use cursive::views::NamedView; 16use cursive::views::{LinearLayout, NamedView};
17use lazy_static::lazy_static; 17use lazy_static::lazy_static;
18 18
19lazy_static! { 19lazy_static! {
@@ -52,7 +52,11 @@ fn main() {
52 } else { 52 } else {
53 let mut s = termion().unwrap(); 53 let mut s = termion().unwrap();
54 let app = App::load_state(); 54 let app = App::load_state();
55 s.add_layer(NamedView::new("Main", app)); 55 let layout = NamedView::new(
56 "Frame",
57 LinearLayout::vertical().child(NamedView::new("Main", app)),
58 );
59 s.add_layer(layout);
56 s.add_global_callback(':', |s| open_command_window(s)); 60 s.add_global_callback(':', |s| open_command_window(s));
57 61
58 s.set_theme(theme::theme_gen()); 62 s.set_theme(theme::theme_gen());