Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab completion stopped working for metadata #166

Open
shawkinaw opened this issue Apr 2, 2019 · 5 comments
Open

Tab completion stopped working for metadata #166

shawkinaw opened this issue Apr 2, 2019 · 5 comments

Comments

@shawkinaw
Copy link

Once upon a time, I was able to tab complete metadata tags and values, e.g. if I had a transaction like this:

2019/04/01 Albertson's
    ; Items: Milk
    Expenses:Groceries                       $100.00
    Assets:Cash

then I could later tab-complete Items and Milk, e.g.

2019/04/02 Sprouts
    ; Ite<TAB>

2019/04/02 Sprouts
    ; Items: <TAB>

2019/04/02 Sprouts
    ; Items: Milk

I believe this stopped working around the time I noticed this issue, however I'm not certain. I use metadata tags and values a lot, so losing this feature is a bit of a bummer.

@guygadebois
Copy link

guygadebois commented Nov 28, 2019

Same, I recently had to move from Emacs 25 to 26 were ledger-mode changed somehow the way indentation works.
Before I was able to autocomplete on tags like ; :missing-ticket:. I could type ; :mi then TAB would autocomplete.
This is not working any more in Emacs 26 with latest ledger-mode.

Thanks in advance

@jabranham
Copy link
Collaborator

jabranham commented Dec 5, 2019 via email

@riastradh
Copy link

riastradh commented Apr 20, 2020

The new completion system is unusable for me in its present state, so in case this is helpful for anyone else who needs to revert ledger-mode to a state where it is usable for data entry, I bisected this to 904660f.

@legalnonsense
Copy link

legalnonsense commented Apr 3, 2021

I just started getting into ledger and not having metadata autocomplete drove to try beancount (which also doesn't seem to do it). So here I am.

I tried going back to the above commit (beware that on Emacs 28, you have to add a third argument to the define-obsolete-function-alias call in ledger-report).

While metadata completion works, it's buggy and as there are a lot of included words that don't appear in the ledger file (probably a company config problem on my end?), capitalization is not preserved (same?) [EDIT: I found ledger-complete-ignore-case]

@purcell
Copy link
Member

purcell commented Apr 3, 2021

Would someone be able to try out #217 to see if it resolves the tag completion side of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants