Skip to content

Using digits and letters to select more company candidates by extending the ora-company-number function. #38

Description

@hongyi-zhao

The function ora-company-number enables to select and insert company candidates using digits without modifier. But it can only support 10 candidates, numbered 0-9. I want to extend this feature to support more candidates indexed/identified with a single digit or letter, e.g., 0-9, q, w, e, r, t, by setting:

(setq company-tooltip-limit 16
      company-quick-access-keys '("1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "q" "w" "e" "r" "t" "y"))        

See the following screenshot for the effect. This way, I can select and insert more candidates conveniently.

image

How can the above code be improved to achieve this goal? Any hints will be greatly appreciated.

Regards,
HZ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions