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

About marking files #218

Open
alttabber opened this issue Nov 19, 2024 · 1 comment
Open

About marking files #218

alttabber opened this issue Nov 19, 2024 · 1 comment

Comments

@alttabber
Copy link
Contributor

Some image viewers support marking: select some images, and their path is sent to stdout when the program is closed.

Swayimg was one of those, until the feature in version 1.8, until it was silently remove in 1.11.

Why was it removed? Any chance of ever getting it back?

@artemsen
Copy link
Owner

The implementation of this feature was not done in the best way and interfered with the further development of the project. Sorry, I don't remember all the details =)

You can use the exec action to print the path to standard output or pass it to some script.
Add to the config file a new binding:

[keys.viewer]
Shift+p = exec echo "%"
Ctrl+p = exec myscript.sh "%"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants