File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ export class Launcher extends search.Search {
7777
7878 const pattern = pat . toLowerCase ( )
7979
80- if ( pat !== '?' && ! pat . startsWith ( "/" ) && ! pat . startsWith ( "~" ) ) {
80+ const navigating_files = pat . startsWith ( "/" ) || pat . startsWith ( "~" )
81+
82+ if ( pat !== '?' && ! navigating_files ) {
8183 const needles = pattern . split ( ' ' ) ;
8284
8385 const contains_pattern = ( haystack : string , needles : Array < string > ) : boolean => {
@@ -207,7 +209,7 @@ export class Launcher extends search.Search {
207209 this . options = windows . concat ( this . options )
208210
209211 // Truncate excess items from the list
210- this . options . splice ( this . list_max ) ;
212+ if ( ! navigating_files ) this . options . splice ( this . list_max ) ;
211213
212214 return this . options ;
213215 } ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ class App {
6262 }
6363
6464 query ( input ) {
65- input = input . substring ( 2 ) . trim ( )
66-
65+ input = input . trim ( )
66+
6767 const items = this . items ( )
6868
6969 let selections = new Array ( )
@@ -77,7 +77,7 @@ class App {
7777 . slice ( 0 , 20 )
7878
7979 let id = 0
80-
80+
8181 for ( const item of this . results ) {
8282 selections . push ( {
8383 name : item . display_name ,
You can’t perform that action at this time.
0 commit comments