pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

No way to single out calendars whose names are leading substrings of other calendar names #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a calendar called any-name
2. Create a new calendar called any-name-plus-more
3. run gcalcli --cal any-name calw

What is the expected output? What do you see instead?
Expected: A week view of calendar any-name, and any-name alone
Reality: A week view of calendars any-name and any-name-plus-more

What version of the product are you using? On what operating system?
1.4 on Gentoo, from the ebuild at Gentoo Bugzilla

Original issue reported on code.google.com by evilgn...@gmail.com on 11 Feb 2008 at 5:45

GoogleCodeExporter commented 9 years ago
This already works in gcalcli.  The --cal option uses a regex for expressing a 
calendar.  So with the example stated using:

gcalcli --cal "^any-name$" agenda

will work as expected.  With the begin/end regex specification any calendar 
whose name contains the substring "any-name" will be matched.

See http://docs.python.org/library/re.html

Original comment by eda...@insanum.com on 31 Jul 2011 at 12:48