Open
Description
Issue
Currently the pinned item feature seems to work only if the list is displayed with ls
without filtering.
nb ls notebook:folder/
Header
------
[todos/3] 📌 ✔️ [ ] Pinned todo 3
[todos/1] ✔️ [ ] Normal todo 1
[todos/2] ✔️ [ ] Normal todo 2
------
Footer
- With
ls --reverse
we keep the prority, but we loose the icon:
nb ls --reverse notebook:folder/
Header
------
[todos/3] ✔️ [ ] Pinned todo 3
[todos/2] ✔️ [ ] Normal todo 2
[todos/1] ✔️ [ ] Normal todo 1
------
Footer
- With
ls --tags=tag
we loose the prority and the header/footer, so I suppose that it is passed to list:
nb ls --tags=tag notebook:folder/
[todos/1] ✔️ [ ] Normal todo 1
[todos/3] 📌 ✔️ [ ] Pinned todo 3
[todos/2] ✔️ [ ] Normal todo 2
- With
list
, we loose the order and the icon:
nb list notebook:folder/
[todos/1] ✔️ [ ] Normal todo 1
[todos/3] ✔️ [ ] Pinned todo 3
[todos/2] ✔️ [ ] Normal todo 2
- With
list --tags=tag
, we loose the priority and get an output like fromsearch
:
nb list --tags=tag notebook:folder/
[todos/1] ✔️ [ ] Normal todo 1
-------------------------------
9:#tag
[todos/3] 📌 ✔️ [ ] Pinned todo 3
---------------------------------
9:#tag
[todos/2] ✔️ [ ] Normal todo 2
------------------------------
9:#tag
-
With
todos
, we get the same result thanlist
. -
With
todos --tags=tag
, we get the same result thanls --tags=tag
.
Suggestion
I opened the issue because I wanted to filter todos by tags and/or open/closed status, while also keeping the pin priority, even if I use --reverse
or --sort
.
I think that ls and todos should respect pinned items with any of these options:
nb ls --limit=2000 --no-id --no-indicator --no-header --no-footer --reverse --no-color --tags=tag,tag2 notebook:folder/
nb list --limit=2000 --no-id --no-indicator --reverse --no-color --tags=tag,tag2 notebook:folder/
nb todos --limit=2000 --reverse --no-color notebook:folder/ closed --tags=tag,tag2
Metadata
Metadata
Assignees
Labels
No labels