
superfile
Table of Contents
superfile
Site link: https://superfile.netlify.app/
Overview: https://superfile.netlify.app/overview/
Installation:
bash -c "$(curl -sLo- https://superfile.netlify.app/install.sh)"
More installations.
Start superfile
After completing the installation, you can restart the terminal (if necessary).
Run spf to start superfile
Terminal window
spf
### Panel navigation
Once superfile is running, it displays five panels:
- sidebar
- file
- processes
- metadata
- clipboard
- command execution bar
The file panel is the focused view by default. You can change focus onto three other panels.
Press s
to focus on the sidebar.
Press p
to focus on the processes.
Press m
to focus on the metadata.
Press :
to open command execution bar.
To return focus back onto the file panel, press the same hotkey again.
For command execution bar you need press
esc
orctrl+c
You can also press f
to show or hide the preview window.
Also press F
to hide or show all footer panel.
Pinning directories:
Just navigate inside the directory and press [shift + e] E
The directory will be pinned to Pinned section.
cd on quit
# Cd on quit (For more details, please check out https://superfile.netlify.app/configure/superfile-config/#cd_on_quit)
cd_on_quit = true
You need to paste
spf() {
os=$(uname -s)
# Linux
if [[ "$os" == "Linux" ]]; then
export SPF_LAST_DIR="${XDG_STATE_HOME:-$HOME/.local/state}/superfile/lastdir"
fi
# macOS
if [[ "$os" == "Darwin" ]]; then
export SPF_LAST_DIR="$HOME/Library/Application Support/superfile/lastdir"
fi
command spf "$@"
[ ! -f "$SPF_LAST_DIR" ] || {
. "$SPF_LAST_DIR"
rm -f -- "$SPF_LAST_DIR" > /dev/null
}
}
inside .bashrc
This will cd to the last directory you were in.