icat (image preview) #723
Meaticus22
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Description
I am attempting to create a custom plugin for xplr that integrates with icat (a command-line tool for displaying images in the terminal). Despite my efforts, I am encountering issues with key mapping and process execution. Specifically, when I press the designated key (i) to view an image, I receive a warning stating "key map not found." Additionally, I previously encountered an error with the process exiting with code 127, indicating that the command was not found.
Current Configuration
Below is the current state of my init.lua configuration file for xplr:
Additional Context
I have created a shell script named view_image.sh to handle the image viewing process. The script is located in the ~/.config/xplr directory and is designed to ensure that kitten (the command-line tool that includes icat) is in the PATH and then execute kitten icat to display the image.
Here is the content of the view_image.sh script:
I am seeking assistance to resolve the issues with key mapping and process execution. Specifically, I need help to ensure that the key binding is correctly configured and that the shell script is executed without errors. Any guidance or suggestions on how to improve the integration of icat with xplr would be greatly appreciated.
Thank you for your time and consideration.
Beta Was this translation helpful? Give feedback.
All reactions