<table><tr><td style="">nibags edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-kqtz3rfvsqaqaog/">(Show Details)</a><br />nibags added reviewers: KTextEditor, Kate.
</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/D20958">View Revision</a></tr></table><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(151, 234, 151, .6);">Now there are more than 300 languages ​​for syntax highlighting and the current menu to select them isn't comfortable, since it's slow to find any language. That is why I propose a new menu with scrollable list plus search bar. This menu is accessible only from the status bar and is equivalent to the "Mode" menu.<br />
<br />
### After:<br />
{F6803615}<br />
{F6803617}<br />
{F6803618}<br />
<br />
### Before:<br />
{F6803619}<br />
<br />
### Some features:<br />
<br />
* You can type in the search bar and browse the list with the keyboard, simultaneously.<br />
* The menu is kept synchronized with the classic "Mode" menu.<br />
* When pressing **Enter** or clicking, a syntax highlight is selected and the menu is hidden; when pressing **Ctrl + Enter**, highlighting is selected keeping the menu visible.<br />
* The items of languages ​​are separated by sections, this keeps the list more ordered. The **search bar** has special features:<br />
    * __Alphabetical search__ when writing a single character. For example, when looking for `a`, all the items that begin with "a" are displayed, this allows you to search for items alphabetically in a more comfortable way.<br />
    * __Search by extensions__: when writing a file extension, the corresponding language is displayed. For example, when writing `cpp`, "C ++", "ISO C ++", "SystemC" are showed; or when typing `jsx` "JavaScript React" is displayed. It also serves by putting a point above, eg.: `.h`, `.y`, `.te`, etc.<br />
<br />
### Other changes in this diff:<br />
<br />
* Before, in the classic "Mode" menu, the sections and names of languages ​​were arranged alphabetically according to the original names, not the translated names. Now they are sorted according to the translated names.<br />
* The "Normal" item in the Mode menu is now translated, since nowhere in the code is it translated.<br />
* Before, in the "Highlighting" menu, the section names and the "None" item weren't translated, now they are translated.<br />
* When displaying the classic Mode menu, it uses the traduced names, but it verifies the mode selected by the original names in sections. This means, that in languages ​​other than English, the current Mode isn't showed selected (with the radio icon) in the menu. That is corrected.<br />
<br />
### Tests:<br />
<br />
* The menu was tested on Plasma with KDE Neon with X11 and Wayland.<br />
* When changing Kate's color theme, the menu adapts correctly to the new colors.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20958">https://phabricator.kde.org/D20958</a></div></div><br /><div><strong>To: </strong>nibags, KTextEditor, Kate<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>