Add auto-indent support

This commit is contained in:
Jeremy Soller 2023-11-16 09:00:48 -07:00
parent b1c6505832
commit f0d9bc06e1
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 14 additions and 2 deletions

View file

@ -160,7 +160,11 @@ pub fn menu_bar<'a>(config: &Config) -> Element<'a, Message> {
MenuTree::with_children(
menu_folder(fl!("indentation")),
vec![
menu_item(fl!("automatic-indentation"), Message::Todo),
menu_checkbox(
fl!("automatic-indentation"),
config.auto_indent,
Message::ToggleAutoIndent,
),
MenuTree::new(horizontal_rule(1)),
menu_tab_width(1),
menu_tab_width(2),