Skip to content

Commit

Permalink
fix: better descriptions of DefaultType action usage
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Aug 18, 2023
1 parent d86dade commit 9b1d574
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/fileAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ interface FileActionData {
execBatch?: (files: Node[], view: View, dir: string) => Promise<(boolean|null)[]>
/** This action order in the list */
order?: number,
/** Make this action the default */

/**
* Make this action the default.
* If multiple actions are default, the first one
* will be used. The other ones will be put as first
* entries in the actions menu iff DefaultType.Hidden is not used.
* A DefaultType.Hidden action will never be shown
* in the actions menu even if another action takes
* its place as default.
*/
default?: DefaultType,
/**
* If true, the renderInline function will be called
Expand Down

0 comments on commit 9b1d574

Please sign in to comment.