Hello everyone.<div><br></div><div>In my daily work, I often have to work with 2 encodings exclusively: utf8 and cp 1251 (also known as windows-1251). Both these encodings are very popular in Bulgaria, where I am from.</div>

<div><br></div><div>I love using konsole, but the current mechanism for switching the current encoding through the main menu or the popup context menu, became somewhat cumbersome for me - sometimes I have to use it more than 3 times per 5 minutes, and both UTF-8 and cp 1251 are not easy to be selected quickly using the default Encoding selector widget in KDE.</div>

<div><br></div><div>Today, I've finally decided to bite the bullet, and dive into the konsole's source. The result looks like this:</div><div>( <a href="https://github.com/spytheman/konsole/wiki">https://github.com/spytheman/konsole/wiki</a> )</div>

<div><img src="http://pozdravi.net/proposal_for_konsole_context_menu_quick_encoding_switching_01.png" alt="proposal_for_konsole_context_menu_quick_encoding_switching_01.png" title="proposal_for_konsole_context_menu_quick_encoding_switching_01.png"></div>

<div><br></div><div>I suspect that as it is, it is not very suitable for generic usage (since it requires code changes and recompiling in order to change the shown encodings, and I highly doubt that everyone has my preferences for them). However, it is a start, and I would be happy to discuss how it can be generalized... Possibly a second 'default2' encoding can be added to the Advanced tab of the profile editor, and then the popup menu would offer the 2 defaults with their names, instead of the hardcoded windows-1251 and utf8 ???</div>

<div><br></div><div><div>I'm new to KDE development and Konsole in particular, so instead of sending patches as described here: <a href="http://techbase.kde.org/Development/Tutorials/Git/Create_a_patch">http://techbase.kde.org/Development/Tutorials/Git/Create_a_patch</a> , I've created a forked version on github.</div>

<div>Here are the changes so far: <a href="https://github.com/spytheman/konsole/compare/master...quickly_switch_encoding_in_popupmenu">https://github.com/spytheman/konsole/compare/master...quickly_switch_encoding_in_popupmenu</a></div>

</div><div><br></div><div>I'm looking forward to your suggestions, comments, flames :-)</div><div>Delian Angelov</div>