Allow entry_maker
to return a flag to denote entries type
#2230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What the tittle says.
This is useful when one is creating a live_grep like picker that makes a request to some url that returns a single json array with multiple entries. From the perspective of the oneshot job, the json is on a single line and has to be considered as a single entry, however this might not be what we actually want. Instead, we might want to parse the json and return multiple entries. For instance:
source line : "{someArray: [1, 2, 3]}" -> wanted entries : 1, 2, 3
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I tested this with
curl
as a command that makes request to an http endpoint that returns a json. Also tested other pickers like live_grep, find_files, lsp pickers etc.Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
Configuration:
Amazon Linux 2
Checklist: