Skip to content

Convert quoted arguments into code? #7

Description

@tbm

The manual has stuff like:

characters with the “-w” option.
“--render-balance”

I wonder if everything that looks like an an argument (i.e. something like ^-[\w-]) should be converted to `code`.

Other things that might be converted like this:

  • single characters: e.g.

Tags must begin with “#”, and links with “^”.

  • maybe dates: \d\d[./]\d\d[./]\d\d

Activity

  1. tbm commented on May 12, 2020

    @tbm
    Author

    also account names:

    name, e.g., “Expenses:Scuba:Martin”. The other accounts, e.g. “Expenses:Groceries” are intended to be split.

  2. xuhcc commented on May 12, 2020

    @xuhcc
    Collaborator

    If these pieces of text are written in Consolas font, they should now appear as inline code (#10).

  3. tbm commented on May 13, 2020

    @tbm
    Author

    If these pieces of text are written in Consolas font, they should now appear as inline code (#10).

    The idea of this ticket was to convert them to code even if Consolas is not used, as long as they match a specific pattern.

    While it's probably best to convert the Google docs to Consolas, that's probably a lot of work and doing it in the converted might be a good idea. But it's up to you.

  4. xuhcc commented on May 13, 2020

    @xuhcc
    Collaborator

    I think it's better to keep the original formatting, at least as long as Google doc has the "official" status.

    But I won't mind if you send a PR with additional rules for parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions