Skip to content

Somehow show content snippets without breaking piping #22

Open
@pimterry

Description

@pimterry

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions