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.
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: