diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-05-07 23:24:49 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-05-07 23:24:49 +0200 |
commit | cd6fd2b0a3641774e7854ff8298d1d82643c4b4a (patch) | |
tree | 1b09fbc0dfed078e48c945352c6635a4a6bcbb04 /Src/Zle/comp.h | |
parent | 5200637bda09e34da934e18f3c30f4b124d8d597 (diff) | |
download | zsh-cd6fd2b0a3641774e7854ff8298d1d82643c4b4a.tar.gz zsh-cd6fd2b0a3641774e7854ff8298d1d82643c4b4a.tar.xz zsh-cd6fd2b0a3641774e7854ff8298d1d82643c4b4a.zip |
44274: allow finer control of completion match soring with compadd's -o option
Diffstat (limited to 'Src/Zle/comp.h')
-rw-r--r-- | Src/Zle/comp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/Zle/comp.h b/Src/Zle/comp.h index 3e9834560..743a2e3ac 100644 --- a/Src/Zle/comp.h +++ b/Src/Zle/comp.h @@ -90,6 +90,9 @@ struct cmgroup { #define CGF_PACKED 32 /* LIST_PACKED for this group */ #define CGF_ROWS 64 /* LIST_ROWS_FIRST for this group */ #define CGF_FILES 128 /* contains file names */ +#define CGF_MATSORT 256 /* sort by match rather than by display string */ +#define CGF_NUMSORT 512 /* sort numerically */ +#define CGF_REVSORT 1024 /* sort in reverse */ /* This is the struct used to hold matches. */ @@ -300,6 +303,9 @@ struct menuinfo { #define CAF_ARRAYS 32 /* compadd -a or -k: array/assoc parameter names */ #define CAF_KEYS 64 /* compadd -k: assoc parameter names */ #define CAF_ALL 128 /* compadd -C: _all_matches */ +#define CAF_MATSORT 256 /* compadd -o match: sort by match rather than by display string */ +#define CAF_NUMSORT 512 /* compadd -o numeric: sort numerically */ +#define CAF_REVSORT 1024 /* compadd -o numeric: sort in reverse */ /* Data for compadd and addmatches() */ |