-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Test: terminal suggest improvements #241749
Labels
Milestone
Comments
This was referenced Feb 25, 2025
On |
This was referenced Feb 25, 2025
This was referenced Feb 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Refs #239519, #233799, #240408, #239515, #239518, #241252, #241220, #239977, #239028, #240104, #233368, #238085, #239022, #237979, #240661, #239978
Complexity: 5
Authors: @meganrogge, @Tyriar
Roles: Developer, Engineering Manager
Create Issue
Overview
We’ve significantly improved shell completions across several shells—bash, zsh, fish, and pwsh. This update enhances ghost text detection, sorting, and documentation support among other areas. The following sections outline detailed steps to test each improvement.
Pre-requisites
Ensure that
terminal.integrated.suggest.enabled
is enabled in your settings.Further customize settings under
terminal.suggest
as needed.Testing Instructions
1. Improved Ghost Text Detection
Background:
Completions in
fish
were previously flaky due to incorrect ghost text parsing. Now, they should appear consistently. Additionally, inline suggestions (denoted with a ⭐ icon) should appear as the top suggestions.Steps:
terminal.integrated.suggest.inlineSuggestion
.2. Improved Sorting
Background:
Sorting now prioritizes commands with inline descriptions, details, and documentation. Commands with specs (or builtins) should appear before executables pulled from
$PATH
.Steps:
co
and verify thatcode
(which has a spec) appears beforecol
(an executable)._
, and that punctuation is ignored when sorting.3. Enhanced Documentation Support
Background:
For
bash
andzsh
, completions now include parsed documentation fromman
/help
commands:Steps:
zsh
commands that should have these properties here. Forbash
, runcompgen -b
to get the list of builtin commands.4. Aliases Support
Background:
Command aliases now appear in the suggestions list. Note that spec information may be missing for some aliases (see Issue #240374).
Steps:
5. File Path Extensions Filtering
Background:
File suggestions are now filtered by extensions for specific commands:
python3
, only.py
files should be listed.node
, only.mjs
,.js
, and.cjs
files should appear.Steps:
python3
in the terminal and confirm that only files ending in.py
are suggested.node
and verify that only the specified file extensions are displayed.6. Path Resource Completion (Windows Specific)
Background:
Absolute path completion on Windows has been improved.
Steps:
cd |
and verify that available drives (e.g.,C:\
,D:\
) are shown.cd C:\|
and confirm that directories (e.g.,C:\Windows
) with the same prefix are displayed.cd :|
to verify that all drives are shown.bash
andzsh
, check that using~
correctly resolves to the home directory.7. Configuring quick suggestions
Background:
It can now be configured when suggestions automatically show up (aka. quick suggestions).
Steps:
terminal.integrated.suggest.quickSuggestions
and make sure each option works as expected.The text was updated successfully, but these errors were encountered: