teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Functions | |
Buffer & | getTodoShowBuff (Editor &ed) |
DEF_CMD (TodoOpen, "todo-open", "ledger_ops", DEF_OP() { auto todoFile=Option::get("todo:file").getStr();ed.load(todoFile, 0);}) | |
void | showTodosFor (Buffer &buf, const TimePoint &start, const TimePoint &end) |
DEF_CMD (TodoShowThisWeek, "todo-show-this-week", "ledger_ops", DEF_OP() { auto &buf=getTodoShowBuff(ed);TimePoint s;TimePoint e;weekFor(s, e, std::chrono::system_clock::now());showTodosFor(buf, s, e);ed.switchToBuff("*todo");}) | |
teditor::todo::ops::DEF_CMD | ( | TodoOpen | , |
"todo-open" | , | ||
"ledger_ops" | , | ||
DEF_OP() { auto todoFile=Option::get("todo:file").getStr();ed.load(todoFile, 0);} | |||
) |
teditor::todo::ops::DEF_CMD | ( | TodoShowThisWeek | , |
"todo-show-this-week" | , | ||
"ledger_ops" | , | ||
DEF_OP() { auto &buf=getTodoShowBuff(ed);TimePoint s;TimePoint e;weekFor(s, e, std::chrono::system_clock::now());showTodosFor(buf, s, e);ed.switchToBuff("*todo");} | |||
) |