Skip to content

Conversation

elsazac
Copy link
Member

@elsazac elsazac commented Sep 30, 2025

Refs : #194

This PR address one of the feature suggestion in #194.

This PR includes an autocomplete feature in the chevron popup filter, making it easier to navigate when too many editors are opened in the workbench. As the user types, matching editor names are suggested in the filter text area and the remaining part is auto-filled, improving speed and efficiency in locating editors.

This enhancement is implemented as an optional feature for the filter text in chevron pop up ie, users can enable or disable the autocomplete option based on their preference. A checkbox option to enable and disable the autocomplete behaviour is given in the Eclipse -> Settings -> General page. The feature is controlled through a new preference flag, ENABLE_AUTOCOMPLETE_IN_CHEVRON, stored under org.eclipse.ui.workbench. Users can enable or disable autocomplete in the Workbench Preferences, and when disabled, the chevron shows the normal standard filtering behaviour.

Key changes:

  1. Introduced a new optional autocomplete behaviour in the chevron popup to provide suggestions and auto completion.
  2. Normal text filtering is still available.
  3. Added a checkbox in Preference page to let users enable or disable the autocomplete option depending upon their preference.

@elsazac elsazac force-pushed the ChevronAutocomplete branch 2 times, most recently from b49086d to 466b815 Compare September 30, 2025 08:44
@elsazac elsazac marked this pull request as ready for review September 30, 2025 08:57
Copy link
Contributor

github-actions bot commented Sep 30, 2025

Test Results

 2 904 files  ±0   2 904 suites  ±0   2h 3m 41s ⏱️ - 6m 8s
 8 019 tests ±0   7 774 ✅ ±0  245 💤 ±0  0 ❌ ±0 
23 597 runs  ±0  22 815 ✅ ±0  782 💤 ±0  0 ❌ ±0 

Results for commit 897e653. ± Comparison against base commit fbad80e.

♻️ This comment has been updated with latest results.

Add Autocomplete support in chevron popup with preference toggle in the
eclipse Settings->Preference->General page

Introduced a new autocomplete behavior for the chevron popup filter
text. As the user types, matching editor names are suggested and the
remaining part is auto-filled, improving navigation efficiency within
the chevron pop up.

This is an enhancement done for filtertext and users can enable or
disable the autocomplete option based on their preference. This
behaviour is controlled through a new preference flag
`ENABLE_AUTOCOMPLETE_IN_CHEVRON` stored under
`org.eclipse.ui.workbench`. Users can enable or disable the feature in
the Workbench Preferences. When disabled, the chevron fitering falls
back to
the standard filtering behavior.

Key changes:
- Added `chevronAutocompleteBehavior()` to implement auto completion
  with suggestion.
- Retained existing `normalFilterBehavior()` for plain text filtering
incase  the user wanted to disable the auto complete feature.
- Updated `installFilter()` to switch between behaviors based on user
  preference
- Added `isAutocompleteEnabled()` method to check the preference state
@elsazac elsazac force-pushed the ChevronAutocomplete branch from 466b815 to 897e653 Compare September 30, 2025 12:08
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

Successfully merging this pull request may close these issues.

1 participant