sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
14k stars 4.49k forks source link

Aliases should expand to their full commands #1463

Closed AndrewSB closed 7 years ago

AndrewSB commented 7 years ago

Description

Bug

I wanted to be able to complete aliases to their full commands. i.e. if I have an alias which is alias gco = git checkout,

> gco <TAB>

should be completed to

> git checkout

scmbreeze talks about how to enable it using oh_my_zsh, I wasn't sure how to enable the same behaviour in prezto https://github.com/scmbreeze/scm_breeze#zsh

Expected behavior

> gco <TAB>

should be completed to

> git checkout

Actual behavior

> gco <TAB>

becomes

> gco 
 -- external command --
gcomm  gcore  gcov 
 -- alias --
gco

Versions

belak commented 7 years ago

I believe this may have been fixed by https://github.com/sorin-ionescu/prezto/pull/1500

You can use Control-Space to expand aliases now if you have the editor module enabled.

stereokai commented 11 months ago

@belak As of Dec 2023, Control-Space is problematic when MacOS has more than one input language available, as it conflicts with the native keybinding. How can I simply enable Tab to expand aliases? Thanks