move keyassignment into config module

This commit is contained in:
Wez Furlong committed 2020-10-03 11:15:57 -07:00
1 parent d64dab2a2b
commit e0dcf40967
11 files changed
+13 -12

No files matched your search

File renamed without changes.
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::keyassignment::{KeyAssignment, MouseEventTrigger};
use crate::config::keyassignment::{KeyAssignment, MouseEventTrigger};
use luahelper::impl_lua_conversion;
use serde::{Deserialize, Deserializer, Serialize};
use termwiz::input::{KeyCode, Modifiers};
+2 -1
View File
@@ -1,11 +1,11 @@
//! Configuration for the gui portion of the terminal
use crate::config::keyassignment::{KeyAssignment, MouseEventTrigger, SpawnCommand};
use crate::create_user_owned_dirs;
use crate::font::locator::FontLocatorSelection;
use crate::font::rasterizer::FontRasterizerSelection;
use crate::font::shaper::FontShaperSelection;
use crate::frontend::FrontEndSelection;
use crate::keyassignment::{KeyAssignment, MouseEventTrigger, SpawnCommand};
use anyhow::{anyhow, bail, Context, Error};
use lazy_static::lazy_static;
use luahelper::impl_lua_conversion;
@@ -27,6 +27,7 @@ use toml;
mod color;
mod daemon;
mod font;
pub mod keyassignment;
mod keys;
mod ssh;
mod terminal;
+1 -1
View File
@@ -6,8 +6,8 @@
//! time of writing our window layer doesn't provide an API for context
//! menus.
use crate::config::configuration;
use crate::config::keyassignment::{SpawnCommand, SpawnTabDomain};
use crate::frontend::gui::termwindow::{ClipboardHelper, SpawnWhere, TermWindow};
use crate::keyassignment::{SpawnCommand, SpawnTabDomain};
use crate::mux::domain::{DomainId, DomainState};
use crate::mux::tab::TabId;
use crate::mux::window::WindowId;
+3 -3
View File
@@ -2,6 +2,9 @@
use super::quad::*;
use super::renderstate::*;
use super::utilsprites::RenderMetrics;
use crate::config::keyassignment::{
InputMap, KeyAssignment, MouseEventTrigger, SpawnCommand, SpawnTabDomain,
};
use crate::config::{configuration, ConfigHandle, TextStyle};
use crate::font::shaper::GlyphInfo;
use crate::font::units::*;
@@ -15,9 +18,6 @@ use crate::frontend::gui::overlay::{
use crate::frontend::gui::scrollbar::*;
use crate::frontend::gui::selection::*;
use crate::frontend::gui::tabbar::{TabBarItem, TabBarState};
use crate::keyassignment::{
InputMap, KeyAssignment, MouseEventTrigger, SpawnCommand, SpawnTabDomain,
};
use crate::mux::domain::{DomainId, DomainState};
use crate::mux::pane::{Pane, PaneId};
use crate::mux::renderable::{RenderableDimensions, StableCursorPosition};
+1 -1
View File
@@ -24,7 +24,7 @@ mod scripting;
mod config;
mod connui;
mod frontend;
mod keyassignment;
use config::keyassignment;
mod localtab;
mod markdown;
mod mux;
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::keyassignment::PaneDirection;
use crate::config::keyassignment::PaneDirection;
use crate::mux::domain::DomainId;
use crate::mux::pane::*;
use crate::mux::{Mux, WindowId};
+1 -1
View File
@@ -207,7 +207,7 @@ fn font_with_fallback<'lua>(
fn action<'lua>(
_lua: &'lua Lua,
action: Table<'lua>,
) -> mlua::Result<crate::keyassignment::KeyAssignment> {
) -> mlua::Result<crate::config::keyassignment::KeyAssignment> {
Ok(from_lua_value(Value::Table(action))?)
}
+1 -1
View File
@@ -509,7 +509,7 @@ pub struct SplitPane {
pub direction: SplitDirection,
pub command: Option<CommandBuilder>,
pub command_dir: Option<String>,
pub domain: crate::keyassignment::SpawnTabDomain,
pub domain: crate::config::keyassignment::SpawnTabDomain,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
+1 -1
View File
@@ -1,8 +1,8 @@
use crate::config::keyassignment::SpawnTabDomain;
use crate::config::{SshDomain, TlsDomainClient, UnixDomain};
use crate::connui::ConnectionUI;
use crate::font::FontConfiguration;
use crate::frontend::front_end;
use crate::keyassignment::SpawnTabDomain;
use crate::mux::domain::{alloc_domain_id, Domain, DomainId, DomainState};
use crate::mux::pane::{Pane, PaneId};
use crate::mux::tab::{SplitDirection, Tab, TabId};
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::keyassignment::SpawnTabDomain;
use crate::config::keyassignment::SpawnTabDomain;
use crate::mux::pane::{Pane, PaneId};
use crate::mux::renderable::{RenderableDimensions, StableCursorPosition};
use crate::mux::tab::TabId;