|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
use crate::{keymap, Args};
|
|
|
|
|
|
|
|
use anyhow::Error;
|
|
|
|
use crossterm::{
|
|
|
|
use crossterm::{
|
|
|
|
cursor,
|
|
|
|
cursor,
|
|
|
|
cursor::position,
|
|
|
|
cursor::position,
|
|
|
@ -7,15 +9,11 @@ use crossterm::{
|
|
|
|
terminal::{self, disable_raw_mode, enable_raw_mode},
|
|
|
|
terminal::{self, disable_raw_mode, enable_raw_mode},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use futures::{future::FutureExt, select, StreamExt};
|
|
|
|
use futures::{future::FutureExt, select, StreamExt};
|
|
|
|
|
|
|
|
use helix_core::{state::coords_at_pos, Buffer, State};
|
|
|
|
use std::io::{self, stdout, Write};
|
|
|
|
use std::io::{self, stdout, Write};
|
|
|
|
use std::path::PathBuf;
|
|
|
|
use std::path::PathBuf;
|
|
|
|
use std::time::Duration;
|
|
|
|
use std::time::Duration;
|
|
|
|
|
|
|
|
|
|
|
|
use anyhow::Error;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crate::{keymap, Args};
|
|
|
|
|
|
|
|
use helix_core::{state::coords_at_pos, Buffer, State};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub struct BufferComponent<'a> {
|
|
|
|
pub struct BufferComponent<'a> {
|
|
|
|
x: u16,
|
|
|
|
x: u16,
|
|
|
|
y: u16,
|
|
|
|
y: u16,
|
|
|
|