Improve keyboard navigation: uppercase Q quit and more-style paging - #215
Improve keyboard navigation: uppercase Q quit and more-style paging#215can2049 wants to merge 2 commits into
Conversation
31e7f12 to
9693f50
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
9693f50 to
2d20faa
Compare
|
Hi, thanks for your PR! |
|
Yes — with a Chinese IME, switching to type lowercase |
|
Hi, I preserved you as the author and signed the commit with my GPG key, since GPG signing is required before merging into the If you'd like to learn more about GPG commit signing, you can find the documentation here: Thanks again for your interest in leaf and for your contribution! |
Summary
Qas well as lowercaseqto quit reading modeCtrl+Qconsistent withCtrl+qfor opening the fuzzy file pickermore-style paging:Spacepages down,bpages up (same step asd/u/ PgDn/PgUp)q/Q quit,u/d spc/b)Motivation
Q: With a Chinese IME, switching to type lowercasequsually means leaving Chinese input first. With Caps Lock on, pressingQexits without changing the input method.bpaging: Matches familiarmore/lesshabits so one-handed paging is easier while reading.Test plan
cargo build(orcargo run -- README.md)q— app exitsQ(or Caps Lock + Q) — app exitsSpace— page down (~20 lines)b— page up (~20 lines)?) showsq/Q quitandu/d spc/bq/Q quitq/Q,Space, andbCtrl+q/Ctrl+Qstill open the fuzzy file picker