Skip to content

[FEATURE] Investigation of possibility of simulating "extracting" selected text from a Rem. #232

@hugomarins

Description

@hugomarins
  • 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?)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions