-
Couldn't load subscription status.
- Fork 42
Add completion for cal and ncal #188
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
base: trunk
Are you sure you want to change the base?
Conversation
| "l; turn off highlighting of today" | ||
| "J; display Julian Calendar" | ||
| "e; display date of Easter" | ||
| "j; display Julian days" | ||
| "M; display monday as the first day of the week" | ||
| "m; display the specified *month*" | ||
| "o; display the date of Orthodox Easter" | ||
| "p; print the country codes and switching days from Julian to Gregorian Calendar" | ||
| "s; assume the switch from Julian to Gregorian Calendar at the date associated with *country_code*" | ||
| "w; print the number of the week below each week column" | ||
| "y; display a calendar for the specified *year*" | ||
| "3; display the previous, current, and next month" | ||
| "A; display the number of *months* after the current month" | ||
| "B; display the number of *months* before the current month" | ||
| "C; switch to cal mode" | ||
| "N; switch to ncal mode" | ||
| "d; use *yyyy-mm* as the current date (for debugging)" | ||
| "H; use *yyyy-mm-dd* as the current date (for debugging)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
POSIX defines no options for cal.
Can we complete these options only if cal is ncal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BSD cal does have options. I think we should check what version of cal is being ran and display completion accordingly similar to other completion scripts for commands that have different versions.
Co-authored-by: WATANABE Yuki <[email protected]>
No description provided.