Example #1
0
def generate_pinned_feedbackitem(t):
	return alfred.Item(
		attributes = { 
		'uid' : uuid4(),
		'arg' : helpers.encode_todo_id(str(t['id']))
		},
		title = t['title'],
		subtitle = helpers.create_subtitle(t),
		icon = "todo_pin.png"
	)
Example #2
0
def generate_done_feedbackitem(t, info):
    return alfred.Item(
        attributes={
            'uid': uuid4(),
            'arg': helpers.encode_todo_id(str(t['id'])),
            'autocomplete': helpers.create_autocomplete(t, info)
        },
        title=helpers.create_title(t),
        subtitle=helpers.create_subtitle(t),
        icon="todo_done.png"
    )