Skip to content

Feature request - Add an option to execute commands sequentially (when more than one file selected) #85

Description

@brunetton

Hi

Thank you for this great project. I'm using it a lot with enthusiasm !

Description

I miss a "little" thing: when applying a command to multiple files, I'd sometimes like those commands to be executed sequentially.

Example:

		{
			"type": "command",
			"label": "🎥 Recompress to h264",
			"command_line": "ffmpeg -i %f -c:v libx264 -crf 23 -c:a copy %w-h24.%x",
			"use_shell": true,
			"cwd": "%d",
			"mimetypes": ["video/*"]
		},

This is potentially a very long process. I'd like to have only one ffpmeg process at a time in memory.

Workarounds I've considered

  • I could use a loop, something like for f in %F; do ... but
    • it's less readable (plus I'll have to use shell to extract %w and %x from $f that is not super intuitive)
    • less maintainable

What do you think of that ?

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions