Skip to content

Shell based file opener using mimetypes as well as file extension. This does not depend on desktop files.

License

Notifications You must be signed in to change notification settings

Docbroke/opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

EDIT: Opener is now part of shell-tools https://github.com/Docbroke/shell_tools All updates will appear there.

opener

Shell based file opener using mimetypes as well as file extension inspired from dylanaraps/fff#101. This does not depend on desktop files.

How to use:

open $file

opener $file

This will give available options to open file with. To open file with default association instead use

opener -d $file

search file using fzf and open

opener "$(find . -type f | fzf --border --reverse --height 10 --prompt "Open File : ")"

This can be a function in .bashrc

of() { 
opener "$(find . -type f | fzf --border --reverse --height 10 --prompt "Open File : ")" 
}

How to configure: find the mimetype of file using

file -bi $file
mimetype -b $file

and add the mimetype with commands to open it in opener.

Here is video to show my workflow using run, opener and w3m-dmenu scripts. https://youtu.be/e5Lutp0dWTk

About

Shell based file opener using mimetypes as well as file extension. This does not depend on desktop files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages