xwmx / nb

CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
https://xwmx.github.io/nb
GNU Affero General Public License v3.0
6.64k stars 188 forks source link

`nb list` with `-p` option doesn't have the header and footer #312

Closed foozzi closed 4 months ago

foozzi commented 6 months ago

For example: nb 01-zettel: ls -p 1 doesn't include the header and footer

xwmx commented 4 months ago

@foozzi This is actually by design. nb and nb ls display the header and footer, while nb list just displays the list. nb and nb ls omit the header and footer when used with filtering and sorting options such as -p <page>, -r, -s, --<type>, and filter keywords. This makes it easier to identify that it's a modified display of the list.

Let me know if I missed something or if I can clarify anything else.