On 2021-04-28 07:45, jrgo...@gmail.com wrote:

Does beancount mode only look within the current document to create an
index of accounts for possible autocomplete?

I am pretty sure that beancount-mode only collects from current
buffer.  If you take a look at the function `beancount-insert-account'
it in turn calls `beancount-collect', if you read the docstring for
that function it says:

  "Return an unique list of REGEXP group N in the current buffer."

Is there anyway to modify this to point to another file with all the
accounts I have? I have a file called "accounts.beancount" that
contains all the beancount accounts I want to use to populate

With a little custom Emacs Lisp, anything is possible.  ;)  For
example, I have made my own little custom function to insert any of my
Beancount account names anywhere in any buffer (or insert transfer
transactions involving 2 accounts, and many others).

I'm trying to organize my beancount files a bit to more easily
rollback changes.

The tool you may be looking for to "rollback changes" is a good text
editor and/or git.  Although some of concepts may be foreign to you at
first if you never did any some sort of development.

So I suppose the answer (for /you/) depends on how comfortable you are
with Emacs, Emacs Lisp, git, and/or other tools, as there are many
different ways to skin this particular cat.

Myself (and some others here) are big proponents, users, and lovers of
Emacs, for many different reasons which go far beyond the scope of
this particular issue.  Therefore our solutions involve Emacs.
However that might not be your cup of tea.

Cheers,
TRS-80

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/68aebfe4c176ef7a766d87f086826f58%40isnotmyreal.name.

Reply via email to