Skip to content
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

Somehow show content snippets without breaking piping #22

Open
pimterry opened this issue Dec 6, 2016 · 0 comments
Open

Somehow show content snippets without breaking piping #22

pimterry opened this issue Dec 6, 2016 · 0 comments

Comments

@pimterry
Copy link
Owner

pimterry commented Dec 6, 2016

A lot of the time, it's useful to be able to see intro snippets of content when flicking through your notes. There's a few way to do this, but an important constraint is that anything that does this needs to play nicely with piping. You must be able to pipe the results of a search into notes open and open all the matching notes.

Implementation options:

  • Command line option (--snippets?) which adds snippets to output.
  • Separate command which provides snippets for the given files (notes find | notes snippets? | notes head?).
  • Output snippets when stdout is a tty, but hide them and output only the file names if it's not.

Thoughts welcome.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant