Menu

#537 Home/End keys do not behave as expected if Line Wrapping on

open
Interface (176)
5
2012-09-13
2010-08-09
Dmitry Kann
No

If Line Wrapping is switched on, Home and End keys behave completely unexpectedly and contrary to what all other editors (known to me) would do.

When hitting Home or End key, a user would expect that the cursor moves to the beginning or the end of the screen line, accordingly.
Instead, Geany moves cursor to the start or the end of physical line. It makes very little sense, and, what is worse, absolutely uncommon. Alt+End does the right thing for End though.

There is an option for reassigning key bindings, which makes possible to swap End and Alt+End keystrokes, but:
1. It does not affect the way it operates when selecting (with Shift depressed): Shift+End still selects to the end of physical line.
2. There's no option for reassigning Home key.
3. This behaviour is uncommon in general. Every other text editor (Gedit, Notepad, EditPlus, OO.o, MS Word, name it) would do this the other way around.

Would you please reconsider changing this otherwise annoying layout?

Related

Bugs: #1073

Discussion

  • Anonymous

    Anonymous - 2011-05-31

    I'm finding this annoying, too. Ideally, there should be two sets of commands: Go to the beginning/end of visual line, e.g. bound to Home and End by default, and Go to the beginning/end of logical line, e.g. bound to Alt+Home and Alt+End by default.

    Moreover, the Smart home key feature should affect both home commands, as it can apply to both visual and logical lines.

     
  • jclevesque

    jclevesque - 2012-01-18

    I am also being slightly annoyed by this. I find it disturbs me when I use geany to edit LaTeX. When I program C++/Python I usually force line breaks before my lines become too long out of habit so I never get to experience this).

    It should probably be configurable through a checkbox that sets the behavior for Home+End keys altogether (i.e. Home/End go to beginning/end of whole line vs beginning/end of visual line).

     
  • Lex Trotman

    Lex Trotman - 2012-09-13
    • assigned_to: nobody --> colombanw
     

Log in to post a comment.