Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better way to select specific historic entries to edit #677

Open
BenKettlewell opened this issue Oct 12, 2019 · 7 comments
Open

Better way to select specific historic entries to edit #677

BenKettlewell opened this issue Oct 12, 2019 · 7 comments
Labels
enhancement New feature or request 📌 This can't go stale
Milestone

Comments

@BenKettlewell
Copy link

BenKettlewell commented Oct 12, 2019

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
@wren wren added the enhancement New feature or request label Oct 14, 2019
@alichtman
Copy link
Contributor

alichtman commented Oct 26, 2019

An interactive menu-system with --menu would also be amazing.

Sounds like a great use-case for fzf: https://github.com/nk412/pyfzf

@pspeter
Copy link
Contributor

pspeter commented Oct 29, 2019

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.

@alichtman
Copy link
Contributor

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.

@stale
Copy link

stale bot commented Dec 28, 2019

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.

@stale stale bot added the stale Inactive issue: will be closed soon if no activity label Dec 28, 2019
@stale stale bot closed this as completed Jan 4, 2020
@alichtman
Copy link
Contributor

This should not be closed.

@wren wren added the 📌 This can't go stale label Jan 4, 2020
@wren wren reopened this Jan 4, 2020
@stale stale bot removed the stale Inactive issue: will be closed soon if no activity label Jan 4, 2020
@wren
Copy link
Member

wren commented Jan 4, 2020

@alichtman Agreed. Going through now after the holidays to clean up the backlog a bit. Thanks for pointing this one out!

@wren
Copy link
Member

wren commented May 7, 2020

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.

@wren wren added this to the Unplanned milestone Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📌 This can't go stale
Projects
None yet
Development

No branches or pull requests

4 participants