Skip to content

Commit

Permalink
edit_mac.py: omit cmd-left for file_start/file_end (#1057)
Browse files Browse the repository at this point in the history
The default bindings for `edit.file_start` on mac presses `cmd-up
cmd-left` (and `edit.file_end` is `cmd-down cmd-left`). I find this
`cmd-left` to be redundant (at least in TextEdit and in Emacs, `cmd-up`
goes to the start of the document, including the beginning of the line)
and to produce bad behavior in, eg, web browsers, where `cmd-up`
successfully scrolls to the top but then `cmd-left` goes back in
history.
  • Loading branch information
rntz authored Jan 4, 2023
1 parent 1a09fef commit 1f7dbaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/edit/edit_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def extend_word_right():
actions.key("shift-alt-right")

def file_end():
actions.key("cmd-down cmd-left")
actions.key("cmd-down")

def file_start():
actions.key("cmd-up cmd-left")
actions.key("cmd-up")

def find(text: str = None):
actions.key("cmd-f")
Expand Down

0 comments on commit 1f7dbaf

Please sign in to comment.