microsoft / inshellisense

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

[BUG] Arrow keys wont work #51

Closed Bizarrus closed 10 months ago

Bizarrus commented 11 months ago

Describe the bug Arrow keys wont work

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Install 'npm install -g @microsoft/inshellisense'
  3. execute 'inshellisense bind'
  4. select bash
  5. Enter some commands
  6. use arrow up or arrow down
  7. Nothing happens

Expected behavior

 if (key.upArrow) {
    setSelectionIdx(Math.max(0, selectionIdx - 1));
}
else if (key.downArrow) {
    setSelectionIdx(Math.min(availableShells.length - 1, selectionIdx + 1));
}

Self-explanatory.I think setSelectionIdx will not executed, i dont know..

Environment

cpendery commented 11 months ago

Duplicate of #9

cpendery commented 10 months ago

Closing as this was fixed in 0.0.1-rc.5