Micro: End and pos1 key

Created on 19 Apr 2016  路  6Comments  路  Source: zyedidia/micro

Should the end key show the end of the file or get the cursor to the end of the line?
I know from some other editors the second (and with ctrl+end cursor the the end of the file).
Maybe it's a feature, I don't know :)

(Same for the pos1 key)

Most helpful comment

Strongly prefer start/end of _line_.

All 6 comments

Strongly prefer start/end of _line_.

I thought the expected behavior of end and home would be to go to the end and beginning of the file respectively, without moving the cursor. I think this is the behavior in text edit. If this is not the standard in other editors, I will change it.

I'm pretty sure the end key jumps to the end of the line and ctrl+end jumps to the end of the file. If there are different opinions about that, maybe a custom keybindings file would be perfect (see sublime text). I dont't really know what's possible with the library you're using, but it's just an idea.

You can now rebind the home and end keys if you'd like. To do this put the following in your ~/.config/micro/bindings.json file:

{
    "Home": "StartOfLine",
    "End":  "EndOfLine"
}

For now, I'm going to keep the defaults the way they are.

Nice, love it :)

See #74 which has been merged, the defaults have changed. I'll update the readme soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ns-cweber picture ns-cweber  路  4Comments

aerth picture aerth  路  4Comments

DoTheEvo picture DoTheEvo  路  3Comments

zanglebert picture zanglebert  路  4Comments

Calinou picture Calinou  路  3Comments