debanjum / company-ledger

Fuzzy auto-completion for Beancount & other Ledger-likes
GNU General Public License v3.0
14 stars 3 forks source link

Question: Using company-ledger with org-mode ledger source blocks #3

Open santoshs opened 2 years ago

santoshs commented 2 years ago

I use ledger in a org-file, with one ledger source block per month. When I edit a source block, I get completions for that buffer. I know that's how company-ledger is designed to work. But any workarounds or ideas to get completions from other source blocks too?

debanjum commented 1 year ago

Apologize for the delayed reply, I just noticed this issue! 🙈

Interesting to know your use-case of using ledger via code blocks in org-mode. As you noticed company-ledger hasn't been designed for that use-case (yet).

Possible ideas to try for getting completion from other ledger source blocks:

  1. Tangle the ledger blocks into a single file
  2. Use a shared session for all your ledger source blocks

I'll post back if I can think of other ideas to try support this use-case