-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature Request: notes grep should show the notes content entries #8
Comments
I'd like to do that, but it's slightly tricky since it's useful to be able to pipe the matched filenames elsewhere (
What do you think? |
I see. Perhaps we could use a different command such as notes cgrep or notes lines. |
What about the 2nd option? If E.g. like this: > notes grep <pattern>
my-note.md:
blah blah blah *matching text* blah blah
another-note.md:
more *matching text* blah blah > notes grep <pattern> | cat
my-note.md
another-note.md |
That would be very handy. But I am afraid the users would expect the pipe to contain the content as well and not only the file list. |
I've opened a new ticket (#22) tracking the underlying issue here: we need a way to get snippets of any set of notes that doesn't break piping. I'm going to close this and track it over there - feel free to add your opinions there, or start looking at implementation options. Thanks for getting involved! |
I think that notes grep command should not only list the notes title but also show the lines where the pattern has been found.
The text was updated successfully, but these errors were encountered: