Module: Doing::WWIDModify
- Included in:
- WWID
- Defined in:
- lib/doing/wwid/modify.rb
Overview
Item modification methods for WWID class
Instance Method Summary collapse
-
#add_item(title, section = nil, opt) ⇒ Object
Adds an entry.
-
#archive(section = Doing.setting('current_section'), options) ⇒ Object
Move entries from a section to Archive or other specified section.
-
#autotag(string) ⇒ Object
Uses 'autotag' configuration to turn keywords into tags for time tracking.
-
#delete_items(items, force: false) ⇒ Object
Delete a set of items from the main index.
-
#repeat_item(item, opt) ⇒ Object
Duplicate an item and add it as a new item.
-
#repeat_last(opt) ⇒ Object
Restart the last entry.
-
#reset_item(item, date: nil, finish_date: nil, resume: false) ⇒ Object
Reset start date to current time, optionally remove done tag (resume).
-
#stop_start(target_tag, opt) ⇒ Object
Accepts one tag and the raw text of a new item if the passed tag is on any item, it's replaced with @done.
-
#tag_last(opt) ⇒ Object
Tag the last entry or X entries.
Instance Method Details
#add_item(title, section = nil, opt) ⇒ Object
Adds an entry
#archive(section = Doing.setting('current_section'), options) ⇒ Object
Move entries from a section to Archive or other specified section
#autotag(string) ⇒ Object
Uses 'autotag' configuration to turn keywords into tags for time tracking. Does not repeat tags in a title, and only converts the first instance of an untagged keyword
#delete_items(items, force: false) ⇒ Object
Delete a set of items from the main index
#repeat_item(item, opt) ⇒ Object
Duplicate an item and add it as a new item
#repeat_last(opt) ⇒ Object
Restart the last entry
#reset_item(item, date: nil, finish_date: nil, resume: false) ⇒ Object
Reset start date to current time, optionally remove done tag (resume)
#stop_start(target_tag, opt) ⇒ Object
Accepts one tag and the raw text of a new item if the passed tag is on any item, it's replaced with @done. if new_item is not nil, it's tagged with the passed tag and inserted. This is for use where only one instance of a given tag should exist (@meanwhile)
#tag_last(opt) ⇒ Object
Tag the last entry or X entries