Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Include files as a suggestion to the command #598

Open
NightMachinery opened this issue Apr 12, 2021 · 0 comments
Open

[FR] Include files as a suggestion to the command #598

NightMachinery opened this issue Apr 12, 2021 · 0 comments

Comments

@NightMachinery
Copy link

This is a resubmit of #584 .

Is your feature request related to a problem? Please describe.

In most of the cases the user would be traversing some files from directory, so what if that is also provided as a suggestion

Describe the solution you'd like

suppose user types some command, then this plugin would complete it with first file/directory by order, by modified time or by alphabetical order as a suggestion
eg, whenever user types cd /usr/local/ plugin completes it with cd /usr/local/bin

Describe alternatives you've considered

currently users keep hitting tabs until what they want is suggested to them, that can be made easier using this plugin

Additional context

This suggestion can be made only if current suggestion based on history returns none

In that thread, using the completion engine is recommended. This has two drawbacks:

  • The user might not want to use the completion engine, but might still want file completions; Running completions can be very expensive.
  • The completion functions might not return files. For example, I have a lot of my functions reuse =which='s completor (they are mostly higher-order functions that have other functions for their input), and this completor does not return filenames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant