Skip to content
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

アイテムに「反復」に関するフラグ的情報を持たせてみる #14

Closed
issm opened this issue Jan 7, 2012 · 3 comments
Closed

Comments

@issm
Copy link
Owner

issm commented Jan 7, 2012

この情報が有効な場合,「done」の際に step++ される,とかそんな仕組みはどうか.

また,「反復」アイテムの場合,Homeで「done」されたときに「どのリストに戻るか」という情報も必要になるので,そのへんも考える必要がある.
#3#13 とも関連する感じ.

@issm
Copy link
Owner Author

issm commented Jan 7, 2012

「done」時に step--,という使い方もありそう.フラグ値として 1, 0, -1 という3値あたりで考えるのがよいだろうか.

@issm
Copy link
Owner Author

issm commented Jan 9, 2012

反復フラグではなく,「増分」に関する情報を持たせる形にしてみようか.

0 であれば反復しないアイテム,> 0 or < 0 であれば反復するアイテムで,その値だけ「done」した際に step に加算(もちろん負であれば減算)される,とか.

@issm
Copy link
Owner Author

issm commented Jan 9, 2012

ひとまず次の仕様で進めてみる:

  • 「週次」「月次」なカレンダータスク → 増分値にかかわらず反復
  • プロジェクトに属するタスク → 増分値が非0であれば反復
  • 増分値が非0な単独の(?)タスク → 「done」後「someday」リストへ移動

issm added a commit that referenced this issue Jan 9, 2012
gtd_item.step_inc を追加した.
issm added a commit that referenced this issue Jan 9, 2012
->search: gtd_item.step_inc を取得するようにした.

->mark_done: 反復属性のあるアイテムに対する処理方法を変更した.具体的には,次のような仕様:

* 「週次」「月次」なカレンダーアイテム → 増分値にかかわらず「反復」とみなし,「calendar」へ移動させる
* プロジェクトに属するアイテム → 増分値が非0であれば「反復」とみなし,「project」へ移動させる
* 増分値が非0な単独の(?)アイテム → 「someday」へ移動させる
issm added a commit that referenced this issue Jan 9, 2012
…用できるようになった. refs #14

config.re_item_content_options に追記した.

->_split_content_options, ->_parse_content_options, ->_update_content_options: config.re_item_content_options.step_inc に対応する処理を追加した.
@issm issm closed this as completed Jan 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant