<table><tr><td style="">ahmadsamir updated this revision to Diff 54150.<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-chduevwacaenysf/">(Show Details)</a><br />ahmadsamir edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-fuftkzv7gqicxwf/">(Show Details)</a><br />ahmadsamir removed a reviewer: KDevelop.<br />ahmadsamir removed subscribers: loh.tar, mwolff.<br />ahmadsamir added a comment.
</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/D18793">View Revision</a></tr></table><br /><div><div><p>Verbatim</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Handle text completion with block selection mode</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Split out the code responsible for inserting text in multi-line block<br />
selection from typeChars to a new function, insertTextInBlock(), which<br />
can be used in replaceText() to handle text completion when in block<br />
selection mode.<br />
<br />
When getting possible text completion matches from the current document,<br />
the code skips the word the cursor is inside; extend that behaviour for<br />
block selection too.<br />
<br />
Add a unit test for the new completion behaviour with block selection.</span><br />
<br />
BUG: 359763<br />
FIXED-IN: 5.<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">56</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">58</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>invoking text completion, the completion text should be inserted on <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">all</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">every</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the </span>line<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">s</span> in the block selec<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">tion</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">tion, test with remove-tail enabled/disabled</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D18793?vs=54149&id=54150">https://phabricator.kde.org/D18793?vs=54149&id=54150</a></div></div><br /><div><strong>BRANCH</strong><div><div>block-selection-completion-3 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18793">https://phabricator.kde.org/D18793</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/completion_test.cpp<br />
autotests/src/completion_test.h<br />
src/completion/katewordcompletion.cpp<br />
src/document/katedocument.cpp<br />
src/document/katedocument.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, KTextEditor, cullmann, dhaumann, mwolff, KDevelop<br /><strong>Cc: </strong>kde-frameworks-devel, kwrite-devel, KTextEditor, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann, loh.tar<br /></div>