feat: add a hotkey to toggle the sidebar
Author: felipecpaivaCreated Oct 1, 2026Updated Oct 1, 2026
Right now the sidebar can only be hidden by setting sidebar_width = 0 and restarting. #1636 was closed for that reason, and I agree that option should stay.
I would like a hotkey that shows and hides the sidebar while superfile runs, like toggle_footer (F) and toggle_file_preview_panel (f).
What I plan, mirroring toggle_footer:
- New hotkey
toggle_sidebar. DefaultS, vimctrl+b. - The state is saved in the data dir and restored at startup.
sidebar_width = 0always wins. The toggle does nothing in that case.- Hiding the sidebar while it has focus moves focus to the file panel.
I have a working branch with tests and docs. Are S and ctrl+b fine, or do you prefer other keys?
Source: yorukot/superfile