Skip to content

Commit

Permalink
minor styling&refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpombrio committed May 5, 2024
1 parent 2fcf748 commit 44c63fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions data/keyhints_lang.ron
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ LanguageSpec(
notations: [
("Root", Fold(
first: Child(0),
join: Concat(Left, Concat(Newline, Right)),
)),
join: Concat(Left, Concat(Newline, Right)))
),
("Entry", Concat(
Child(0),
Concat(
Choice(Literal(" "), Indent(" ", None, Newline)),
Child(1))
)),
Child(0),
Indent(" ", None, Concat(
Choice(Literal(" "), Newline),
Child(1))))
),
("Key", Style(Properties(fg_color: Some(Base0C)), Text)),
("Hint", Text),
]
Expand Down
4 changes: 2 additions & 2 deletions scripts/init.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ tree_keymap.bind_key("K", "First", || s::tree_nav_first());
tree_keymap.bind_key("j", "Next", || s::tree_nav_next());
tree_keymap.bind_key("J", "Last", || s::tree_nav_last());
tree_keymap.bind_key("h", "ChildLeft", || s::tree_nav_child_left());
tree_keymap.bind_key("H", "BeforeParent", || s::tree_nav_before_parent());
tree_keymap.bind_key("H", "ParentLeft", || s::tree_nav_before_parent());
tree_keymap.bind_key("l", "ChildRight", || s::tree_nav_child_right());
tree_keymap.bind_key("L", "AfterParent", || s::tree_nav_after_parent());
tree_keymap.bind_key("L", "ParentRight", || s::tree_nav_after_parent());

tree_keymap.bind_key(";", "Parent", || s::tree_nav_parent());
tree_keymap.bind_key("^", "First", || s::tree_nav_first());
Expand Down
2 changes: 1 addition & 1 deletion src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<F: Frontend<Style = Style> + 'static> Runtime<F> {
pane::PaneSize::Fixed(1),
pane::PaneNotation::Fill {
ch: ' ',
style: Style::default().with_bg(Base16Color::Base04, Priority::Low),
style: Style::default(),
},
),
]),
Expand Down

0 comments on commit 44c63fa

Please sign in to comment.