Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: better descriptions of DefaultType action usage
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Aug 18, 2023
commit 9b1d57491968cd40c24a07d9bd90c70ef80f5fe9
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