I'd like to use a super small value of company-minimum-prefix-length
, for example, 2
. This is really handy and I don't feel any performance issue. The only thing that annoys me is, when in inferior shell mode(inferior-python-mode, inferior-ess-mode, shell-mode ...), some commands are short, i.e. ls
, what I actually want is to run the command after I press RET
even there was company tooltip displaying the candidates before I press RET
. But what I got is company
did the completion and I need to press RET
to run the command.
Because this will happen even when company-minimum-prefix-length
is set to a large value, for example, 5
,
Rather than set a larger value of company-minimum-prefix-length
, I'd like to tell company
to do completion and and run the command of RET
of current major mode if current candidate is already exactly the same as the prefix I typed ? Thanks in advance.
C-m
to nil incompany-active-map
and whenver you encounter a situation like you described, pressRET
to complete the company candidate or pressC-m
to just execute return without company completing the candidate.C-j
andC-m
.