blob: 107d5fa9fa69d4b590177541f00690bd2a7f53c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use std::collections::BTreeMap;
use crate::{config::ZellijState, widgets::widget::Widget};
pub struct SessionWidget {}
impl SessionWidget {
pub fn new(_config: &BTreeMap<String, String>) -> Self {
Self {}
}
}
impl Widget for SessionWidget {
fn process(&self, _name: &str, state: &ZellijState) -> String {
match &state.mode.session_name {
Some(name) => name.to_owned(),
None => "".to_owned(),
}
}
fn process_click(&self, _name: &str, _state: &ZellijState, _pos: usize, _is_double_click: bool) {}
}
|