Skip to content
Myr

execute.fish

This file

Path

test/execute.fish

22 lines · 688 bytes

Last changed by

🐛 Don't ignore execute action when using dmenu modeMark Stosbergbefore adoptionb4e9c1c

History of this file

Take it

🐛 Don't ignore execute action when using dmenu modeMark Stosbergbefore adoptionb4e9c1c

lines 1–22why, one step back
1#!/usr/bin/fish
23set got45# Test that execute action (Enter) selects the input text when there are no matches in dmenu mode6function test_execute_no_matches --argument-names input search7 rm -f out.txt89 echo -e "$input" \10 | $FUZZEL_TEST_BIN --dmenu --search "$search" >out.txt &11 # Wait for fuzzel to launch12 sleep .113 # Press Enter to execute (select the input)14 wtype -k Return15 # Wait for fuzzel to exit16 sleep .117 set got (cat out.txt)18end1920# Test with input that doesn't match any of the provided options21test_execute_no_matches "apple\nbanana\ncherry" "orange"22@test "execute should select the input text when no matches exist" "$got" = "orange"