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

Cd tab completion with CDPATH #4860

Open
1 task done
Sayanel01 opened this issue Mar 12, 2024 · 1 comment
Open
1 task done

Cd tab completion with CDPATH #4860

Sayanel01 opened this issue Mar 12, 2024 · 1 comment
Labels
Help Wanted help is requested from collaborators, please! Potential Project This issue can be used as a development Project for those loooking for a nice challenge

Comments

@Sayanel01
Copy link

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.44.0.windows.1
cpu: x86_64
built from commit: ad0bbfffa543db6979717be96df630d3e5741331
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [version 10.0.19045.4123]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt
Editor Option: Notepad++
Custom Editor Path: 
Default Branch Option:  
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I set my CDPATH environnement variable:

CDPATH=.:/c/some/path

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

$ mkdir /c/some/path/myfolder
$ CDPATH=.:/c/some/path
$ cd myf<TAB>
  • What did you expect to occur after running these commands?

When pressing TAB, I expect it to autocomplete to myfolder

  • What actually happened instead?

No autocompletion.

Note: Lastest version of bash-completion (https://github.com/scop/bash-completion) do support completion with CDPATH

@dscho
Copy link
Member

dscho commented Mar 12, 2024

Note: Lastest version of bash-completion (https://github.com/scop/bash-completion) do support completion with CDPATH

Do feel free to integrate it into https://github.com/msys2/MSYS2-packages/tree/HEAD/bash-completion, and then we can see whether there is still anything we need to do to get it into Git for Windows.

@dscho dscho added Potential Project This issue can be used as a development Project for those loooking for a nice challenge Help Wanted help is requested from collaborators, please! labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted help is requested from collaborators, please! Potential Project This issue can be used as a development Project for those loooking for a nice challenge
Projects
None yet
Development

No branches or pull requests

2 participants