Re: [PATCH] cal: add an option to control highlight date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 06, 2007 at 10:29:02AM +0100, Pádraig Brady wrote:
> Li Zefan wrote:
> >> - add an option to the cal command to control highlight date
> >>  (cal -v YYYY/MM/DD)
> >
> > I've done this TODO.

 TODO is usually poor brain dump, it means nothing final :-)

> > If the specified date is within the displayed calendar(s), this date will
> > be highlighted.
> 
> Hi,
> 
> I implemented the original "highlight today" functionality.
> I hadn't noticed this TODO actually, but I'm wondering
> why you chose that interface. I.E. why the -v option?
> Would -h not be more appropriate?

 both -v and -h are bad (sounds like verbose and help).

> Even better would be to allow specifying the day in the
> same way cal already supports specifying the month and year.
> 
> I.E. if you do `cal dd mm yyyy` then that day would be highlighted?

 cal [[[dd] month] year]

 Sounds good... although I hate the case that I need next month and
 I have to specify year too.

 Maybe we can also implement:

    cal +1m      --> current date +1 month
    cal +1d +1w  --> Fri next week (today is Thu)


    Karel



-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux