unison/unison-src/transcripts/fuzzy-options.md
2024-06-26 11:22:32 -07:00

842 B

Test that the options selector for fuzzy finding is working as expected for different argument types.

If an argument is required but doesn't have a fuzzy resolver, the command should just print the help.

-- The second argument of move.term is a 'new-name' and doesn't have a fuzzy resolver
scratch/main> move.term

If a fuzzy resolver doesn't have any options available it should print a message instead of opening an empty fuzzy-select.

scratch/empty> view
optionOne = 1

nested.optionTwo = 2

Definition args

scratch/main> add
scratch/main> debug.fuzzy-options view _

Namespace args

scratch/main> add
scratch/main> debug.fuzzy-options find-in _

Project Branch args

myproject/main> branch mybranch
scratch/main> debug.fuzzy-options switch _