Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the selected file for live preview to work with a MS Window previewer #959

Closed
jtourlamain opened this issue Apr 22, 2021 · 2 comments
Closed

Comments

@jtourlamain
Copy link

Is your feature request related to a problem? Please describe.

I can't get the live preview to work on WSL2 running on MS Windows.
On windows I use quicklook from https://github.com/QL-Win/QuickLook to preview my files. I would like to do the same from nnn running in WSL2.

Describe the solution you'd like

If a hook is available that provides the file name and path every time the selection changes a bridge script can be executed to preview the file in the quicklook app. A bridge with quicklook exists so you can call a cli command to change the file in the preview window (https://github.com/QL-Win/QuickLook/wiki/Integration-and-Development)
The selected path in nnn can be found in the .lastd file, but I can't find the filename that is currently selected in nnn. If I cat the fifo file. nothing can be seen (I guess I don't understand how it works).

Opening files in MS Windows apps works via a command plugin -_cmd.exe /C start $nnn* but that principle doesn't fit for a live preview.

Alternative:
The live view solutions with tmux works on windows terminal for text files.

@luukvbaal
Copy link
Collaborator

luukvbaal commented Apr 22, 2021

See if #960 works for you. I'm not familiar with QuickLook and I'm not quite sure what's the point of the Bridge.exe but this seems to work fine.

Edit: I guess it's needed for the MS Store version

@jarun
Copy link
Owner

jarun commented Apr 22, 2021

Closed at #960.

@jarun jarun closed this as completed Apr 22, 2021
@jarun jarun mentioned this issue Apr 22, 2021
36 tasks
@jarun jarun mentioned this issue May 19, 2021
50 tasks
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants