Skip to content

Handle ^F, ^B, ^U and ^D readline shortcuts in pager #42

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

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

r-burns
Copy link
Contributor

@r-burns r-burns commented Feb 29, 2024

No description provided.

@@ -178,6 +178,22 @@ pub fn run(args: Args) -> Result<()> {
skip += per_page;
redraw = true;
}
KeyCode::Char('f') if event.modifiers.contains(KeyModifiers::CONTROL) => {

This comment was marked as resolved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seemed simplest this way, unless we want to be able to map ctrl-alt-f to something. Based on some testing with less, ctrl-shift-f seems to also trigger a page down.

@encounter
Copy link
Owner

Thanks!

@encounter encounter merged commit 2834860 into encounter:cli Feb 29, 2024
@r-burns r-burns deleted the pager-readline branch February 29, 2024 02:41
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

Successfully merging this pull request may close these issues.

3 participants