Skip to content

Feature Request: An option to enable case-sensitive tab completion. #14337

Closed

Description

Summary of the new feature/enhancement

I think title pretty much explains itself, but here is the idea: Have an config option in profile which allows the user to enable or disable case-sensitive tab completion. A simple filter should do.

Use Case:
I just want to open explorer.exe and I do this PS> exp[-> Tab] and this happens.
image

And, I know adding an l should solve the problem but after years of using case-sensitive bash, it gets annoying while switching from bash to powershell. And, this has become more of a pain point since I have been using WSL regularly nowadays.

Proposed technical implementation details (optional)

I am hoping a simple filter should do the job but I don't have the technical know-how of powershell to do it myself. If this is not released as a feature, the nudge in right direction would be great.

Activity

  1. iSazonov commented on Dec 8, 2020

    @iSazonov
    Collaborator

    Aniket Biprojit Chowdhury (@aniketbiprojit) Have you tried the latest PSReadline features (including experimental ones)? There are a history using and predictions. Perhaps they resolve your request or raise more feedback.

  2. aniketbiprojit commented on Dec 11, 2020

    @aniketbiprojit
    Author

    They do have the interactive history search but that doesn't help me much. If I have a README.md and run.py, if I do r[Tab->] I should get run.py instead of README.md. The issue is for same codebase I have different completions in WSL and Powershell.

  3. iSazonov commented on Dec 11, 2020

    @iSazonov
    Collaborator

    /cc Dongbo Wang (@daxian-dbw) What do you think about the scenario? Is it for the repo or PSReadline?

  4. SeeminglyScience commented on Dec 11, 2020

    @SeeminglyScience
    Contributor

    Is it for the repo or PSReadline?

    Most likely would need to be in the CommandCompletion API. PSRL (and PSES for that matter) does not receive what the engine determined to be the "word to complete" so it can't filter by case without duplicating a decent amount of work.

  5. aniketbiprojit commented on Dec 16, 2020

    @aniketbiprojit
    Author

    Is there some easy way to implement this on my end? Something that can be used to filter results once PowerShell prints the output?

  6. iSazonov commented on Dec 16, 2020

    @iSazonov
    Collaborator

    Look #1273 and #8128 for history. We need to expose the option to address the request. Also probably we need to enhance PSReadline.
    Dongbo Wang (@daxian-dbw) could you please triage?

  7. SeeminglyScience commented on Dec 16, 2020

    @SeeminglyScience
    Contributor

    Is there some easy way to implement this on my end? Something that can be used to filter results once PowerShell prints the output?

    No easy way. You could write a custom TabExpansion2 but you'd need to find the "word to complete" on your own. You could probably get a sorta-good-enough version by looking at the token closest to the cursor.

  8. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  9. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  10. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  11. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions