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

Namespaces

 teditor
 
 teditor::ledger
 
 teditor::ledger::ops
 

Functions

Buffer & teditor::ledger::ops::getLedgerShowBuff (Editor &ed)
 
void teditor::ledger::ops::printHeader (Buffer &buf, const TimePoint &min, const TimePoint &max)
 
void teditor::ledger::ops::showTopAccounts (Buffer &buf, const std::string &file)
 
 teditor::ledger::ops::DEF_CMD (LedgerTop, "ledger::top", "ledger_ops", DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showTopAccounts(buf, file);ed.switchToBuff("*ledger");})
 
void teditor::ledger::ops::showAllAccounts (Buffer &buf, const std::string &file)
 
 teditor::ledger::ops::DEF_CMD (Ledger, "ledger::all", "ledger_ops", DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showAllAccounts(buf, file);ed.switchToBuff("*ledger");})