diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-07 17:31:24 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-07 17:31:24 -0700 |
commit | 0c79bb6e7c679552faba6cb333592eb1da26db35 (patch) | |
tree | 6eb08236422a8f31862f1d898d8fddcf08eb0b3c /highlight.h | |
parent | 1a264ab7c20cbd0e20eef3e3d83fedb7b69c163d (diff) |
Factor is_potential_path to properly handle CDPATH
This will let us color cd commands better
Diffstat (limited to 'highlight.h')
-rw-r--r-- | highlight.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/highlight.h b/highlight.h index ba4591e0..9efec419 100644 --- a/highlight.h +++ b/highlight.h @@ -106,7 +106,13 @@ void highlight_universal( const wcstring &buffstr, std::vector<int> &color, int */ rgb_color_t highlight_get_color( int highlight, bool is_background ); +/** Given a command 'str' from the history, try to determine whether we ought to suggest it by specially recognizing the command. + Returns true if we validated the command. If so, returns by reference whether the suggestion is valid or not. +*/ bool autosuggest_special_validate_from_history(const wcstring &str, const wcstring &working_directory, bool *outSuggestionOK); + +/** Given the command line contents 'str', return via reference a suggestion by specially recognizing the command. Returns true if we recognized the command (even if we couldn't think of a suggestion for it). +*/ bool autosuggest_suggest_special(const wcstring &str, const wcstring &working_directory, wcstring &outString); |