lf icon indicating copy to clipboard operation
lf copied to clipboard

FR: Command to list current keybindings

Open ilyagr opened this issue 3 years ago • 1 comments

I would like there to be a :keys command that lists all the current keybindings.

At a glance, it looks like this wouldn't be too hard for me to do (if/once I get around to it). I would probably output the result of listBinds to a temporary file and then pass it to $PAGER. Does that sound good to you?

P.S. This would be further improved by https://github.com/gokcehan/lf/issues/536, but I don't think I'm up to solving that.

ilyagr avatar Aug 24 '22 00:08 ilyagr

I upgraded this to a pull request (https://github.com/gokcehan/lf/pull/918). I find myself using :keys quite a bit.

ilyagr avatar Aug 27 '22 20:08 ilyagr

There doesn't seem to be a consensus that this is a good feature for lf core. See the linked PR for a discussion and some suggested workarounds.

Feel free to use the code from the PR to patch your version of lf; it works fine, and compiling a Go program is a breeze. I might create a "Patches" section in the wiki with this feature if I figure out an easy way of distributing updates to a closed PRs to users.

ilyagr avatar Dec 11 '22 01:12 ilyagr