Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pushp1997/f906807e6058f94701500d02169bf053 to your computer and use it in GitHub Desktop.
Save pushp1997/f906807e6058f94701500d02169bf053 to your computer and use it in GitHub Desktop.
How to "Open Containing Folder" with ranger?
cp /usr/share/applications/ranger.desktop ~/.local/share/applications/ranger.desktop

nvim ~/.local/share/applications/ranger.desktop

Change these parameters to the respective values

Terminal=false
Exec=alacritty -e ranger

Then, make sure you have ranger.desktop as your default for inode/directory using xdg-mime.

xdg-mime default ranger.desktop inode/directory

Lastly! run:

update-desktop-database ~/.local/share/applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment