Feature #1905

TheIde/Editor : Add a submenu, diff, between Selected text and Clipboard text

Added by Abdelghani Omari about 6 years ago. Updated about 6 years ago.

Status:ApprovedStart date:09/27/2018
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:IDESpent time:-
Target version:-

Description

void Ide::EditorMenu(Bar& bar)
{
    InsertAdvanced(bar);
    bar.MenuSeparator();
    OnlineSearchMenu(bar);
    bar.MenuSeparator();
    editor.StdBar(bar);
    bar.Add(editor.IsSelection() && IsClipboardAvailableText(), "Diff", [=]() {
        DiffDlg dlg;
        dlg.diff.left.RemoveFrame(dlg.p);
        dlg.diff.Set(ReadClipboardText(), editor.GetSelection());
        dlg.Run();
    });
}

Thanks

Insert.cpp.patch Magnifier (473 Bytes) Abdelghani Omari, 09/27/2018 01:16 PM

History

#1 Updated by Miroslav Fidler about 6 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF