gokcehan / lf

Terminal file manager
MIT License
7.79k stars 331 forks source link

cannot open file with typora #1695

Closed newyorkthink closed 5 months ago

newyorkthink commented 7 months ago

i want to open markdown file with typora when i selected the .md item

i config all about .md file , it not work image not working to open markdown with typora

DusanLesan commented 7 months ago

Are you selecting multiple files to open? $fx file list is separated with \n by default and that probably would not work. If you are selecting only one file, can you try to remove error redirection to see if the app used showed some errors

newyorkthink commented 7 months ago

Are you selecting multiple files to open? $fx file list is separated with \n by default and that probably would not work. If you are selecting only one file, can you try to remove error redirection to see if the app used showed some errors

i just only select one item

DusanLesan commented 7 months ago

And you are sure one of those mime types matches markdown? If you set text/* in the first case (only as a test), does it open? Did you see any errors without error redirection?

newyorkthink commented 7 months ago

And you are sure one of those mime types matches markdown? If you set text/* in the first case (only as a test), does it open? Did you see any errors without error redirection?

If i set text/* in the first, the csv cannot open with moderncsv, and cannot only with typora, the will all redirect using nvim

DusanLesan commented 7 months ago

I meant to use text/* only as a temporary test. To eliminate type as a issue. Did that open the markdown in that app? Have you tried removing error redirection? Did you try to see if file command returns expected output?

joelim-work commented 5 months ago

I tried running file --mime-type on a Markdown file and got text/plain. Since file can't distinguish between Markdown files and other types of text files based on the content, you should check for an extension of .md instead.