Skip to content

Bind another keys for up/down navigation in file picker#89

Merged
RivoLink merged 1 commit into
RivoLink:mainfrom
soomtong:keybinding
May 11, 2026
Merged

Bind another keys for up/down navigation in file picker#89
RivoLink merged 1 commit into
RivoLink:mainfrom
soomtong:keybinding

Conversation

@soomtong
Copy link
Copy Markdown
Contributor

@soomtong soomtong commented May 6, 2026

HHKB keyboard users like me prefer to navigate using methods other than the arrow keys.
Having used terminal user interface applications for many years, I believe this approach is a more common way to use such programs.
Thank you for creating such a great application.
It’s okay if you reject this PR.

@RivoLink
Copy link
Copy Markdown
Owner

RivoLink commented May 6, 2026

Hi @soomtong
Thanks for your interest and PR.

Ctrl+P is already used to open/close the fuzzy picker, so using it for something else might be confusing.
For navigating the file browser, you already have the hidden shortcuts j/k for up/down.

Is that ok for you?

@soomtong
Copy link
Copy Markdown
Contributor Author

soomtong commented May 7, 2026

Oh, sorry. I wasn't able to use the j/k keys in the table navigation. I'll check again with the latest version! Of course, if j/k navigation works, this PR isn't necessary (obviously!).

@soomtong
Copy link
Copy Markdown
Contributor Author

soomtong commented May 7, 2026

This is the process of launching an application and searching for a file.

image

Since j/k trigger fuzzy search, they can’t function like arrow keys. That’s why people usually use Ctrl+N/P.

image

I am aware that Ctrl+P opens the file finder modal. I think the Esc key is sufficient for closing the modal.
If a compromise is possible, would it be feasible to provide Ctrl+J/K?

@soomtong soomtong changed the title Bind ctrl+p/n for up/down navigation in file picker Bind another keys for up/down navigation in file picker May 7, 2026
@soomtong soomtong force-pushed the keybinding branch 2 times, most recently from dbbfb9e to f7b2817 Compare May 9, 2026 10:09
@soomtong soomtong marked this pull request as draft May 9, 2026 10:10
@soomtong soomtong marked this pull request as ready for review May 9, 2026 10:16
@soomtong soomtong marked this pull request as draft May 9, 2026 14:06
@soomtong soomtong force-pushed the keybinding branch 2 times, most recently from 87705c9 to 38d0f9f Compare May 9, 2026 14:19
@soomtong soomtong marked this pull request as ready for review May 9, 2026 14:19
Comment thread src/render/popup.rs Outdated
Comment thread src/runtime/keyboard.rs
@RivoLink
Copy link
Copy Markdown
Owner

RivoLink commented May 9, 2026

Hi @soomtong
Thanks for your update, sorry for my delay.

I have a few suggestions:

  • I did a review; could you apply them?
  • Could you rebase from main and amend your updates into a single commit?
  • The main branch only accepts signed commits, so if you can, I’d appreciate it if you signed the commit. If not, no worries, I’ll sign it myself while preserving you as the author.

GPG signing docs: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

Thanks again for your patience.

@soomtong soomtong force-pushed the keybinding branch 2 times, most recently from dbd1251 to 32ecf32 Compare May 9, 2026 23:52
@soomtong
Copy link
Copy Markdown
Contributor Author

soomtong commented May 9, 2026

No problem. Thank you for giving me the opportunity to contribute. Please review this one more time.

@RivoLink
Copy link
Copy Markdown
Owner

Thank you too 🙂
Just run cargo fmt and amend the commit, then it will be perfect.

@soomtong soomtong marked this pull request as draft May 11, 2026 00:54
@RivoLink
Copy link
Copy Markdown
Owner

Perfect 💚
Thank you so much.

@RivoLink RivoLink marked this pull request as ready for review May 11, 2026 02:51
@RivoLink RivoLink merged commit abcde26 into RivoLink:main May 11, 2026
1 check passed
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.

2 participants