diff options
author | Akshay <[email protected]> | 2020-07-19 06:25:52 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-19 06:25:52 +0100 |
commit | e46a6819b5f6a83ae81b3484369d2072c7f09d35 (patch) | |
tree | 2ab58c7c0ac8fb28e0982a8d45a711403d6b6890 /src/main.rs | |
parent | 6efda9445a89ccbe30aff30f846119129bf3e53c (diff) |
improve command mode positioning/ux
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
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 | ||
14 | use clap::{App as ClapApp, Arg}; | 14 | use clap::{App as ClapApp, Arg}; |
15 | use cursive::termion; | 15 | use cursive::termion; |
16 | use cursive::views::NamedView; | 16 | use cursive::views::{LinearLayout, NamedView}; |
17 | use lazy_static::lazy_static; | 17 | use lazy_static::lazy_static; |
18 | 18 | ||
19 | lazy_static! { | 19 | lazy_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()); |