Merge pull request #1584 from zed-industries/restore-modal-terminal
restore modal terminal
This commit is contained in:
@@ -40,21 +40,11 @@ pub struct Settings {
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Default, Deserialize, JsonSchema)]
|
||||
pub struct FeatureFlags {
|
||||
modal_terminal: Option<bool>,
|
||||
}
|
||||
pub struct FeatureFlags {}
|
||||
|
||||
impl FeatureFlags {
|
||||
pub fn keymap_files(&self) -> Vec<&'static str> {
|
||||
let mut res = vec![];
|
||||
if self.modal_terminal() {
|
||||
res.push("keymaps/experiments/modal_terminal.json")
|
||||
}
|
||||
res
|
||||
}
|
||||
|
||||
pub fn modal_terminal(&self) -> bool {
|
||||
self.modal_terminal.unwrap_or_default()
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,10 +53,7 @@ use crate::mappings::{
|
||||
|
||||
///Initialize and register all of our action handlers
|
||||
pub fn init(cx: &mut MutableAppContext) {
|
||||
let settings = cx.global::<Settings>();
|
||||
if settings.experiments.modal_terminal() {
|
||||
cx.add_action(deploy_modal);
|
||||
}
|
||||
cx.add_action(deploy_modal);
|
||||
|
||||
terminal_view::init(cx);
|
||||
terminal_container_view::init(cx);
|
||||
|
||||
Reference in New Issue
Block a user