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
Image Preview vifm #1308
Comments
I dont see anything wrong with the code and running
works as expected. I need some way to reproduce the problem you are having. |
I am not sure I am in the right place to post this, but I tried to do the same.
It seems like the left part of the screen of vifm moves down at every refresh. |
I doubt this has anything to do with icat or kitty. icat --clear simply |
As for the original issue, the problem is that vifm set the stdin of the filviewer program to null instead of the terminal, which breaks icat. I have added a --stdin option to icat to tell it not to try to read images from stding to workaround that. As fo rthe screen moveing after icat, I have no idea, you will need to ask the vifm developers. |
@andpalmier try this
The problem is that icat sends "Detecting..." to stdout which breaks vifm. Setting |
Useful for integration with other tools. See #1308
I have added --silent to icat |
Thanks, now i do not have my Mac anymore, so I cannot test it there. |
Hi @FollieHiyuki, in case it's useful. Have you tried using the From the docs, here:
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ kitty +icat --place %pwx%ph@%pxx%py --silent %c
\ %pc
\ kitty icat --clear --silent %pd |
Thanks @GeorgeHJ that does fix the issue |
Using the exact snippet that @GeorgeHJ gave above , i get this error. Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/bin/../lib/kitty/__main__.py", line 153, in <module>
main()
File "/usr/bin/../lib/kitty/__main__.py", line 144, in main
namespaced(['+', first_arg[1:]] + sys.argv[2:])
File "/usr/bin/../lib/kitty/__main__.py", line 99, in namespaced
func(args[1:])
File "/usr/bin/../lib/kitty/__main__.py", line 13, in icat
rk('icat')
File "/usr/bin/../lib/kitty/kittens/runner.py", line 122, in run_kitten
runpy.run_module('kittens.{}.main'.format(kitten), run_name=run_name)
File "/usr/lib/python3.9/runpy.py", line 213, in run_module
return _run_code(code, {}, init_globals, run_name, mod_spec)
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/bin/../lib/kitty/kittens/icat/main.py", line 583, in <module>
main()
File "/usr/bin/../lib/kitty/kittens/icat/main.py", line 507, in main
sys.stdout = open(os.ctermid(), 'w')
OSError: [Errno 6] No such device or address: '/dev/tty' InfoKitty:
Os: |
Hi, |
Same here. Exact same error running:
|
same issue on macOS edit: vifm/vifm#731 has a fix |
Hi @kovidgoyal, I'm having an issue with previewing images inside vifm using the --place option. I am able to use
kitty +kitten icat filename
without any issue but when i use the place option i get the error "The --place option can only be used with a single image". I have written a few differenct scripts attempting to address the issue i am certain that only one filename is being passed. My solution was to comment out the if statement in the icat kitten and now image preview works as expected.https://github.com/kovidgoyal/kitty/blob/master/kittens/icat/main.py#L309
Thank you for your efforts with this great terminal emulator :)
The text was updated successfully, but these errors were encountered: