lfimg icon indicating copy to clipboard operation
lfimg copied to clipboard

[help] supress verbose when open file by external program

Open roachsinai opened this issue 5 years ago • 5 comments

Thanks for repo! It helps a lot.

My problem is when use the map o open a file like a xml file, there will be a text line in the bottom of lf windown: Opening in existing browser session.

Could you supress it directly or add a optional?

roachsinai avatar Feb 07 '21 16:02 roachsinai

I can't reproduce this. XML files open in an editor for me. The output that you saw suggests that a web browser is being used to open the file, so I tried opening an HTML file, and I still can't reproduce it.

neeshy avatar Feb 08 '21 22:02 neeshy

Hi @neeshy are you using Firefox? Today I found verbose shows only when open file by chrome, no verbose if firefox was used.

roachsinai avatar Mar 03 '21 16:03 roachsinai

Yes, I was using firefox. I switched to chromium and still can't reproduce what you're seeing. Check your lfrc. It sounds like you've set the opener to be invoked with ! which directs lf to pipe the stdout of the opener to the bottom of the window.

neeshy avatar Mar 21 '21 17:03 neeshy

Thanks for your suggestion, I'm so sorry for the late reply as not at home.

My lfrc only have below settings:

set previewer ~/.config/lf/pv
set cleaner ~/.config/lf/cls

# define a custom 'open' command
cmd open $$OPENER $fx
cmd open-choose $OPENER_CHOOSE="true" $OPENER $fx
# dedicated keys for file opener actions
map o open
map O open-choose
# default is zh
map . set hidden!

I run ./lfimg directly and can reproduce it.

roachsinai avatar Mar 27 '21 12:03 roachsinai

And if I open chrome in terminal by google-chrome-stable also got that verbose.

roachsinai avatar Mar 27 '21 12:03 roachsinai