<table><tr><td style="">alex created this revision.<br />alex added reviewers: broulik, ngraham, sitter, mlaurent.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />alex requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28192">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The config key has been moved to a separate file, some foreach have been refactored, the QRegExp occurrences have been ported to QRegularExpression and are now reused.<br />
Furthermore unnecessary functions/function calls have been removed and the code is formatted.</p>
<p>WIP: Currently the way the matches look is not very good, because there is far too much text displayed for example:<br />
<a href="https://phabricator.kde.org/F8191533" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F8191533: CurrentStateNormalKWin</a><br />
And with a crappy kwin rule which increases the width:<br />
<a href="https://phabricator.kde.org/F8191530" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F8191530: Current</a></p>
<p>My Idea would be to make the definition, example sentence and synonyms customizable.<br />
By default the word type, definition and synonyms would be shown for example:<br />
<tt style="background: #ebebeb; font-size: 13px;">n trying something to find out about it [syn: trial, trial run, test, tryout]</tt><br />
And also an action which shows a dialog with all the available information and maybe some copy buttons for the synonyms.</p>
<p>Because this patch is refactoring/cleanup I consider making a new patch for these feature and would appreciate feedback for the ideas :-).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Should work as before</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R114 Plasma Addons</div></div></div><br /><div><strong>BRANCH</strong><div><div>dictionary_runner_improvements</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28192">https://phabricator.kde.org/D28192</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>runners/dictionary/config_keys.h<br />
runners/dictionary/dictionarymatchengine.cpp<br />
runners/dictionary/dictionaryrunner.cpp<br />
runners/dictionary/dictionaryrunner.h<br />
runners/dictionary/dictionaryrunner_config.cpp<br />
runners/dictionary/dictionaryrunner_config.h</div></div></div><br /><div><strong>To: </strong>alex, broulik, ngraham, sitter, mlaurent<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>