summivox / thucal2

Tsinghua University curriculum -> iCalendar format (.ics) -> Google Calendar, etc.
http://userscripts.org/scripts/show/159785
22 stars 9 forks source link

diff export #21

Open wuuuuuud opened 9 years ago

wuuuuuud commented 9 years ago

顾名思义... 不然二级选课和补退选很麻烦的,很麻烦的

chenxiaoqino commented 9 years ago

自己从ics文件里选几行删掉不行么?

发自我的 iPad

在 2014-9-25,下午11:38,wuuuuuud notifications@github.com 写道:

顾名思义... 不然二级选课和补退选很麻烦的,很麻烦的

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/21.

ghost commented 9 years ago

我的做法是这样,先新建一个calendar “THU” 专门用于存选课信息 screen shot 2014-09-26 at 0 20 23 然后在导入ics 的时候,分组选择THU,在二级选课之后,将之前THU的内容全部删除,再重新导入即可 screen shot 2014-09-26 at 0 19 15

summivox commented 9 years ago

@mackondy 嗯这个是“官方”推荐做法 @wuuuuuud 我应该告诉过你这么做是坠好的,你就是太傲娇了

wuuuuuud commented 9 years ago

...... 删日历这种方法太麻烦了,补退选一次,二级选课可能要删好几次 @summivox 你的前半句话是错误的,后半句话也是错误的,而且前后半句没有逻辑关系

summivox commented 9 years ago

手动选导入哪几门更麻烦(点击数更多,而且没有避免手工维护的问题) 一定要自动维护就要有API,但有API就仅针对google calendar了,其他日历的怎么办

wuuuuuud commented 9 years ago

全选和全不选按钮...一级和二级按钮... 总比打开ics删代码强...

summivox commented 9 years ago

不用打开ics啊……你导入了之后在日历里面都可以随便操作的啊 日历软件已经提供的功能我为什么非要提供呢

wuuuuuud commented 9 years ago

不删之前的内容会生成同样的事件,删的话就太蠢了 2014年9月26日 下午9:18于 "summivox" notifications@github.com写道:

不用打开ics啊……你导入了之后在日历里面都可以随便操作的啊

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/21#issuecomment-56959893.

summivox commented 9 years ago

IDEA: Diff

summivox commented 9 years ago

一个自动化的做法是:localStorage存上一次导出的课表,(如果没了,允许读取已经导出的,但需要在textarea中复制粘贴),然后自动生成diff……

但是,通过ical格式来删除事件似乎不是所有日历都支持的。


所以,就算你能部分导出,还是没有解决需要手工删东西的问题。 得不偿失,这个东西只要没有API就是无解。 暂时放在这里,因为其实完整的计划(thuplan)是要大量利用localStorage的

wuuuuuud commented 9 years ago

手工删除其实问题不大,只用到鼠标就行,而且不会删除太多

summivox commented 9 years ago

在日历中手工删除其实问题不大,只用到鼠标就行,而且不会删除太多

chenxiaoqino commented 9 years ago

是我的话就写个做ics diff的bash script解决问题…

Yours sincerely, Danny Chen 计科30 陈晓奇 about.me http://about.me/cxqn

On Sat, Sep 27, 2014 at 9:07 AM, summivox notifications@github.com wrote:

在日历中手工删除其实问题不大,只用到鼠标就行,而且不会删除太多

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/21#issuecomment-57037510.

wuuuuuud commented 9 years ago

删掉一个日历(再新建一个日历)和删掉一组事件是有差别的... 新建日历需要用键盘来输入日历名

chenxiaoqino commented 8 years ago

考虑通过ICS文件里的UID部分解决问题;同UID的事件会直接更新。 不过“导入”操作只能添加和更新事件,没法删除事件,所以删除选课之后有点难实现。

see #25