A mouse-friendly file explorer and viewer for Rex, the terminal multiplexer by Superlogical.
Press Cmd+Shift+E. A sidebar opens in the current directory. Click a file to
preview it next to the sidebar.
Install Rex first by following the Rex installation guide. Then run:
curl -fsSL https://raw.githubusercontent.com/geminixiang/rex-sidecar/main/install.sh | shThe installer uses Homebrew to add yazi, neovim, and jq if they are missing.
Run the same command again to update.
Press Cmd+Shift+E in a Rex terminal to open the sidecar. It is also in
the command palette as Sidecar: File Explorer.
- Click a folder to open it.
- Click a file to preview it.
- Click the
‹ pathheader to go up a level. - Right-click a file to focus the viewer.
- Files show git status markers.
Add options to the setup call in ~/.config/rex/init.lua. For example, key
changes the shortcut:
require("rex-sidecar").setup{ key = "cmd+shift+e", sidebar_ratio = 0.2, viewer_ratio = 70 }sh ~/.config/rex/rex-sidecar/uninstall.shThanks to Superlogical for building Rex, a great terminal multiplexer. Its Lua config and open API made this project possible.
rex-sidecar is a community project. Superlogical does not maintain or endorse it.
MIT