@@ -146,6 +146,31 @@ export class TabSpotlightSearcherService extends StaticSpotlightSearcherService<
146146 this . isOnlyTab . value
147147 ) ,
148148 } ,
149+ tab_mru_switch : {
150+ text : [ this . t ( "spotlight.tab.title" ) , this . t ( "spotlight.tab.mru_switch" ) ] ,
151+ alternates : [ "tab" , "recent" , "mru" , "switch" ] ,
152+ icon : markRaw ( IconArrowRight ) ,
153+ excludeFromSearch : computed (
154+ ( ) =>
155+ ! this . showAction . value ||
156+ ! this . isDesktopMode . value ||
157+ this . isOnlyTab . value
158+ ) ,
159+ } ,
160+ tab_mru_switch_reverse : {
161+ text : [
162+ this . t ( "spotlight.tab.title" ) ,
163+ this . t ( "spotlight.tab.mru_switch_reverse" ) ,
164+ ] ,
165+ alternates : [ "tab" , "recent" , "mru" , "previous" , "switch" ] ,
166+ icon : markRaw ( IconArrowLeft ) ,
167+ excludeFromSearch : computed (
168+ ( ) =>
169+ ! this . showAction . value ||
170+ ! this . isDesktopMode . value ||
171+ this . isOnlyTab . value
172+ ) ,
173+ } ,
149174 } )
150175
151176 // TODO: Constructors are no longer recommended as of dioc > 3, use onServiceInit instead
@@ -184,5 +209,7 @@ export class TabSpotlightSearcherService extends StaticSpotlightSearcherService<
184209 if ( id === "tab_next" ) invokeAction ( "tab.next" )
185210 if ( id === "tab_switch_to_first" ) invokeAction ( "tab.switch-to-first" )
186211 if ( id === "tab_switch_to_last" ) invokeAction ( "tab.switch-to-last" )
212+ if ( id === "tab_mru_switch" ) invokeAction ( "tab.mru-switch" )
213+ if ( id === "tab_mru_switch_reverse" ) invokeAction ( "tab.mru-switch-reverse" )
187214 }
188215}
0 commit comments