- Selecting a text would trigger a button (alt+X could be used?) to "Extract selected text"
- Current rem would be tagged with the "Remove from Queue" powerup (integration with Hide in Queue plugin - is it possible?)
- A child rem would be created from the selected text (maybe with a pin to the parent?) and tagged incremental
Apparently there is no a selected text menu location:
export declare enum PluginCommandMenuLocation {
PropertyConfigMenu = "PropertyConfigMenu",
QueueMenu = "QueueMenu",
ReaderMenu = "ReaderMenu",
PDFHighlightPopupLocation = "PDFHighlightPopupLocation",
DocumentMenu = "DocumentMenu"
}
export interface PluginMenuItem extends Omit<SimpleCommand, 'action'> {
name: string;
location: PluginCommandMenuLocation;
action: (args: any) => Promise;
iconUrl?: string;
}
But there is this:
enum WidgetLocation {
SelectedTextMenu = "SelectedTextMenu",
}
(just like the "Dictionary" plugin?)