teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Namespaces | Functions
todo/ops.cpp File Reference
#include "core/editor.h"
#include "core/command.h"
#include "core/option.h"
#include <sstream>
#include "core/time_utils.h"
#include "parser.h"
#include "objects.h"

Namespaces

 teditor
 
 teditor::todo
 
 teditor::todo::ops
 

Functions

Buffer & teditor::todo::ops::getTodoShowBuff (Editor &ed)
 
 teditor::todo::ops::DEF_CMD (TodoOpen, "todo-open", "ledger_ops", DEF_OP() { auto todoFile=Option::get("todo:file").getStr();ed.load(todoFile, 0);})
 
void teditor::todo::ops::showTodosFor (Buffer &buf, const TimePoint &start, const TimePoint &end)
 
 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");})