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

Allow mapping C-e as a regular keybinding #281

Open
freeo opened this issue Jan 17, 2025 · 1 comment
Open

Allow mapping C-e as a regular keybinding #281

freeo opened this issue Jan 17, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@freeo
Copy link

freeo commented Jan 17, 2025

Description
Tried to map a function to ctrl-e - it doesn't work.
Tried both scroll_preview_half_page_down and select_next_page so I suppose it must be something with ctrl-e itself.

tried it on alacritty, kitty, ghostty
tried zsh and bash

Example
config.toml:

[keybindings.Channel]
scroll_preview_half_page_down = "ctrl-e" # doesn't work
scroll_preview_half_page_up = "ctrl-y"

Common vim bindings, ctrl-e is important...

Expected behavior
expected the preview to scroll down

Actual behavior
nothing

Environment
OS: arch linux

television 0.9.2
target triple: x86_64-unknown-linux-gnu
build: 1.83.0 (2025-01-10)

Additional context
Thank you!

@freeo freeo added the bug Something isn't working label Jan 17, 2025
@alexpasmantier
Copy link
Owner

C-e is indeed a special keymap which sends you to the end of the input buffer line (same as in any standard terminal).

The default vim keybindings to scroll half a page up / down should be C-u / C-d which are the defaults in television.

Because it has that special meaning, I don't plan to support remapping C-e for now but will definitely keep this as an improvement for later, thanks!

@alexpasmantier alexpasmantier added enhancement New feature or request and removed bug Something isn't working labels Jan 19, 2025
@alexpasmantier alexpasmantier changed the title Mapping CTRL-E doesn't trigger functions Allow mapping C-e as a regular keybinding Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants