-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix the Advanced Settings Aren't Searchable, #4512 #4516
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
Conversation
NOTE: To reviewers, have a look at my post in the issue (#4512). That explains the changes and shows the search terms that are now being extracted from the settings panel NIBs. My question for reviewers is whether I am being too aggressive in removing punctuation from the search terms. In other words should searching for "Layout:", with the ":" at the end return results? The changed code is stripping the colon, so now it will not be found. Of course as you are typing "Layout", unless you are a fast typist you will get results before you can type the colon. Compare the debug output in the issue to see the changes. |
This commit will: - Add SectionTitleTop hidden label to Advanced tab - Add SectionTitleLogging hidden label to Advanced tab - Add FunctionalButtonShowLog identifier to Show log viewer button on Advanced tab - Add FunctionalButtonLogDirectory identifier to Open log directory button on Advanced tab - Add FunctionalButtonShowConfig identifier to Show the config file in Finder button on Key Bindings tab - Add FunctionalButtonImportConfig identifier to Import an existing config file button on Key Bindings tab - Add FunctionalButtonDefaultApp identifier to Set IINA as the Default Application button on Utilities tab - Add formSearchTerm method to PreferenceWindowController that removes extraneous characters from labels and titles - Correct the spelling of available on General tab - Change Use media keys to be Use system media control to match UI - Add a logLabelDict method to PreferenceWindowController that logs the search terms found by scanning NIBs
31c9ebf
to
92b98ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the plugins settings are not searchable as well. Is it intentional for now?
This commit will: - Add SectionTitleTop hidden label to Advanced tab - Add SectionTitleLogging hidden label to Advanced tab - Add FunctionalButtonEnableAdvanced identifier to Enable advanced settings button on Advanced tab - Add FunctionalButtonShowLog identifier to Show log viewer button on Advanced tab - Add FunctionalButtonLogDirectory identifier to Open log directory button on Advanced tab - Add FunctionalButtonShowConfig identifier to Show the config file in Finder button on Key Bindings tab - Add FunctionalButtonImportConfig identifier to Import an existing config file button on Key Bindings tab - Add FunctionalButtonDefaultApp identifier to Set IINA as the Default Application button on Utilities tab - Add SectionTitlePlugins hidden label to Plugins tab - Add FunctionalButtonInstallGitHub identifier to Install from GitHub button on Plugins tab - Add FunctionalButtonInstallLocal identifier to Install from a local package button on Plugins tab - Add FunctionalButtonShowPlugin identifier to Show in Finder button on Plugins tab - Add formSearchTerm method to PreferenceWindowController that removes extraneous characters from labels and titles - Correct the spelling of available on General tab - Change Use media keys to be Use system media control to match UI - Add a logLabelDict method to PreferenceWindowController that logs the search terms found by scanning NIBs
I was avoiding the plugins settings over worries about merge conflicts. I have added them in this new commit. These are the terms from the plugins settings:
|
This commit will: - Add SectionTitleTop hidden label to Advanced tab - Add SectionTitleLogging hidden label to Advanced tab - Add FunctionalButtonEnableAdvanced identifier to Enable advanced settings button on Advanced tab - Add FunctionalButtonShowLog identifier to Show log viewer button on Advanced tab - Add FunctionalButtonLogDirectory identifier to Open log directory button on Advanced tab - Add FunctionalButtonShowConfig identifier to Show the config file in Finder button on Key Bindings tab - Add FunctionalButtonImportConfig identifier to Import an existing config file button on Key Bindings tab - Add FunctionalButtonDefaultApp identifier to Set IINA as the Default Application button on Utilities tab - Add SectionTitlePlugins hidden label to Plugins tab - Add FunctionalButtonInstallGitHub identifier to Install from GitHub button on Plugins tab - Add FunctionalButtonInstallLocal identifier to Install from a local package button on Plugins tab - Add FunctionalButtonShowPlugin identifier to Show in Finder button on Plugins tab - Add formSearchTerm method to PreferenceWindowController that removes extraneous characters from labels and titles - Correct the spelling of available on General tab - Change Use media keys to be Use system media control to match UI - Add a logLabelDict method to PreferenceWindowController that logs the search terms found by scanning NIBs - Add a trimWhitespaceSuffix method to the private String extension - Correct an existing defect in the removedLastSemicolon method - Change searchFieldAction to remove trailing whitespace and a trailing colon if present from the string to search for
After discussion with @uiryuu I have added stripping of any trailing whitespace or colon from the user's search string. |
This commit will:
Add
SectionTitleTop
hidden label toAdvanced
tabAdd
SectionTitleLogging
hidden label toAdvanced
tabAdd
FunctionalButtonShowLog
identifier toShow log viewer
button onAdvanced
tabAdd
FunctionalButtonLogDirectory
identifier toOpen log directory
button onAdvanced
tabAdd
FunctionalButtonShowConfig
identifier toShow the config file in Finder
button onKey Bindings
tabAdd
FunctionalButtonImportConfig
identifier toImport an existing config file
button onKey Bindings
tabAdd
FunctionalButtonDefaultApp
identifier toSet IINA as the Default Application…
button onUtilities
tabAdd
formSearchTerm
method toPreferenceWindowController
that removes extraneous characters from labels and titlesCorrect the spelling of available on
General
tabChange
Use media keys
to beUse system media control
to match UIAdd a
logLabelDict
method toPreferenceWindowController
that logs the search terms found by scanning NIBsI have read CONTRIBUTING.md
This implements/fixes issue The Advanced Settings Aren't Searchable #4512.
Description: