Skip to main content

autosuggest_parse_command

Function autosuggest_parse_command 

Source
pub fn autosuggest_parse_command(buff: &str) -> Option<(String, String)>
Expand description

fish:310-341 — Parse a command line. Return the first command, and the first argument to that command (as a string), if any. This is used to validate autosuggestions. fish parses an AST; zshrs walks the same token stream the highlighter uses (continue_after_error + accept_incomplete are what LEXFLAGS_ACTIVE provides).