Skip to content

Commit 2c1367a

Browse files
committed
feat: default multi placeholder to name
1 parent 78fd184 commit 2c1367a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/docs/Choices/MultiChoice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Make sure the multi is unfolded (as it is in the screenshot). Click the drag han
1212

1313
## Placeholder text
1414

15-
You can optionally set a placeholder for each Multi choice. This text shows up in the choice picker search box when you open the multi, which is handy for complex menus or grouped workflows. Leave it empty to keep the default placeholder.
15+
You can optionally set a placeholder for each Multi choice. This text shows up in the choice picker search box when you open the multi, which is handy for complex menus or grouped workflows. Leave it empty to use the multi name as the placeholder.

src/gui/suggesters/choiceSuggester.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class ChoiceSuggester extends FuzzySuggestModal<IChoice> {
7777

7878
const nextPlaceholder = isBack
7979
? this.placeholderStack[this.placeholderStack.length - 1]
80-
: multi.placeholder?.trim() || undefined;
80+
: multi.placeholder?.trim() || multi.name;
8181
const nextStack = isBack
8282
? this.placeholderStack.slice(0, -1)
8383
: [...this.placeholderStack, this.currentPlaceholder];

0 commit comments

Comments
 (0)