From 6e32d9a61549756e0dbac34fa643294a83e4b8b3 Mon Sep 17 00:00:00 2001 From: Ian Yang Date: Wed, 27 Feb 2013 07:41:32 +0800 Subject: [PATCH] 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. --- recipes/ido-complete-space-or-hyphen | 1 + 1 file changed, 1 insertion(+) create mode 100644 recipes/ido-complete-space-or-hyphen diff --git a/recipes/ido-complete-space-or-hyphen b/recipes/ido-complete-space-or-hyphen new file mode 100644 index 00000000..97efb151 --- /dev/null +++ b/recipes/ido-complete-space-or-hyphen @@ -0,0 +1 @@ +(ido-complete-space-or-hyphen :repo "doitian/ido-complete-space-or-hyphen" :fetcher github)