lf: edit files and enter directories with enter

· Thiago Perrotta · Sept. 16, 2026, 3:09 p.m.
Summary
The post discusses how to customize keybindings in the 'lf' file manager to allow the <Enter> key to edit files in an editor without interfering with directory navigation. The author provides a detailed explanation of the initial issue, the shortcomings of the default command, and the solution they implemented, which selects the appropriate action based on whether the item is a file or a directory. The complete configuration is shared for those interested in the setup.
AUTHOR