Linux command
khal 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show calendar
khal
List events
khal list
Add event
khal new [2024-01-15] [10:00] [11:00] [Meeting]
Add event interactively
khal new -i
Search events
khal search [keyword]
Interactive TUI
khal interactive
Import ICS file
khal import [event.ics]
Show events for a date range
khal list [2024-01-15] [7d]
说明
khal is a terminal calendar application. It reads and writes CalDAV calendars through vdirsyncer. The tool provides both command-line and interactive interfaces. It supports multiple calendars and recurring events.
参数
- list _START_ _END_|_DELTA_
- List events for a date range.
- at _DATETIME_
- Show events at a specific datetime.
- calendar _START_ _END_
- Display a calendar (cal-like) view with events.
- new _START_ _END_|_DELTA_ _TIMEZONE_ _SUMMARY_ :: _DESCRIPTION_
- Create a new event. Use -i for interactive entry.
- search _STRING_
- Search events matching the given string.
- edit _STRING_
- Interactively edit or delete matching events.
- import _FILE_
- Import an ICS file.
- printcalendars
- List configured calendars.
- printformats
- Display date/time format samples.
- configure
- Run the initial configuration wizard.
- -a _CALENDAR_ / -d _CALENDAR_
- Include (-a) or exclude (-d) a calendar.
- --help
- Display help information.
FAQ
What is the khal command used for?
khal is a terminal calendar application. It reads and writes CalDAV calendars through vdirsyncer. The tool provides both command-line and interactive interfaces. It supports multiple calendars and recurring events.
How do I run a basic khal example?
Run `khal` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list _START_ _END_|_DELTA_ do in khal?
List events for a date range.