@@ -13,6 +13,7 @@ export default class ClipboardIndicatorPreferences extends ExtensionPreferences
1313 const page = new Adw . PreferencesPage ( ) ;
1414 page . add ( settingsUI . ui ) ;
1515 page . add ( settingsUI . behavior ) ;
16+ page . add ( settingsUI . search ) ;
1617 page . add ( settingsUI . limits ) ;
1718 page . add ( settingsUI . exclusion ) ;
1819 page . add ( settingsUI . topbar ) ;
@@ -134,6 +135,14 @@ class Settings {
134135 halign : Gtk . Align . CENTER ,
135136 } ) ;
136137
138+ this . case_sensitive_search = new Adw . SwitchRow ( {
139+ title : _ ( "Case-sensitive search" )
140+ } ) ;
141+
142+ this . regex_search = new Adw . SwitchRow ( {
143+ title : _ ( "Regular expression matching in search" )
144+ } ) ;
145+
137146 this . field_exclusion_row_add_button . connect ( 'clicked' , ( ) => {
138147 this . field_exclusion_row_add_button . set_sensitive ( false ) ;
139148 this . excluded_row_counter ++ ;
@@ -167,6 +176,7 @@ class Settings {
167176 this . topbar = new Adw . PreferencesGroup ( { title : _ ( 'Topbar' ) } ) ;
168177 this . notifications = new Adw . PreferencesGroup ( { title : _ ( 'Notifications' ) } ) ;
169178 this . shortcuts = new Adw . PreferencesGroup ( { title : _ ( 'Shortcuts' ) } ) ;
179+ this . search = new Adw . PreferencesGroup ( { title : _ ( 'Search' ) } ) ;
170180
171181 this . ui . add ( this . field_preview_size ) ;
172182 this . ui . add ( this . field_move_item_first ) ;
@@ -196,6 +206,9 @@ class Settings {
196206 this . notifications . add ( this . field_cycle_notification_toggle )
197207 this . notifications . add ( this . field_confirm_clear_toggle ) ;
198208
209+ this . search . add ( this . case_sensitive_search ) ;
210+ this . search . add ( this . regex_search ) ;
211+
199212 this . #buildShorcuts( this . shortcuts ) ;
200213
201214 this . schema . bind ( PrefsFields . HISTORY_SIZE , this . field_size , 'value' , Gio . SettingsBindFlags . DEFAULT ) ;
@@ -219,6 +232,8 @@ class Settings {
219232 this . schema . bind ( PrefsFields . CACHE_IMAGES , this . field_cache_images , 'active' , Gio . SettingsBindFlags . DEFAULT ) ;
220233 this . schema . bind ( PrefsFields . CLEAR_HISTORY_ON_INTERVAL , this . field_clear_history_on_interval , 'active' , Gio . SettingsBindFlags . DEFAULT ) ;
221234 this . schema . bind ( PrefsFields . CLEAR_HISTORY_INTERVAL , this . field_clear_history_interval , 'value' , Gio . SettingsBindFlags . DEFAULT ) ;
235+ this . schema . bind ( PrefsFields . CASE_SENSITIVE_SEARCH , this . case_sensitive_search , 'active' , Gio . SettingsBindFlags . DEFAULT ) ;
236+ this . schema . bind ( PrefsFields . REGEX_SEARCH , this . regex_search , 'active' , Gio . SettingsBindFlags . DEFAULT ) ;
222237
223238 this . field_clear_history_interval . set_sensitive ( this . field_clear_history_on_interval . active ) ;
224239 this . #fetchExludedAppsList( ) ;
0 commit comments