mirror of https://github.com/sayanarijit/xplr
Finish porting config.yml to init.lua
parent
da1d7742f7
commit
25a9d03237
@ -1,81 +0,0 @@
|
||||
version: v0.10.0-beta.3
|
||||
layouts:
|
||||
custom: {}
|
||||
builtin:
|
||||
default:
|
||||
Horizontal:
|
||||
config:
|
||||
horizontal_margin: 0
|
||||
vertical_margin: 0
|
||||
constraints:
|
||||
- Percentage: 70
|
||||
- Percentage: 30
|
||||
splits:
|
||||
- Vertical:
|
||||
config:
|
||||
margin: 0
|
||||
constraints:
|
||||
- Length: 3
|
||||
- Min: 1
|
||||
- Length: 3
|
||||
splits:
|
||||
- SortAndFilter: ~
|
||||
- Table: ~
|
||||
- InputAndLogs: ~
|
||||
- Vertical:
|
||||
config:
|
||||
constraints:
|
||||
- Percentage: 50
|
||||
- Percentage: 50
|
||||
splits:
|
||||
- Selection: ~
|
||||
- HelpMenu: ~
|
||||
no_help:
|
||||
Horizontal:
|
||||
config:
|
||||
constraints:
|
||||
- Percentage: 70
|
||||
- Percentage: 30
|
||||
splits:
|
||||
- Vertical:
|
||||
config:
|
||||
constraints:
|
||||
- Length: 3
|
||||
- Min: 1
|
||||
- Length: 3
|
||||
splits:
|
||||
- SortAndFilter: ~
|
||||
- Table: ~
|
||||
- InputAndLogs: ~
|
||||
- Selection: ~
|
||||
|
||||
no_selection:
|
||||
Horizontal:
|
||||
config:
|
||||
constraints:
|
||||
- Percentage: 70
|
||||
- Percentage: 30
|
||||
splits:
|
||||
- Vertical:
|
||||
config:
|
||||
constraints:
|
||||
- Length: 3
|
||||
- Min: 1
|
||||
- Length: 3
|
||||
splits:
|
||||
- SortAndFilter: ~
|
||||
- Table: ~
|
||||
- InputAndLogs: ~
|
||||
- HelpMenu: ~
|
||||
|
||||
no_help_no_selection:
|
||||
Vertical:
|
||||
config:
|
||||
constraints:
|
||||
- Length: 3
|
||||
- Min: 1
|
||||
- Length: 3
|
||||
splits:
|
||||
- SortAndFilter: ~
|
||||
- Table: ~
|
||||
- InputAndLogs: ~
|
@ -1,29 +0,0 @@
|
||||
const DEFAULT_CONFIG_YAML: &str = include_str!("config.yml");
|
||||
pub const DEFAULT_LUA_SCRIPT: &str = include_str!("init.lua");
|
||||
|
||||
use crate::config::{self, Config};
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
static ref DEFAULT_CONFIG: Config = serde_yaml::from_str(DEFAULT_CONFIG_YAML).unwrap();
|
||||
}
|
||||
|
||||
pub fn version() -> String {
|
||||
DEFAULT_CONFIG.version().clone()
|
||||
}
|
||||
|
||||
pub fn layouts() -> config::LayoutsConfig {
|
||||
DEFAULT_CONFIG.layouts().clone()
|
||||
}
|
||||
|
||||
pub fn general() -> config::GeneralConfig {
|
||||
DEFAULT_CONFIG.general().clone()
|
||||
}
|
||||
|
||||
pub fn node_types() -> config::NodeTypesConfig {
|
||||
DEFAULT_CONFIG.node_types().clone()
|
||||
}
|
||||
|
||||
pub fn modes() -> config::ModesConfig {
|
||||
DEFAULT_CONFIG.modes().clone()
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue