class Doing::TaskPaperExport

Public Class Methods

render(wwid, items, variables: {}) click to toggle source
# File lib/doing/plugins/export/taskpaper_export.rb, line 17
def self.render(wwid, items, variables: {})
  return if items.nil?

  options = variables[:options]

  options[:highlight] = false
  options[:wrap_width] = 0
  options[:tags_color] = false
  options[:output] = 'template'
  options[:template] = '- %title @date(%date)%note'

  Doing.logger.debug('TaskPaper Export:', "#{items.count} items output to TaskPaper format")
  @out = wwid.list_section(options)
end
settings() click to toggle source
# File lib/doing/plugins/export/taskpaper_export.rb, line 11
def self.settings
  {
    trigger: 'task(?:paper)?|tp'
  }
end