helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.49k stars 2.48k forks source link

Keymapping "page_{up,down}" and "half_page_{up,down}" doesn't work #5981

Closed litchipi closed 1 year ago

litchipi commented 1 year ago

Summary

When setting some keys to trigger the commands page_up, page_down, half_page_up or half_page_down, it doesn't perform any action in the editor, feels like a no_op.

Reproduction Steps

Tested on helix 22.12 and a compiled version from commit 0a7c697dd785111626c8f47a36e07381f55c2e83.

A minimal config to reproduce the bug:

[keys.normal]
q = "page_up"
w = "half_page_up"
e = "page_down"
r = "half_page_down"

page_up and page_down works on the latest master (commit 0a7c697dd785111626c8f47a36e07381f55c2e83) but not on 22.12

half_page_up and half_page_down doesn't work on both of the versions.

Helix log

The logfile isn't really informative

~/.cache/helix/helix.log ``` 2023-02-14T10:26:32.470 helix_loader [DEBUG] Located configuration folders: ["/home/john/work/sources/helix/.helix"] 2023-02-14T10:26:32.477 helix_view::clipboard [DEBUG] Using tmux to interact with the system clipboard 2023-02-14T10:26:32.479 helix_view::editor [ERROR] Failed to initialize the LSP for `source.rust` { cannot find binary path } 2023-02-14T10:26:32.479 helix_view::editor [DEBUG] editor status: Loaded 1 file. 2023-02-14T10:26:32.479 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE 2023-02-14T10:26:32.479 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE | WRITABLE 2023-02-14T10:26:32.479 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE 2023-02-14T10:26:32.479 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE 2023-02-14T10:26:32.479 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:32.878 helix_term::application [DEBUG] received editor event: IdleTimer 2023-02-14T10:26:41.462 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:41.862 helix_term::application [DEBUG] received editor event: IdleTimer 2023-02-14T10:26:41.946 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:42.305 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:42.706 helix_term::application [DEBUG] received editor event: IdleTimer 2023-02-14T10:26:42.726 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:42.973 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:43.202 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:43.602 helix_term::application [DEBUG] received editor event: IdleTimer 2023-02-14T10:26:43.777 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:44.074 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:44.290 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:44.553 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:44.749 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:44.965 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0 2023-02-14T10:26:45.368 helix_term::application [DEBUG] received editor event: IdleTimer ```

Platform

Linux

Terminal Emulator

Alacritty

Helix Version

22.12 and master (commit 0a7c697dd785111626c8f47a36e07381f55c2e83)

litchipi commented 1 year ago

On the latest master: