pimutils / pimutils/khal

Macro support

Open
#396 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

I'd like to have the option to specify a key to start an "sync" command. I mostly work in ikhal modifying or reading events. Before or after that I quit ikhal start vidrsyncer and restart ikhal. This workflow isn’t that optimal. I could use a cronjob to sync any n minutes, but this isn't useful since mostly this cronjob wouldn't do anything, thus putting unnecessary load on the client and sever. Nobody is changing his calendar that often! Another option would be to wrap ikhal in a script which runs a sync before and after ikhal. Which does not solve the occasionally restarting of ikhal.
A solution like mutts macros would be great, or a slimmed down version of that (like mutt's query_command ).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing ikhal's command handling and the existing sync command used with vidrsyncer. Determine how a configurable key or macro could trigger synchronization before or after calendar interaction, and define completion around syncing without restarting ikhal or running an unnecessary periodic job.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.