Skip to content

cursor jumping is wrong for relative path #115

@buzhangjiuzhou

Description

@buzhangjiuzhou

I have a directory structure like below:

- main.bean
- transactions
   - 2025
      - year.bean
      - 01.bean

what I wrote in main.bean and year.bean :

; main.bean
include "transactions/2025/year.bean"


; year.bean
include "01.bean"

when I clicked the include directive in year.bean, it went to the working directory and tried to found a "01.bean" and failed. What I expect is that it goes to the 01.bean in 2025 directory, which is correspond to that stated in the documentary.

The specified path can be an absolute or a relative filename. If the filename is relative, it is relative to the including filename’s directory. This makes it easy to put relative includes in a hierarchy of directories that can be placed under source control and checked out anywhere.

https://beancount.github.io/docs/beancount_language_syntax.html#includes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions