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

MONTAGE : List of marked files not passed to command in new terminal #240

Open
youpilai opened this issue Jun 1, 2024 · 2 comments
Open

Comments

@youpilai
Copy link

youpilai commented Jun 1, 2024

Hi,

I tried to set a key binding to rename multiples files from montage mode.
I'd like to use mmv to that purpose, so i thought i needed to execute a command in a new terminal to do that (mmv is using $EDITOR, in my case Kakoune)
so i tried :

@montage {
rn { command(-foot mmv)
rm {command(-foot sh -c "mmv")
}

but it seems that the parameters (list of marked files) are not passed to mmv...
I tried all kind of syntax combination around these two with no luck

Note : "rn { command(foot mmv $1)" is working, but in montage mode "$1" is the image from where the montage mode was launched, not the current highlighted image (but it's another subject)

Is there a way to make it working ?
Thanks

@phillipberndt
Copy link
Owner

With - the list is sent to the standard input of the command, iirc, so try prepending xargs

@youpilai
Copy link
Author

youpilai commented Jun 1, 2024

Nice, it worked ;)
Thanks for the quick reply

Is there a way to refresh the montage mode after that ?
with the option "watch-directories=1", i have both old named images and new named images in the montage.
i tried to add "montage_mode_return_proceed();montage_mode_enter()" and it's not working, but if done manually it works (exit montage, enter montage)

(without the option "watch-directories=1", the renamed images disappear from the montage, as expected)

Anyway, thanks again

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