-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Feature Reuqest] Customize the open action #14
Comments
I understand you're talking about arbitrary actions but I think it's worth noting that deletion (for individual images only) is already implemented but just not in the image grid view primarily because the required underlying infrastructure is not yet in place. I'm willing to work on it (deletion in the grid view) though but won't be in the next release, as I don't want to delay things any further. 😁
I suppose you intend to pipe the output to another command or substitute it as an argument. There's one major flaw with this approach and it's that Another approach is copying to clipboard (file/directory name or path, image data, etc), which is already planned. What do you think about this? Yet another is an "Open With..." dialog, where the user can type in a command with arguments and possibly placeholders for things like file/directory name/path, etc. This isn't planned yet and I haven't thought too far about it but it seems promising. What are your thoughts on this? Whichever way this ends up going, please note that it's highly unlikely to make it into the next release. Thank you. 😃 |
What I mean is that after pressing an action similar to quit, clear the tui first, then print the path of the selected image, and then quit |
So termvisage can act like a File Picker?
|
2024-05-01.18-14-34.mp4like this I noticed that many people reacted to many tui file managers, such as ranger,yazi, and joshuto, which cannot select images according to the preview image, so I wanted to make a plugin to support the selection of image files in the preview view |
terminal_filepicker_firefox.mp4I use yazi as a filepicker and can select multiple files (pictures included). But selecting files (pictures) in thumbnail mode would also be awesome. |
How did you bind yazi as the default application on github attach file? |
fpicker.txt You have to make sure that
|
Unfortunately, I'm using chrome |
it seems it also works on chrome :) chromium-2024-05-01_15.48.21.mp4 |
Hmm 🤔... I see. It's definitely possible to get this done. The way I see it, based on the current design of the viewer, a new PICKER mode might have to be added, which would basically be a slight variation of the existing TUI mode enabled via a Also, it'll be good to implement item selection before or alongside which would also lay the foundation for #3. I'll put some more thought to it and get back to you as soon as I have something concrete enough for implementation. Thank you very much. 🙏 |
Currently, this tool can provide the ability to view images on the terminal, but it does not support the follow-up action after finding the desired image.
For example, if I find this image, I want to open it with some other tool, delete it, set it as a wallpaper, etc.
It is not necessary for the tool to do these specific actions, but if a key is pressed after selecting an image to exit the current tui and output the path of the selected image, then other tools can read the path and do subsequent things.
The text was updated successfully, but these errors were encountered: