silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.54k stars 185 forks source link

macOS/Emacs key bindings for navigating lists #1006

Closed jackbaty closed 2 months ago

jackbaty commented 3 months ago

On macOS, there are a number of built-in key bindings based on the default Emacs bindings. In particular, CTRL-n and CTRL-p for navigating up and down selection/dropdown lists. I use this everywhere and all the time, but they don’t work in SilverBullet. The arrow keys on my (HHKB) keyboard are inconvenient, so I’d love to use the “normal” bindings.

Is there any way to enable those bindings (CTRL-n / CTRL-p) in SilverBullet for navigating things like the page switcher and command palette?

Thanks.

dchobarkar commented 3 months ago

Hi there,

I would like to work on this issue. Could you please assign it to me?

Thank you! Darshan

zefhemel commented 3 months ago

Of course @dchobarkar

zefhemel commented 3 months ago

@dchobarkar btw, you will want to look at web/components/filter.tsx around line 140

dchobarkar commented 3 months ago

Hi @zefhemel,

I have started working on this issue. I will update you with my progress soon.

Thank you, Darshan