I think that could be very useful. I think there needs to be some discussion 
about the syntax before you start implementing. 

Would it look like this?

```beancount

2018-03-30 * "Hooli Shop" "Buy hoodie"
   Expenses:Fashion    10.00 USD
   Assets:Cash

marker Assets:US:*

2018-03-31 * "Walgreens" "Groceries"
   Expenses:Groceries    45.00 USD
   Assets:US:BoA:Checking

```


> Am 28.03.2018 um 04:22 schrieb Martin Blais <bl...@furius.ca>:
> 
> I could promote the custom entry as a native one.
> Let's call it "marker".
> Would that be useful?
> 
> 
> On Tue, Mar 27, 2018 at 2:04 AM, <dominik.aumayr.notificati...@gmail.com> 
> wrote:
> Fava has such a feature (and code), see the "insert-entry"-option here: 
> https://fava.pythonanywhere.com/example-with-budgets/help/options/
> 
> Basically it works like this: You can add custom "insert-entry" entries with 
> a RegEx, and when adding a transaction, the position where it should go in 
> the file is determined by those custom entries.
> 
> Am Montag, 26. März 2018 22:39:48 UTC+2 schrieb Martin Blais:
> New issue 257: Create a section classifier for new transactions 
> https://bitbucket.org/blais/beancount/issues/257/create-a-section-classifier-for-new
>  
> 
> Martin Blais: 
> 
> There's nothing like that in the Beancount codebase. I've thought about 
> building something to automatically insert imported transactions in the right 
> "section" (I personally use org-mode, where each section corresponds to an 
> institution and its related group of accounts) but it's unclear whether that 
> would generalize. 
> 
> I think you could turn this into a simple classification problem. Given some 
> syntax for splitting up an input file into sections (e.g., some regular 
> expression matching on a title or separator), you now have groups of 
> transactions and inputs. Somehow reduce this to a simple model for 
> classifying which section an incoming transaction matches with highest 
> probability and insert it there. Or more appropriately - since transactions 
> are imported in groups - find the section that best matches all the 
> transactions in the imported files and insert at the end there. 
> 
> 
> On Sun, Mar 11, 2018 at 12:28 PM, Michael Droogleever <droo...@gmail.com> 
> wrote: 
> I believe it is against the design of beancount, but is there any existing 
> code which attempts to add transactions to an existing beancount file. 
> Assuming the entries in the file are grouped by asset account, it would need 
> to append the entry to the subsection of entries all from the same account. 
> 
> Responsible: blais 
> 
> -- 
> 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 post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beancount/4694718a-6afc-4346-80de-c7c78bd87de6%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> 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 post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beancount/CAK21%2BhMKca%3DWb8Jv45k9tHWHZ%2Bv2vbsG14yXtq4RyC6M9tB1mg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/B436BAF8-B56D-4FED-B9A1-F1B408AE6BD1%40aumayr.name.
For more options, visit https://groups.google.com/d/optout.

Reply via email to