Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make context menu customizable #83

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

abichinger
Copy link
Contributor

This PR adds support for custom context menu items.

Overview of changes:

type ContextMenuItem = {
    title: (i18n: App["i18n"]) => string;
    action: (app: App, selectedItems: DirEntry[]) => void;
    link?: (app: App, selectedItems: DirEntry[]) => void;
    show: (app: App, ctx: MenuContext) => boolean;
}

@n1crack n1crack merged commit 645415e into n1crack:master Dec 7, 2024
@n1crack
Copy link
Owner

n1crack commented Dec 7, 2024

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants