Skip to content

Conversation

mbien
Copy link
Member

@mbien mbien commented Oct 9, 2025

first commit:

  • make exact search mode follow the case sensitivity settings
  • add missing exact search instructions to file search label (other windows had those)
  • file search: selection should stick to first item until user changes selection. Async search could otherwise insert better matches above the selected item
  • disable "prefer opened projects" by default
  • CI: enabled tests
  • other minor improvements

the "prefer opened projects" setting can lead to confusing results when good matches are displayed far away from the first (worse) match, potentially outside of the visible viewport. The implementation itself works correctly but it might be better as toggle in the search window settings instead of the more hidden global options.

second commit:

  • removed the setting from global options and moved it to the three search windows
  • generics and related language renovations
  • file search: renamed "Search by Folder" to "Search by Path"
  • updated mnemonics
image

(other two windows look similar, but they may have less options)

fixes #4311

https://issues.apache.org/jira/browse/NETBEANS-3808
https://issues.apache.org/jira/browse/NETBEANS-3017

@mbien mbien added this to the NB28 milestone Oct 9, 2025
@mbien mbien added Editor ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Oct 9, 2025

public boolean isSortingPreferOpenProjects() {
return getSortingNode().getBoolean(KEY_SORTING_PRJ, true);
return getSortingNode().getBoolean(KEY_SORTING_PRJ, false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a thought: we could also use this opportunity to fix the typo in the key, this would have the effect that the setting will be reset on NB upgrade. Which might be desirable too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Setting moved from global options to the search windows anyway.

mbien added 2 commits October 9, 2025 21:06
 - make exact search mode follow the case sensitivity settings
 - add missing exact search instructions to file search label (other
   windows had those)
 - file search: selection should stick to first item until user changes
   selection. Async search could otherwise insert better matches above
   the selected item
 - disable "prefer opened projects" by default
 - CI: enabled tests
 - other minor improvements

the "prefer opened projects" setting can lead to confusing results
when good matches are displayed far away from the first (worse) match,
potentially outside of the visible viewport. The implementation
itself works correctly but it might be better to change it into
a filter instead of model comparator in future and consolidate
the UI/settings of the 3 search dialogs.
 - removed the setting from global options and moved it to the three
   search windows
 - generics and related language renovationss
 - file search: renamed "Search by Folder" to "Search by Path"
 - updated mnemonics
@mbien mbien force-pushed the improve-goto-search branch from 4369b9e to b6818ce Compare October 10, 2025 02:53
@mbien mbien changed the title Improve goto search functionality Improve goto search windows Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent "Go To File" results

1 participant