3use crate::keymap::Keymaps;
5#[derive(Debug, Default, Clone, PartialEq, Deserialize)]
7 pub theme: Option<String>,
13 pub editor: helix_view::editor::Config,
16#[derive(Debug, Default, Clone, PartialEq, Deserialize)]
17#[serde(rename_all = "kebab-case")]
19 pub display_messages: bool,
23fn parsing_keymaps_config_file() {
25 use crate::keymap::Keymap;
26 use helix_core::hashmap;
27 use helix_view::document::Mode;
29 let sample_keymaps = r#"
32 S-C-a = "delete_selection"
35 A-F12 = "move_next_word_end"
39 toml::from_str::<Config>(sample_keymaps).unwrap(),
41 keys: Keymaps(hashmap! {
42 Mode::Insert => Keymap::new(keymap!({ "Insert mode"
43 "y" => move_line_down,
44 "S-C-a" => delete_selection,
46 Mode::Normal => Keymap::new(keymap!({ "Normal mode"
47 "A-F12" => move_next_word_end,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list