Make shell-script-candidates work more

This commit is contained in:
Austen Adler 2022-08-15 20:40:16 -04:00
parent ffb978a60d
commit e9775eb222

View File

@ -67,7 +67,8 @@ enum Commands {
fn main() {
// First, check if we are just getting candidates to run the program. kak_command_fifo is not needed for this
let args = env::args().collect::<Vec<_>>();
if args.len() == 2 && args[1] == "shell-script-candidates" {
eprintln!("Len: {}, args: {:?}", args.len(), args);
if args.len() >= 2 && args[1] == "shell-script-candidates" {
match kakplugin::generate_shell_script_candidates(Commands::VARIANTS) {
Err(e) => eprintln!("{e:?}"),
Ok(()) => {}