Re: Ledger mode source code

2023-04-04 Thread Jacob MacDonald
JPP  wrote:
> Does the emacs lisp code exist somewhere separate where I can install it?

https://github.com/ledger/ledger-mode

It's also in MELPA.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CACy6W0BfEw-C6d_MqGDW2b4_5NcJnJEzpjD%3DHYKfUVPskThAfQ%40mail.gmail.com.


Re: Sample ledger file with all emacs faces

2022-09-12 Thread Jacob MacDonald
david kayal wrote:
> Funny, I am not finding ledger-mode in ELPA.

Looks like MELPA, MELPA Stable, or manually are the suggested ways to
install it 
(https://github.com/ledger/ledger-mode/blob/8bad528d43007e0310b5e72e6e021b502b30495c/README.md).

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CACy6W0A9VW5ejc%3DzyNjFy9Ew0iFExrwKSv8DGDmqP3nsBVjuOg%40mail.gmail.com.


Re: Is ledger available in debian or ubuntu package manager?

2020-02-17 Thread Jacob MacDonald
(On Pop!_OS here, but) Ledger seems to be in the Ubuntu universe list.
Are those enabled in your docker images? I've had to manually allow
them on every Debian-based install I've used.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CACy6W0BNwRmDuZZe%2BO7EXDMFUQ5XzCs%2BysiyM3jrR%3DcPrk43iA%40mail.gmail.com.


Re: How to use ledger-cli in a Rust project? (A rust GTK ledger desktop app)

2018-04-29 Thread Jacob MacDonald
I'm no C++ or Rust guru, but as far as I know C++ bindings are far harder
to generate than simple C ones. One advantage you do have is that Rust uses
LLVM, so maybe you'll have luck using a Clang stack to build a shared
Ledger library with sensible bindings? The Graal project on the JVM also
has some interesting pieces for polyglot LLVM bytecode interpretation.

On Sun, Apr 29, 2018, 08:45  wrote:

> I am trying to create a rust GTK ledger desktop app. I love ledger
> simplicity and flexibility, and the fact that everything is stored in a
> simple, readable text file. But I want to keep some reports and operations
> handy, and I think a GTK desktop app will be perfect for that.
>
> I want to practise with Rust so I think this is a good opportunity for me.
> The GTK rust app is progressing, but I haven't been successful on calling
> ledger-cli from rust, since I want to use the original ledger-cli project
> for maximum compatibility. People working with rust told me it would be
> very difficult to create good bindings with a C++ app, and the only
> alternative I have then is to embed the compiled ledger binary and call it
> directly, but I wouldn't like to do that.
>
> Is there any good ledger-cli port to Rust? Or some good ledger-cli
> bindings for Rust? I haven't been able to find any of those.
>
> Any advice on how to achieve this? Thanks a lot.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger.el *very* slow to load account names

2018-04-07 Thread Jacob MacDonald
You should be able to press tab to expand those calls further. If you want
to screenshot the profiler I might be able to see something but I'm afraid
I'm not super familiar with the Ledger codebase. The profiler is just
useful for discovering performance regressions in my experience.

On Sat, Apr 7, 2018, 17:12 John Rakestraw <john.a.rakest...@gmail.com>
wrote:

>
>
> On Saturday, April 7, 2018 at 5:48:36 PM UTC-4, Jacob MacDonald wrote:
>>
>> I use ledger-mode and it's always instant, albeit with a much smaller
>> input file. Have you used the Emacs profiler to see which functions are
>> taking inordinate time?
>>
>>
> Thanks for this. I've used ledger-mode for ~10 years and until a month or
> two ago my experience mirrored yours -- it's been very quick, even as my
> ledger file has grown. This is a rather sudden change.
>
> I didn't know about the profiler; I just tried it. I think it's reporting
> that ledger-reconcile and ledger-read-account-with-prompt are taking
> considerable time to run. But I'm not at all sure that I'm using the tool
> correctly.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ledger.el *very* slow to load account names

2018-04-07 Thread Jacob MacDonald
I use ledger-mode and it's always instant, albeit with a much smaller input
file. Have you used the Emacs profiler to see which functions are taking
inordinate time?

On Sat, Apr 7, 2018, 16:30 John Rakestraw 
wrote:

> Hi, folks --
>
> I'm a long-time user of ledger and the ledger.el mode in emacs. For the
> last couple of months (or so) I've found ledger.el to be very, very slow in
> any instance in which it searches for an account name. Two good examples:
>
> - I tab to autocomplete an account name. For example, if I type "Expe" and
> then hit tab, it takes literally 10 seconds to complete to "Expenses:".
>
> - When I execute "ledger-reconcile," I get the same 10-second pause.
>
> Additional data points (apologies if this is too much; I'm not sure
> whether it's relevant or not)
>
>
>- I also use helm-mode (and used helm-mode with ledger-mode for months
>without this issue). When I execute ledger-reconcile with helm-mode
>enabled, I get the same 10-second pause. Then when I key in a unique
>identifier for the account (e.g., creditcardA), it typically presents me
>with two options for that account. If I select the first one, I'm told that
>there are no unreconciled entries for the account, even though I know there
>are. If I select the second one, then I'm given the list of unreconciled
>entries, and I can proceed to reconcile the account. I get this pause
>whether I have helm-mode enabled or not. But the example with helm enabled
>suggests (to me) that for some reason ledger might be scanning another file
>in order to assemble the names for auto-complete.
>- My ledger file is relatively large (~90,000 lines), but this latency
>appeared suddenly.
>- I have several include lines in my ledger file, but I have this
>latency even if I delete these lines.
>- In the last few months I've started using git to manage all of my
>text files. However, I've tried moving my file to a clean directory so that
>(I think) git isn't an issue, and I still have the latency.
>
> I finally found some time today to investigate the problem, but I've been
> unsuccessful. I'm hoping that folks here who know much more about these
> things than I do can at least suggest some things to look for.
>
>
> I'm on a Mac with High Sierra, using emacs 25.3.1, Ledger 3.1.1-20160111,
> and the most recent ledger.el from elpa.
>
>
> Thanks --
>
>
> John
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: windows msys ledger strange ouput text

2018-01-06 Thread Jacob MacDonald
I believe those are color codes. Run in a different terminal or disable the
coloring of output

On Sat, Jan 6, 2018, 21:18 craig skinner  wrote:

> Hi,
>
> Using the msys version of ledger on windows I get the following type of
> odd output in cmd terminal.
>
> ...
> C:\temp\Finance\VLedger>ledger -f 22106-12.ledger
> Ledger 3.1.1-20160111, the command-line accounting tool
>
> Copyright (c) 2003-2017, John Wiegley.  All rights reserved.
>
> This program is made available under the terms of the BSD Public License.
> See LICENSE file included with the distribution for details and disclaimer.
> ] bal
>←[31m$-4649.52←[0m  ←[34mAssets:Bank:RX01←[0m
> $2596.45  ←[34mExpense←[0m
>  $114.08←[34mBank←[0m
>$4.00  ←[34mFee:ATM←[0m
>  $110.08  ←[34mInterest:RX01←[0m
> $2099.00←[34mCashout←[0m
>  $208.32←[34mDonations:TaxDeductable←[0m
>  $175.05←[34mHealth:Insurance←[0m
>   ←[31m$-21427.03←[0m  ←[34mIncome←[0m
> ←[31m$-900.00←[0m←[34mBills:Electricity←[0m
>←[31m$-8110.00←[0m←[34mRent←[0m
>   ←[31m$-12417.03←[0m←[34mSalary←[0m
>←[31m$-7603.01←[0m  ←[34mCraig←[0m
>←[31m$-4814.02←[0m  ←[34mDani←[0m
>$23480.10  ←[34m_Transfer_←[0m
> 
>0
> ]
> ...
>
> running the command from emacs gives fine output. Also using the cygwin
> version of ledger gave fine output.
>
> Can you provide some help on how to solve this.
>
> Thanks
> Craig
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to exclude uncleared and pending transactions when getting a Balance report

2017-07-24 Thread Jacob MacDonald
Use the --cleared flag with balance. For example, I use ledger -f
~/my/ledger/file.dat balance --cleared to get my current balances.

On Mon, Jul 24, 2017 at 11:58 PM Justin  wrote:

> I am relatively new to ledger and I couldn't this anywhere.
>
> Thanks for helping me out.
>
> I am using ledger-mode on Emacs 25 and ledger 3.x in Windows 10 and linux.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: building ledger on arch linux: python version

2016-11-12 Thread Jacob MacDonald
The solution I'm seeing online is to update the python symlink to point at
python2 instead of 3. On Gentoo you could use eselect, not sure if Arch has
an equivalent.

Best,

Jacob.

On Sat, Nov 12, 2016, 10:48 AM Gina White  wrote:

> After finding it quite easy to build ledger on the mac, I'm running into
> trouble building it on arch linux (which is what my main development
> machine runs).
>
> The first problem is that the python scripts seem to assume python2 but
> when '/usr/bin/env python' is run on my arch linux machine, that uses
> python3.
>
> Are there thoughts about python versions for the scripts?  The workaround
> being used in the community package for arch linux ledger is to change the
> ledger source to run '/usr/bin/env python2'.  You can see that in the
> prepare function here:
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ledger-git.
>
> One approach would be to make the scripts python3-compatible.  I'm not
> sure what downsides that might include though.
>
> Another approach would be to change all the ledger scripts to specify
> '/usr/bin/env python2'.  I'm not sure if that would work well though in the
> other places where ledger is being built.
>
> thanks
> - Gina
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Virtual Accounts and Ledger-Mode Tab Completion

2016-10-25 Thread Jacob MacDonald
To be clear, you're seeing:

1) Accounts which have non-bracketed instances can be completed inside and
outside of brackets.
2) Accounts which are only ever entered in bracketed form cannot be
completed either inside or outside.

Just had the chance to test the bug out and wanted to make sure we're
experiencing the same issue.

Thanks!

Jacob.

On Mon, Oct 24, 2016 at 8:26 PM rtjmay  wrote:

> I've just started using ledger-mode and Emacs for editing my ledger file
> and it's great.
>
> The only major issue that I've had so far is with tab completion--I use
> virtual accounts with brackets (i.e. (Funds:Spending)), but the brackets
> seem to make those accounts invisible to the tab completion engine (if I
> removed them then it works as expected).
>
> Is this a bug in ledger-mode, or am I doing something incorrectly?
>
> Regards,
> Ryan
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to handle bank transfer delays

2016-09-10 Thread Jacob MacDonald
I'm no accountant or Ledger expert, but as I understand it, this is why
Ledger supports cleared, uncleared, and pending transactions.

See http://ledger-cli.org/3.0/doc/ledger3.html#Transactions-and-Comments for
details on how it works. Personally, I don't find the full spectrum of
markings to be necessary; I just add a transaction when I initiate it and
update it with the asterisk at the end of the week.

(DATE ACCOUNT etc. -> DATE * ACCOUNT etc.)

There are commands to display balances of only cleared amounts, etc. I
don't use them much, but you can read about them here:
http://ledger-cli.org/3.0/doc/ledger3.html#Cleared-Report.

Jacob.

On Sat, Sep 10, 2016 at 4:22 PM Matthias Ehret  wrote:

> Hi there,
>
> I just started with ledger and came across one problem i'm not sure how to
> solve it.
>
> f.e. I transfer money from one bank to another bank and there is a
> transfer delay of 3 days how do i handle this in ledger without having
> inconsistent data in the register view?
>
> Create a dummy place were I park the money for 3 days or is there a better
> solution?
>
> Matthias
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving ledger-mode out of the main ledger repository

2016-08-04 Thread Jacob MacDonald
Submitting a quick PR to MELPA here:
https://github.com/melpa/melpa/pull/4099, unless @purcell is watching this
mailing list?

On Thu, Aug 4, 2016 at 12:10 PM Simon Michael  wrote:

> This is great. It will be clearer what's happening in each project. It's
> also nice that ledger-mode's commit history was preserved.
>
> Craig, how about moving ledger-mode issue tracking to github ? This
> seems like a great time.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving ledger-mode out of the main ledger repository

2016-08-02 Thread Jacob MacDonald
I would suggest just using semver, treating a bump of the required Ledger
version as a breaking change and noting the minimum required Ledger version
in the release notes. I'm saying this with no knowledge of whether Ledger
likes semver or has a problem with unsynchronized version numbers/large
major versions :-).

On Tue, Aug 2, 2016 at 6:21 PM David Glasser 
wrote:

> Having a tight coupling between ledger and ledger-mode versions would have
> been a problem even when they were in the same repo, since there's not much
> to encourage users to make sure to carefully upgrade them simultaneously.
>
> On Tue, Aug 2, 2016 at 5:18 PM, Craig Earls  wrote:
>
>> I will use a separate version number. Up to this point there hasnt been
>> one they are very loosely coupled. I am open to suggestions.   Ledger mode
>> is mostly getting bug fixes no features have been added in a few years now.
>>
>> On Tuesday, August 2, 2016, Ben Finney <
>> bignose+hates-s...@benfinney.id.au> wrote:
>>
>>> "John Wiegley"  writes:
>>>
>>> > > "BF" == Ben Finney  writes:
>>> >
>>> > BF> Are you de-coupling the release cycles, or will ‘ledger’ and
>>> > BF> ‘ledger-mode’ still track the same version and release at the same
>>> > BF> time? How will that be managed?
>>> >
>>> > They don't need to be exactly synced
>>>
>>> So, my question was based on the assumption that until now they are both
>>> on a single release cycle, and both have an identical version at all
>>> times. Is that assumption correct?
>>>
>>> > unless there is a change in the data protocol used between them, or in
>>> > the reporting arguments. But all of that is very stable now.
>>>
>>> When the split occurs, will the versions mean what they do today by
>>> remaining in lock-step at each release? Or will they diverge?
>>>
>>> --
>>>  \   “Everyone is entitled to their own opinions, but they are not |
>>>   `\entitled to their own facts.” —US Senator Pat Moynihan |
>>> _o__)  |
>>> Ben Finney
>>>
>>> --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Ledger" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ledger-cli+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Craig, Corona De Tucson, AZ
>> enderw88.wordpress.com
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Ledger" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ledger-cli+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> glas...@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving ledger-mode out of the main ledger repository

2016-08-02 Thread Jacob MacDonald
Big fan of the change! I'll be on the lookout for it as I pull it myself
instead of using MELPA.

On Tue, Aug 2, 2016 at 3:21 PM John Wiegley  wrote:

> Hi guys,
>
> Just wanted to let you know that I'll be splitting ledger-mode and the
> Emacs
> code into its own repository within the ledger organization on GitHub soon.
>
> If anyone has any concerns or issues, please let me know. The initial goal
> is
> to reduce Travis activity due to frequent changes in ledger-mode, which
> can't
> affect the Travis results.
>
> John
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.