A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index cdde4c4..1311b32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,5 @@ #![feature( btree_set_entry, - associated_type_defaults, - array_try_map, tuple_trait, unboxed_closures, fn_traits, @@ -45,6 +43,9 @@ mod act; mod edi; mod git; mod meta; +// mod new; +// mod new; +mod commands; mod rnd; mod sym; mod trm; @@ -80,8 +81,7 @@ use crate::edi::st::*; use crate::lsp::RqS; use crate::text::{TextArea, col, is_word}; mod bar; -mod commands; -mod complete; +mod com; pub mod hov; mod lsp; pub mod menu; @@ -139,7 +139,7 @@ pub(crate) fn entry(event_loop: EventLoop<()>) { None => None, }; let (fw, fh) = dsb::dims(&fonts.bold, ls); - let title = ed.title(); + let app = winit_app::WinitAppBuilder::with_init( move |elwt| { let window = winit_app::make_window(elwt, |x| { @@ -159,8 +159,7 @@ pub(crate) fn entry(event_loop: EventLoop<()>) { if let Some(x) = w.take() { x.send(window.clone()).unwrap(); } - let w_ = window.clone(); - title.as_deref().map(move |x| w_.set_title(x)); + window.set_ime_allowed(true); window.set_ime_purpose(winit::window::ImePurpose::Terminal); let context = @@ -480,7 +479,7 @@ rust_fsm::state_machine! { Complete(_x) => K(_) => _ [Request(CompletionContext { trigger_kind: CompletionTriggerKind::TRIGGER_FOR_INCOMPLETE_COMPLETIONS, trigger_character:None })], } -use complete::Complete; +use com::Complete; impl Default for CompletionState { fn default() -> Self { Self::None |