11use crate :: {
2- config:: { edit_cmd_sound, edit_window_title, save_config, validate_json, CommandOption } ,
2+ config:: { CommandOption , edit_cmd_sound, edit_window_title, save_config, validate_json} ,
33 csv:: import_commands,
44 utils:: { pause, play_sound, run_command} ,
55} ; // Importing functions from utils module
66use inquire:: Select ;
7- use prettytable:: { row , Cell , Row , Table } ; // Importing types for creating tables
7+ use prettytable:: { Cell , Row , Table , row } ; // Importing types for creating tables
88use std:: {
9- io:: { stdout , Write } ,
9+ io:: { Write , stdout } ,
1010 path:: PathBuf ,
1111 process,
1212} ;
1313use termion:: { clear, cursor, terminal_size} ;
1414use textwrap:: fill; // Importing fill function from textwrap crate // Importing IntoRawMode trait for entering raw mode
15- // Importing Select prompt from inquire crate
15+ // Importing Select prompt from inquire crate
1616use std:: process:: exit; // Importing exit function from std::process module
1717
1818//Function for main execution to display Menu
@@ -21,7 +21,7 @@ pub async fn display_menu(config_path: &PathBuf) {
2121 // Main function to display the menu and handle user input
2222 let mut selected_commands: Vec < usize > = vec ! [ ] ; // Initializing vector to hold selected commands
2323 let mut last_selected: Option < usize > = None ; // Initializing variable to hold index of last selected command
24- // Load the Config
24+ // Load the Config
2525 loop {
2626 // Checking if the config is valid or exists; editing if not
2727 let config = match crate :: config:: load_config ( config_path) {
0 commit comments