Macros are not calling autocomplete functions but aliases do #1350
Replies: 3 comments 7 replies
-
@kmvanbrunt This question is up your alley ... |
Beta Was this translation helpful? Give feedback.
-
Because macros do not resolve until after hitting Enter, tab completion will only complete paths while typing a macro. When I wrote this feature 6 years ago, I remember having a lot of trouble solving how to implement tab completing macros in the way you are asking. It gets complicated since arguments can be used in any order in a resolved macro. A later argument could determine what to tab complete in an earlier argument. Here is an extreme example: Running Therefore I couldn't tab complete the first argument without first knowing what the second argument was. Additionally, an argument number can be repeated in a macro: Lastly macros can resolve into other macros and aliases. So there is a lot of state to keep track of. |
Beta Was this translation helpful? Give feedback.
-
@Sripadvallabh Absolutely, |
Beta Was this translation helpful? Give feedback.
-
Is there a possible way for macros to call autocomplete functions in case their placeholder arguments are given to the macro??
Basically i have a situation as follows:
When i invoke the command
'xd new_word <TAB>'
is there a way to expect the autocompletion list as in"words d new_word <TAB>"
?????But if i just have an alias it autocompletes the next word in sequence.
Beta Was this translation helpful? Give feedback.
All reactions