coc-explorer icon indicating copy to clipboard operation
coc-explorer copied to clipboard

Image preview or at least opening with external SW?

Open rodhash opened this issue 4 years ago • 8 comments

Hello,

First of all congrats for this awesome tool, can't live without it :+1:

I searched but couldn't find any issue / thread about this question: is there a way to preview images like ranger? Or at least open image files with external SW such as sxiv?

Thanks in advance.

rodhash avatar Nov 01 '20 02:11 rodhash

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Nov 01 '20 02:11 issue-label-bot[bot]

I searched but couldn't find any issue / thread about this question: is there a way to preview images like ranger? Or at least open image files with external SW such as sxiv?

When using the default mapping, press X to open the picture with an external SW, there is no picture preview feature yet

weirongxu avatar Nov 01 '20 14:11 weirongxu

Ok, thank you.

rodhash avatar Nov 01 '20 15:11 rodhash

ops.. I just noticed you added the enhancement label, should I reopen this? Is this something to be added in the future?

rodhash avatar Nov 01 '20 15:11 rodhash

Yes, I will reopen this, but I haven’t found a cross-platform tool to preview the image. Maybe mpv or we can use flutter to write one?

weirongxu avatar Nov 01 '20 15:11 weirongxu

Nice, glad to know this feature will be queued up for enhancement!! Thanks!

Whatever you pick I'm onboard :)

rodhash avatar Nov 01 '20 15:11 rodhash

Hi @weirongxu

I just stumbled upon Viu.


I haven’t found a cross-platform tool

Just a naive Idea in that regard: Maybe It is not necessary to go cross-platform, but instead make it configurable which tool to use.

I would like to contribute, but I never looked into typescript (my node/js skills should be ok)

Artem-Schander avatar Apr 01 '21 13:04 Artem-Schander

@Artem-Schander

I just stumbled upon Viu.

Unfortunately, we can't use the Viu under vim. Because Viu uses the image format of iterm2 or kitty, but vim does not support them.

Just a naive Idea in that regard: Maybe It is not necessary to go cross-platform, but instead make it configurable which tool to use.

Because different tools may cause inconsistent experience. But what you said also makes sense, just most Gui tools can't control the position of the displayed picture very well.

I would like to contribute, but I never looked into typescript (my node/js skills should be ok)

My suggestion is to try to learn typescript, because typescript is easier for maintenance and refactoring

weirongxu avatar Apr 01 '21 14:04 weirongxu