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

Improve default handling for file completions #402

Conversation

clemera
Copy link
Collaborator

@clemera clemera commented Jan 27, 2021

selectrum-read-file-name would error when passing a list for default-filename as reported by @VojtechStep in #401 . Also we still had code which would remove the final slash for sorting the default first in file completions which wouldn't apply any more as dir candidates don't use an overlay any more to display the slash but contain it in their string now.

I also improved the sorting so "/home/user/default" and "~/default" or a relative passed default get sorted first when they exist within the prompting directory. We still need to find a good way to indicate the default in file completions when that isn't the case, see #400.

@clemera clemera changed the title Accept default list for file completions Accept list for default value in file completions Jan 27, 2021
@clemera clemera force-pushed the accept-default-list-for-file-completions branch 2 times, most recently from e68110b to f81b2a9 Compare January 27, 2021 10:22
@clemera clemera force-pushed the accept-default-list-for-file-completions branch from f81b2a9 to 2cbde8a Compare January 27, 2021 10:30
@clemera clemera changed the title Accept list for default value in file completions Improve default handling for file completions Jan 27, 2021
@clemera clemera merged commit e4cc7d2 into radian-software:master Jan 27, 2021
raxod502 added a commit that referenced this pull request Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant