jrnl
jrnl copied to clipboard
Better way to select specific historic entries to edit
Jrnl really needs a better way to select which jrnl entries to view/open/edit.
The only way to filter the entries you want is by consecutive timestamps and tags. Tags are amazing but very often come up short. Time entries are useful only if you're using jrnl like a journal (heh).
In the following example I use @notes
and @keyword
to filter down jrnl entries to only four items with the following titles. There's no way for me to easily narrow down on say item two and four. I can use -n 3
to see both but then I also get item three in the middle.
A fuzzy search feature (grep -i -E "Topic1|Topic3"
) where you could search on an entry's contents in addition to tags (either title only or anywhere in the entry) would be amazing. An interactive menu-system with --menu
would also be amazing.
> jrnl @notes @keyword --short
2019-09-26 18:29 Lecture on Topic1
2019-09-27 19:27 Reading notes Topic2
2019-10-02 18:23 Topic3
2019-10-11 18:42 Project Design Topic4
An interactive menu-system with --menu would also be amazing.
Sounds like a great use-case for fzf
: https://github.com/nk412/pyfzf
pyfzf hasn't been updated in 2 years. I'd avoid using it. There's a lot of interactive prompt packages out there, but I'd be careful jumping on one too quickly. A lot of them are unmaintained.
There's a lot of interactive prompt packages out there, but I'd be careful jumping on one too quickly.
I totally agree, but I haven't found one that seems better for this use-case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This should not be closed.
@alichtman Agreed. Going through now after the holidays to clean up the backlog a bit. Thanks for pointing this one out!
We now have -contains
to search the body of journal entries, which can be used in combination with the other filters to refine your search.
Still not sure about an interactive menu option, but I'll leave this open while we consider it.