utilities/snippets_cli_go#9: Auto print snippet if it's the only search result



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 27-Sep-24 14:03



Description

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.



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 918bd58cd10204cb97b6378102d9fc521b16f038

Commit: 918bd58cd10204cb97b6378102d9fc521b16f038 
Author: B Tasker                            
                            
Date: 2024-09-27T15:06:49.000+01:00 

Message

feat: searches with a single result will print the result instead (utilities/snippets_cli_go#9)

+12 -3 (15 lines changed)