microsoft / inshellisense

IDE style command line auto complete
MIT License
8.39k stars 186 forks source link

Unclear whether inshellisense works only in the current directory #5

Closed adder32 closed 10 months ago

adder32 commented 11 months ago

Describe the bug Unclear whether inshellisense works only in the current directory

To Reproduce

alex@smartalex-lap:~$ cd Repositories/
alex@smartalex-lap:~/Repositories$ ls
chronos  godbolt-reaper  linked_list_py  porcu-regex  recursivedescent  tmp  ttt  vivify  wrath
alex@smartalex-lap:~/Repositories$ is --shell bash
> cd wrath/
> ls
chronos  godbolt-reaper  linked_list_py  porcu-regex  recursivedescent  tmp  ttt  vivify  wrath
> pwd
/home/alex/Repositories

Expected behavior By running the commands above you should end up in /home/alex/Repositories/wrath.

Environment

philibertperusse commented 11 months ago

Same issue using Powershell, 'cd' command seems to have no effect.

Roconda commented 11 months ago

Same here, didn't work on MacOS with Fish shell as well. Node version 20.

cpendery commented 11 months ago

This was originally intentional since I didn't expect an inshellisense session to last longer than a few commands in the current directory

abulka commented 11 months ago

Can't autocomplete references to filenames in other directories e.g. I type

ls ~/.zsh

then hit TAB to autocomplete (which should list e.g.

.zsh_history    .zsh_sessions/  .zshrc

but instead I get nothing - no completion of filenames at all.

cpendery commented 11 months ago

Working on addressing all these issues of respecting the underlying shell

cpendery commented 10 months ago

Closing as this was fixed in 0.0.1-rc.5