diff options
author | John Wiegley <johnw@newartisans.com> | 2012-10-31 12:03:22 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-10-31 12:03:22 -0700 |
commit | ab5dd39be431540d4ae7f86f8f61af9999f78fcd (patch) | |
tree | 64988e30f6cbe3536ff24abc9cfb3f648016c2dd /src | |
parent | cb1101a3f6e05b30b8684f23278a71b719f19250 (diff) | |
parent | 5c5c6463c74549cac0c5548ee9f5e314751f8e92 (diff) | |
download | fork-ledger-ab5dd39be431540d4ae7f86f8f61af9999f78fcd.tar.gz fork-ledger-ab5dd39be431540d4ae7f86f8f61af9999f78fcd.tar.bz2 fork-ledger-ab5dd39be431540d4ae7f86f8f61af9999f78fcd.zip |
Merge pull request #97 from enderw88/Bug726-727-draft-and-lisp-command
Added "draft" and "lisp" command synonyms
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc index dc5a0704..08365a6b 100644 --- a/src/report.cc +++ b/src/report.cc @@ -1592,7 +1592,11 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, return POSTS_REPORTER(new report_commodities(*this)); } break; - + case 'd': + if (is_eq(p, "draft")) { + return WRAP_FUNCTOR(xact_command); + } + break; case 'e': if (is_eq(p, "equity")) { HANDLER(generated).on("#equity"); @@ -1614,7 +1618,10 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, return POSTS_REPORTER(new format_ptree(*this, format_ptree::FORMAT_JSON)); break; - + case 'l': + if (is_eq(p, "lisp")) + return POSTS_REPORTER(new format_emacs_posts(output_stream)); + break; case 'o': if (is_eq(p, "org")) return POSTS_REPORTER(new posts_to_org_table |