microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.86k stars 6.58k forks source link

Add `Ctrl + n/p` shortcut in PowerToys run #18893

Open TisnKu opened 2 years ago

TisnKu commented 2 years ago

Description of the new feature / enhancement

Add shortcut support to navigate up and down. Ctrl + n/p is widely used in the picker of many softwares such as alfred or Vim or VSCode.

Now I am using a work around to remap Ctrl + n/p in keyboard manager.. Hope this can be supported natively. image

Scenario when this would be used?

When I type something in PowerToys Run, there is a candidate list to select.

Supporting information

No response

Jay-o-Way commented 2 years ago

I'm just curious why one would use two keys in stead of one. Isn't that more difficult?

TisnKu commented 2 years ago

I'm just curious why one would use two keys in stead of one. Isn't that more difficult?

To press arrow key, one need to move hand out of main keyboard area, which is uncomfortable for many keyboard only users. Another example, some people will find Esc too far away in Vim and remap it to other keys, while in the early days, Esc is in the position of Tab.

shogerr commented 2 years ago

This is a needed feature to

I'm just curious why one would use two keys in stead of one. Isn't that more difficult?

If you have a list of 100+ items, it's ideal to be able to step backwards instead of relying on wrapping at the end of a list.

And I'm here looking to see if such a feature exists. Adding these keybindings will help this product be significantly more desirable. Maybe there is already a hacky way to implement it?

Jay-o-Way commented 2 years ago

Maybe there is already a hacky way to implement it?

What about Keyboard manager (or any other key-remapper) to target PT Run? 💡🤓

shogerr commented 2 years ago

Maybe there is already a hacky way to implement it?

What about Keyboard manager (or any other key-remapper) to target PT Run? 💡🤓

That worked really well, and was an elegant solution/suggestion -- thanks! 🐣🧐

Clipped the ctrl+{j,k,n,p} map.

The process name, at this time, is PowerToys.PowerLauncher.exe.

image

@TisnKu Give it a shot, see what you think : )