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

CTRL + P dosn't cycle through suggestions in Linux #9054

Open
mcshaman opened this issue Jun 4, 2024 · 1 comment
Open

CTRL + P dosn't cycle through suggestions in Linux #9054

mcshaman opened this issue Jun 4, 2024 · 1 comment

Comments

@mcshaman
Copy link

mcshaman commented Jun 4, 2024

Describe the bug
Apparently you are meant to be able to cycle through autocomplete suggestions using ctrl + p and ctrl + n. While ctrl + n works (allows me to cycle down) ctrI + p opens up the VS Code Quick File Open. The feature works on my Mac but no my Linux/Ubuntu box. I see there were previously issues with this but they all appear to be closed now.

To Reproduce

  1. Create new file e.g. index.html - so that VS code can suggest snippets for the file type
  2. Go to insert mode and start typing something that triggers suggestions e.g. "ht"
  3. Pressing ctrl + p triggers Quick File Open (not cycle as expected)

Expected behavior
ctrl + p should cycle up through suggested options

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.27.3
  • VSCode version: 1.89.1
  • OS: Ubuntu 22.04.4
@one2three4f
Copy link

Try adding this to keybindings.json
It changes the vscode commands "selectPrevSuggestion" and "selectNextSuggestion"

    {
        "key": "ctrl+n",
        "command": "selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
    },
    {
        "key": "ctrl+p",
        "command": "selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants