News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Annoying home/end editor behavior on wrapped text

Started by dmoore, July 26, 2007, 04:12:43 PM

Previous topic - Next topic

dmoore

@dje: I've added your requested matching brace behavior to the patch (#2116): http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2116&group_id=5358
because bookmarks already use ctrl+b, i made ctrl+. and ctrl+shift+. the default keys to goto and select to matching brace respectively, but I have no personal attachment to this key combo and maybe someone can think of a better default (ctrl+e and ctrl+shift+e are available). also note that i modified the behavior of matching brace slightly to move inside (or outside) the matching brace if your original position was inside (outside) the original brace (this is also true for extending the selection)

@thomas: keep in mind that the home/end change only has any effect if the text is wordwrapped and, in that case, it is a feature enhancement. pressing end (home) goes to the wrap point. if already at the wrap point (i.e. if you press the key a second time), pressing end (home) goes to the end (starting indent) of the entire line. alt+end and alt+home will always goto the end of the entire line or first indent of the entire line, respectively (and thus follow the typical convention that modified keys have an incrementally larger effect). As someone who uses the CB editor as a C/C++ editor, a scripting editor, a latex editor and xml editor I can assure you this is more usable than the current behavior.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dje

Hi Damien !

Thanks !!  :D
I'll try it this week and hope it will be applied.

Dje