Bug? M-x can't complete command with space #14

Closed
mofaph opened this Issue May 31, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@mofaph

mofaph commented May 31, 2012

When hit the space after bind 'smex to M-x, it can't complete commands as
execute-extended-command did.

e.g.:

M-x increm <== Hit space

As execute-extended-command, it will complete as increment-.

Is it a bug? Or just a feature?

@DarwinAwardWinner

This comment has been minimized.

Show comment Hide comment
@DarwinAwardWinner

DarwinAwardWinner Aug 31, 2012

Contributor

In ido, pressing space will insert a literal space character if any of the completions have a space in them (unlikely for Smex), otherwise it will run ido-complete, which is the same as pressing TAB. If all the offered completions share a common prefix, that prefix should be inserted, as with execute-extended-command.

Contributor

DarwinAwardWinner commented Aug 31, 2012

In ido, pressing space will insert a literal space character if any of the completions have a space in them (unlikely for Smex), otherwise it will run ido-complete, which is the same as pressing TAB. If all the offered completions share a common prefix, that prefix should be inserted, as with execute-extended-command.

@doitian

This comment has been minimized.

Show comment Hide comment
@doitian

doitian Feb 27, 2013

Try this ido extension, which works well with smex:

https://github.com/doitian/ido-complete-space-or-hyphen

doitian commented Feb 27, 2013

Try this ido extension, which works well with smex:

https://github.com/doitian/ido-complete-space-or-hyphen

@mofaph

This comment has been minimized.

Show comment Hide comment
@mofaph

mofaph Feb 28, 2013

@doitian Thanks! ido-complete-space-or-hyphen works fine for me.
@nonsequitur I think it's time to close this issue now. :-)

mofaph commented Feb 28, 2013

@doitian Thanks! ido-complete-space-or-hyphen works fine for me.
@nonsequitur I think it's time to close this issue now. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment