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

[Feature request] Read from stdin without import #458

Open
avidseeker opened this issue Apr 27, 2023 · 1 comment
Open

[Feature request] Read from stdin without import #458

avidseeker opened this issue Apr 27, 2023 · 1 comment

Comments

@avidseeker
Copy link

Many smartphone journaling apps add a calendar view to journal entries.

It would be nice if calcurse can read from stdin and visualize the input "on-the-fly" without having to import.

For example, if journal.md contains:

# 2023-04-25: Created hello world app
bla bla bla
# 2023-01-10: Wrote lorem ipsum
lorem ipsum
...

If this feature is implemented, then one can run:

sed -n "s/^#//p" journal.md | calcurse -

to make calcurse view journal summaries in any view the user likes (weekly, monthly, etc). Of course this has many other possibilities like visualizing habits from csv file or visualizing git commits, etc...

And with simple text stream manipulation, the input can be modified to be exactly the format calcurse expects it to be.

As a current workaround, it's possible to import events to specified data and apts files, different than the main calendar.

@avidseeker
Copy link
Author

A limited workaround using zsh:

$ calcurse -c =(echo "07/01/2024 [1] Today is the day")

For the same reason mentioned here in #484, <(echo) and calcurse -c /dev/stdin don't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant