Skip to content

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

Merged
encounter merged 1 commit intoencounter:clifrom
r-burns:pager-readline
Feb 29, 2024
Merged

Handle ^F, ^B, ^U and ^D readline shortcuts in pager#42
encounter merged 1 commit intoencounter:clifrom
r-burns:pager-readline

Conversation

@r-burns
Copy link
Copy Markdown
Contributor

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

No description provided.

skip += per_page;
redraw = true;
}
KeyCode::Char('f') if event.modifiers.contains(KeyModifiers::CONTROL) => {

This comment was marked as resolved.

Copy link
Copy Markdown
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
Copy Markdown
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