Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End and pos1 key #36

Closed
mbndr opened this issue Apr 19, 2016 · 6 comments
Closed

End and pos1 key #36

mbndr opened this issue Apr 19, 2016 · 6 comments

Comments

@mbndr
Copy link

mbndr commented Apr 19, 2016

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)

@ThomasWeiser
Copy link

Strongly prefer start/end of line.

@zyedidia
Copy link
Owner

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.

@mbndr
Copy link
Author

mbndr commented Apr 20, 2016

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.

@zyedidia
Copy link
Owner

zyedidia commented Apr 24, 2016

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.

@mbndr
Copy link
Author

mbndr commented Apr 24, 2016

Nice, love it :)

@zyedidia
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants