Skip to content

Replace the naive history command parser with a comprehensive shell syntax parser #36

@YiNNx

Description

@YiNNx

The current history commad parser in cmd-wrapped only supports basic shell syntax (e.g., pipeline |, conditional list &&, brace blocks {}, comments #, sudo, and environment variables) with a naive implementation. We need to replace it with a comprehensive shell syntax parser for better parsing results.

Two possible approaches:

  1. Import a crate like rust-shlex or conch-parser.
  2. Implement a shell syntax parser from scratch.

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