Skip to content

Commit 7a2f36d

Browse files
committed
fix(launcher): Unlimit search results for file navigation
1 parent 3f417b4 commit 7a2f36d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/dialog_launcher.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

src/plugins/recent/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)