One of the features of the old script which I've made a lot of use of is it counting search results and automatically printing a snippet if it's the only result.
So, if I search for lua I'll get a list of results back, but if I search for something like has element I'll get the relevant snippet back.
Activity
27-Sep-24 14:03
assigned to @btasker
27-Sep-24 14:07
mentioned in commit 918bd58cd10204cb97b6378102d9fc521b16f038
Commit: 918bd58cd10204cb97b6378102d9fc521b16f038 Author: B Tasker Date: 2024-09-27T15:06:49.000+01:00Message
feat: searches with a single result will print the result instead (utilities/snippets_cli_go#9)