Skip to content

Idea: Comment enum #13

@muni-corn

Description

@muni-corn
pub enum Comment {
    Right(String),
    Above(String),
    Below(String),
}

Entries and postings can include a Comment so that comments are retained if mvelopes is given permission to move stuff around, e.g. with a format command.

In the event that mvelopes encounters a conflict:

2020/06/11 * foo
    ...
    expenses:other 10

// conflicting comment

2020/06/11 * bar
    ...

mvelopes might present the user with this:

mvelopes found a comment but can't decide which entry it belongs to:

A:  | 2020/06/11 * foo
    |     ...
    |     expenses:other 10
    |
--> | // conflicting comment
    |
B:  | 2020/06/11 * bar
    |     ...

does this comment belong to [A] or [B]? (default: A) 

mvelopes will default to the comment being below the upper entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions