A company-complete
alternative that tries much harder to find
completions. If none of the current completions look good, call the
command again to try the next backend.
You will need to bind this function globally and in the active company keymap. For example:
(global-set-key (kbd "C-z") #'company-try-hard)
(define-key company-active-map (kbd "C-z") #'company-try-hard)
If any company backend returns a prefix, company will not try any other backends (see discussion in company#42).
This is intended to encourage backends that are precise. However, this isn't always appropriate (it's hard to find all completion candidates in very dynamic languages).
Users may simply prefer aggressive completion candidate discovery,
especially people migrating from hippie-expand
, using
hippie-expand-try-functions-list
.