How to differentiate "<partial keyword> + <?>" and "<partial keyword> + <space> + <?>" in confd clispec completion point?

Hi,

My question is how to differentiate "<partial keyword> + <?>" and "<partial keyword> + <space> + <?>" in confd clispec completion point?

Is there any way can do that?

BR,
Harry Huang

Hello,

is there such option like "<partial keyword> + <space> + <?>"?
Isn’t i just evaluated as 2 calls to completion point?
"<partial keyword> + <space>"
"<partial keyword> + <?>"

You may differentiate by using token parameter of completion callback.

             int (*completion)(struct confd_user_info *uinfo,
                      int cli_style, char *token, int completion_char,
                      confd_hkeypath_t *kp,
                      char *cmdpath, char *cmdparam_id,
                      struct confd_qname *simpleType, char *extra);

See ConfD user guide, confd_lib_dp, section CONFD _ACTIONS.

Hi mnovak,

Thanks a lot!

Because we forbid space completion so we have ‘" + + <?>"’.