Skip to content

Commit 91877a9

Browse files
committed
feat: show source arguments in window title
1 parent ccd2765 commit 91877a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

denops/fall/picker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ export class Picker<T extends Detail> implements AsyncDisposable {
260260
this.#collectProcessor.start(denops, { args });
261261
stack.defer(() => this.#collectProcessor.pause());
262262

263+
// Change window title
264+
if (args.length > 0) {
265+
this.#inputComponent.title = `${this.#name}:${args.join(" ")}`;
266+
}
267+
263268
// Start mainloop
264269
let action: string | undefined;
265270
const accept = async (name: string) => {

0 commit comments

Comments
 (0)