Feature #1905

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

Added by Abdelghani Omari over 1 year ago. Updated over 1 year 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 over 1 year ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF