1
0
Fork 0
mirror of https://github.com/correl/melpa.git synced 2024-12-22 11:08:54 +00:00
melpa/recipes/ido-complete-space-or-hyphen
Ian Yang 6e32d9a615 Add package ido-complete-space-or-hyphen
Make ido completes like built-in M-x does, useful when use smex or use ido to
complete other hyphen separated choices

Example
-------

Choices: "ido-foo-bar", "ido-space" "ido-test"

    | Key Sequence | Result |
    |--------------+--------|
    | i            | "i"    |
    | SPACE        | "ido-" |

Choices: "ido-foo-bar", "ido-space" "ido-test"

    | Key Sequence | Result |
    |--------------+--------|
    | i            | "i"    |
    | SPACE        | "ido " |

Choices: "ido-foo-bar", "ido-space" "idotest"

    | Key Sequence | Result |
    |--------------+--------|
    | i            | "i"    |
    | SPACE        | "ido"  |
    | SPACE        | "ido-" |

When HYPHEN can be inserted and SPACE cannot, insert HYPHEN when user enter SPACE.

Choices: "ido-foo-bar", "ido-space" "ido test"

    | Key Sequence | Result |
    |--------------+--------|
    | i            | "i"    |
    | SPACE        | "ido"  |
    | SPACE        | "ido " |

If bot HYPHEN and SPACE can be inserted, SPACE just inserts itself.
2013-02-27 07:44:14 +08:00

1 line
92 B
Text

(ido-complete-space-or-hyphen :repo "doitian/ido-complete-space-or-hyphen" :fetcher github)