Use the word 'keymap' more consistently
Co-authored-by: Keith Simmons <keith@zed.dev>
This commit is contained in:
co-authored by
Keith Simmons
parent
be11f63f1e
commit
ee3eb9658f
@@ -7,14 +7,14 @@ use serde_json::value::RawValue;
|
||||
|
||||
#[derive(Deserialize, Default, Clone)]
|
||||
#[serde(transparent)]
|
||||
pub struct KeyMapFile(BTreeMap<String, ActionsByKeystroke>);
|
||||
pub struct KeymapFile(BTreeMap<String, ActionsByKeystroke>);
|
||||
|
||||
type ActionsByKeystroke = BTreeMap<String, Box<RawValue>>;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct ActionWithData<'a>(#[serde(borrow)] &'a str, #[serde(borrow)] &'a RawValue);
|
||||
|
||||
impl KeyMapFile {
|
||||
impl KeymapFile {
|
||||
pub fn load_defaults(cx: &mut MutableAppContext) {
|
||||
for path in ["keymaps/default.json", "keymaps/vim.json"] {
|
||||
Self::load(path, cx).unwrap();
|
||||
|
||||
@@ -15,7 +15,7 @@ use std::{collections::HashMap, sync::Arc};
|
||||
use theme::{Theme, ThemeRegistry};
|
||||
use util::ResultExt as _;
|
||||
|
||||
pub use keymap_file::KeyMapFile;
|
||||
pub use keymap_file::KeymapFile;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Settings {
|
||||
|
||||
Reference in New Issue
Block a user