bassmanitram / actions-for-nautilus

An extension to the Gnome "Files" file manager that allows you to add arbitrary actions to the file selection context menu.
Apache License 2.0
165 stars 16 forks source link

Does not work with commands that use placeholders #62

Open ldealmei opened 5 months ago

ldealmei commented 5 months ago

First, many thanks for keeping this project alive. It's a key part of my professional workflow!

I am trying to add the following command (as I would write in a terminal):

pdfseparate myfile.pdf %d-myfile.pdf

which creates 0-myfile.pdf, 1-myfile.pdf, ... for each page of the original file.

As you can see pdfseparate requires %d to execute otherwise it fails and complains : must contain '%d' (or any variant respecting printf format) if more than one page should be extracted, in order to print the page number

I'm looking for a way to run this in actions-for-nautilus. pdfseparate %F %d-myfile.pdf does not work because both %F and %d are changed.

I have not managed to write this command in actions-for-nautilus that makes it run successfully.

I need to be able to use %F as a placeholder but keep %d as is. How can I escape a specific part of the command?