John Wiegley
07b206bf6a
Add the --no-pager option
2014-04-27 20:30:21 -05:00
John Wiegley
4707122eed
Initialize journal_t::no_aliases to false upon costruction
...
This fixes a bug introduced by ecd5097d51 .
2014-04-21 18:01:08 -05:00
John Wiegley
7be70aab59
Require the use of C++11
2014-04-17 14:34:36 -05:00
David Bremner
0ef8256409
Replace sha1.cc with boost::uuid::details::sha1
...
sha1.cc is not redistributable by Debian because the license doesn't
permit redistribution of modified versions.
This isn't ideal since the ::details namespace is subject to change,
but it avoids adding a dependency to ledger.
2014-04-17 14:27:21 -05:00
John Wiegley
aa2ff2b5db
Improve an error message relating to balance assertions
2014-04-16 15:56:30 -05:00
John Wiegley
f73ff40a86
Add a safety check when using deferred postings
2014-04-15 01:31:47 -05:00
John Wiegley
0d23e3d4f6
Apply any outstanding deferred postings at the end of parsing
2014-04-14 11:08:26 -05:00
John Wiegley
8f8a94c28e
Add the concept of "deferred postings"
...
This is pretty much exclusively for allowing one to use balance
assertions with replicated transactions across multiple files.
2014-04-13 23:26:14 -05:00
John Wiegley
634aa589cd
The option --permissive now quiets balance assertions
2014-04-13 23:26:14 -05:00
Matthias Lederhofer
0e2d07c801
use /bin/sh to run the pager
...
This allows to specify options on the command-line of the pager, e.g.
$ ledger --color --pager='less -R' ...
2014-04-02 23:10:03 +01:00
John Wiegley
3c51df125d
Fix a compiler warning
2014-03-28 13:51:00 -05:00
Alexis Hildebrandt
8629f92cf8
CMake: Remove installation of third party code
2014-03-10 12:16:59 +01:00
Peter Feigl
ecd5097d51
Adding option --no-aliases to completely disable alias expansion
2014-02-26 23:50:50 +01:00
John Wiegley
ee36a33a19
Merge pull request #248 from ecraven/fix-warnings
...
Fixing two GCC warnings
2014-02-26 16:26:41 -06:00
Peter Feigl
7bcc5b7c2c
Fixing two GCC warnings
2014-02-26 12:29:57 +01:00
Peter Feigl
75b0a5d8ff
Adding option --recursive-aliases, adding documentation to man-page and manual
2014-02-26 09:29:31 +01:00
Peter Feigl
2dabb914c0
fixing problem with previous commit if no aliases are registered
2014-02-26 01:16:03 +01:00
Peter Feigl
c80b495546
Adding support for recursive aliases.
...
Alias expansion is now a loop. If you define
alias A=B:A
alias B=C:B
then A will expand to C:B:A.
Also added a short section to the manual about this.
2014-02-25 22:50:20 +01:00
John Wiegley
de8b078849
Attempt to convert balances to amounts before failing comparisons
2014-02-21 13:05:12 -06:00
John Wiegley
6a68119cbb
Merge pull request #243 from kanru/justify-cjk
...
Correctly justify Unicode characters in terminal
2014-02-16 23:02:02 -06:00
Kan-Ru Chen (陳侃如)
9c7e5a612c
Use mk_wcwidth instead mk_wcwidth_cjk
2014-02-13 19:19:40 +08:00
Kan-Ru Chen (陳侃如)
d5b5ea0213
Correctly justify Unicode characters in terminal
...
Many Unicode characters take more spaces than one ASCII character. For
example, Chinese characters are two characters wide when using monospace
font in terminal. This patch use wcwidth of Markus Kuhn to count the
correct width for justification.
2014-02-13 18:40:06 +08:00
Alexis Hildebrandt
e7cfaa1e65
Fix apply_year_directive
...
Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
2014-02-12 10:38:07 +01:00
Alexis Hildebrandt
b359e851fe
Correctly set runtime path on Linux on install
2014-02-03 12:02:03 +01:00
Alexis Hildebrandt
2b9208e850
Bump copyright information to 2014
2014-02-02 12:36:22 +01:00
Johann Klähn
e0ee1eb810
initialize member variables of posts_to_org_table
...
This fixes test/baseline/cmd-org.test when built with clang.
2014-02-01 19:41:20 +01:00
Alexis Hildebrandt
e362a481ec
Create default scope from python session only if needed
...
Fixes test failures introduced with the commit
"Create default scope to read journal"
a9078767b8
2014-02-01 19:29:25 +01:00
Johann Klähn
0dc2b97813
python module file suffix is platform dependent
2014-02-01 12:10:53 +01:00
Alexis Hildebrandt
6eeda8bcea
Fix shared library and python module
...
Conflicts:
src/CMakeLists.txt
2014-02-01 12:00:32 +01:00
Johann Klähn
36b4fc3e2f
no RENAME option on older CMake versions
...
The RENAME option for install(TARGETS ...) does not seem to be available
on all CMake versions.
2014-02-01 10:23:51 +01:00
Johann Klähn
89c21e9967
build shared library/python module, clean up CMake
...
libledger will now be built as a shared library. You can 'import ledger'
from python IFF you copy libledger.so to ledger.so or create a symlink.
2014-02-01 01:30:53 +01:00
Alexis Hildebrandt
7f96b654a7
Make time-colon commodity flag available to python
2014-01-27 21:08:13 +01:00
Alexis Hildebrandt
a9078767b8
Create default scope to read journal
...
when using ledger python module
2014-01-27 21:07:39 +01:00
Alexis Hildebrandt
82486f6d43
Build and shared python module
...
when building library
2014-01-27 21:06:44 +01:00
Steve Purcell
d7742cd654
Commodity column in default CSV format should match the displayed amount
...
If one uses --exchange to force CSV display amounts into a particular
currency, then the commodity output column should match that currency.
Without this patch, the commodity column contains the original
commodity, not the commodity for the exported amount.
2014-01-06 17:37:04 +00:00
Craig Earls
d7d442135b
And const directives in account.h and commodity.h to allow build in OS X Mavericks.
2013-10-30 06:40:17 -07:00
John Wiegley
d30c3fb869
Guard against a possible null value
2013-09-20 00:54:43 -05:00
Alexis Hildebrandt
30b6acb0b0
Apply --time-colon option only to time commodities
...
See #989
2013-09-07 09:38:13 +02:00
Tim Crews
4bcaa45f16
Additional changes required for MSVC to compile ledger.
...
These changes only matter if ledger is compiled with USE_PYTHON.
2013-06-16 12:39:30 -07:00
Tim Crews
0c071d6e1c
Corrected filename for strptime.cc
2013-06-15 16:37:04 -07:00
Tim Crews
0dbb38fe27
Source changes needed for Microsoft Visual C++ compatibility.
...
Includes an implementation of strptime, compiled only for Win32 platform.
2013-06-14 21:29:47 -07:00
thdox
d56f9c4032
Improve documentation about differences between ledger 2.6 and ledger 3.0.
...
GnuCash support removed, environment variables deprecated.
2013-06-01 18:01:19 +02:00
John Wiegley
a79cf36c64
Fix #784
2013-05-23 03:23:49 -05:00
John Wiegley
6b52a1684f
Fixed parsing of the "fixed" directive
2013-05-19 04:16:12 -05:00
John Wiegley
82345899f7
Remove some unnecessary and complicated logic
...
Fixes #712
2013-05-19 03:38:20 -05:00
John Wiegley
d13b7180bf
Add a missing member initializer to a copy constructor
...
Fixes #686
2013-05-19 02:51:47 -05:00
John Wiegley
3656e692ff
Another whitespace fix
2013-05-19 02:51:29 -05:00
John Wiegley
c70e959214
Add a missing % character
2013-05-19 02:41:46 -05:00
John Wiegley
62c2ab968c
Whitespace fix
2013-05-19 02:41:38 -05:00
John Wiegley
db35e5c8fc
Resolve new compiler warnings from Clang
2013-05-19 02:14:27 -05:00