Allow editing a directory in file view
Author: EliasA5Created Sep 25, 2026Updated Sep 25, 2026
Labelsenhancement
Is your feature request related to a problem? Please describe.
When hitting 'e' in files view to edit a directory, we get an error, although most editors today support opening a directory, for example netrw/oil in neo/vim
Describe the solution you'd like
When trying to edit a dir, it should open it in the editor defined in editPreset
Describe alternatives you've considered
What im doing today is editing a file under the directory and then going to directory view, but this is not ideal if the file is large or its a binary file as it will take time to open it
Additional context
Draft PR that implements the feature: https://github.com/jesseduffield/lazygit/pull/6057
Source: jesseduffield/lazygit