archlinux-downgrade / downgrade

Downgrade packages in Arch Linux
GNU General Public License v2.0
535 stars 25 forks source link

Fzf menu keymaps #222

Open niksingh710 opened 6 months ago

niksingh710 commented 6 months ago

:question: Questions/Help

Checklist

Environment

Questions/Help

The Fzf menu that pops up, is there any way to change the key mapping to scroll in that menu?

pbrisbin commented 6 months ago

is there any way to change the key mapping to scroll in that menu?

There is no way directly supported by Downgrade. We would have to add that feature.

I don't know if Fzf itself respects any environment variables you could use to adjust its behavior when used from within downgrade. I'm relatively confident it supports a configuration file, but that would affect all uses and not just downgrade, which may or may not be good with you.

niksingh710 commented 6 months ago

@pbrisbin Fzf supports environment variables but not sure if that will work inside downgrade as it supports for it's own specific command like c-t. if downgrade can accept an arg like --fzf-flags="--bind=\"ctrl-n:...\"" so that the user can pass flags to fzf by himself.

pbrisbin commented 5 months ago

Fzf supports environment variables but not sure if that will work inside downgrade

Maybe I'm misunderstanding, but downgrade wouldn't do anything to prevent whatever Fzf is supporting from working. So if FZF_OPTIONS=x fzf ... does something, then FZF_OPTIONS=x downgrade ... should do the same thing.