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

Add flag similar to --short but filter the entry body for the search term #1941

Open
DanaKirsh opened this issue Oct 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request 🆕 New!

Comments

@DanaKirsh
Copy link

DanaKirsh commented Oct 10, 2024

Use Case/Motivation

On days out I often write a long list of things I've done as one entry, somewhere in the middle the entry might include @movie or @show tags with the movie or show I went to see. I often like to filter my journal for all the movies or shows I've seen, but using --short only includes the title of the entry e.g. "day in town" rather than "Beetlejuice @movie"

Example Usage

If my journal is

[24-05-2023 10:00] New York day 12
Got a train to Penn station
Visited central synagogue
Empire state building
Harry potter and the cursed child Broadway @show in the Lyric Theatre (won ticket lottery)

[11-01-2024 09:00] Prague day 4
11:00 tour of the Clementinum 
Visited the Jewish cemetery
Went to see Carmen @opera @show at the Prague State Opera

[06-10-2024 13:13] London day out
Walked around the shops
The Comedy of Errors @show at Shakespeare's Globe
Lunch at Pizza place @eat-out

Running jrnl --contains @show --short currently produces:

[24-05-2023 10:00] New York day 12

[11-01-2024 09:00] Prague day 4

[06-10-2024 13:13] London day out

I'd like a command that produces jrnl --contains @show --relevant-short:

[24-05-2023 10:00] Harry potter and the cursed child Broadway @show in the Lyric Theatre (won ticket lottery)

[11-01-2024 09:00] Went to see Carmen @opera @show at the Prague State Opera

[06-10-2024 13:13] The Comedy of Errors @show at Shakespeare's Globe

It might be worth considering an option that inputs both the title and the relevant line in the entry jrnl --contains @show --compact:

[24-05-2023 10:00] New York day 12
Harry potter and the cursed child Broadway @show in the Lyric Theatre (won ticket lottery)

[11-01-2024 09:00] Prague day 4
Went to see Carmen @opera @show at the Prague State Opera

[06-10-2024 13:13] London day out
The Comedy of Errors @show at Shakespeare's Globe

Other Information

Related to this closed issue #384

@DanaKirsh DanaKirsh added 🆕 New! enhancement New feature or request labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🆕 New!
Projects
None yet
Development

No branches or pull requests

1 participant