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 {
77
77
78
78
const pattern = pat . toLowerCase ( )
79
79
80
- if ( pat !== '?' && ! pat . startsWith ( "/" ) && ! pat . startsWith ( "~" ) ) {
80
+ const navigating_files = pat . startsWith ( "/" ) || pat . startsWith ( "~" )
81
+
82
+ if ( pat !== '?' && ! navigating_files ) {
81
83
const needles = pattern . split ( ' ' ) ;
82
84
83
85
const contains_pattern = ( haystack : string , needles : Array < string > ) : boolean => {
@@ -207,7 +209,7 @@ export class Launcher extends search.Search {
207
209
this . options = windows . concat ( this . options )
208
210
209
211
// Truncate excess items from the list
210
- this . options . splice ( this . list_max ) ;
212
+ if ( ! navigating_files ) this . options . splice ( this . list_max ) ;
211
213
212
214
return this . options ;
213
215
} ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ class App {
62
62
}
63
63
64
64
query ( input ) {
65
- input = input . substring ( 2 ) . trim ( )
66
-
65
+ input = input . trim ( )
66
+
67
67
const items = this . items ( )
68
68
69
69
let selections = new Array ( )
@@ -77,7 +77,7 @@ class App {
77
77
. slice ( 0 , 20 )
78
78
79
79
let id = 0
80
-
80
+
81
81
for ( const item of this . results ) {
82
82
selections . push ( {
83
83
name : item . display_name ,
You can’t perform that action at this time.
0 commit comments