diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-07-17 00:38:04 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-07-19 12:41:34 -0700 |
commit | 92099c7af23d0cebf52f89de4f9d829825e53ac8 (patch) | |
tree | b9251df8338f19a58bb4f9fd32b968ac6ced98f9 /expand.h | |
parent | 58ad04b61cf567c7a8756869f19d6d5682122b12 (diff) |
Initial abbreviation work. Tests currently fail.
Diffstat (limited to 'expand.h')
-rw-r--r-- | expand.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -206,6 +206,10 @@ void expand_variable_error(parser_t &parser, const wchar_t *token, size_t token_ */ std::vector<wcstring> expand_get_all_process_names(void); +/** Abbreviation support. Expand src as an abbreviation, returning true if one was found, false if not. If result is not-null, returns the abbreviation by reference. */ +#define USER_ABBREVIATIONS_VARIABLE_NAME L"fish_user_abbreviations" +bool expand_abbreviation(const wcstring &src, wcstring *output); + /* Terrible hacks */ bool fish_xdm_login_hack_hack_hack_hack(std::vector<std::string> *cmds, int argc, const char * const *argv); bool fish_openSUSE_dbus_hack_hack_hack_hack(std::vector<completion_t> *args); |