LukeSmithxyz / voidrice

My dotfiles (deployed by LARBS)
GNU General Public License v3.0
4.27k stars 1.21k forks source link

`map o &mimeopen "$f"` in `lfrc` #1289

Closed lyh970817 closed 1 year ago

lyh970817 commented 1 year ago

I'm curious what map o &mimeopen "$f" in lfrc does? I understand it as executing mimeiopen in the background but that doesn't seem to have an effect in lf.

yaaama commented 1 year ago

AFAIK it opens a file using the program specified by your mime configuration, you can find this configuration file in ~/.local/share/ or ~/.config/...~, it should be called something like "mimeapps.list"

lyh970817 commented 1 year ago

Thanks so much! I guess I was confused because I tried to use it on files which I did not set up mime program for, in which case it opens a program selection menu in the background.