flut-renamer icon indicating copy to clipboard operation
flut-renamer copied to clipboard

Accept file paths from CLI arguments

Open gudvinr opened this issue 10 months ago • 4 comments

Now, if you pass any CLI argument, they simply get ignored.
Thus, you can't integrate flut-renamer to existing desktop environments because you can only open an app and then open files from it.

To make it usable as utility (e.g. in file managers) it should be possible to launch an app with file locations passed as CLI arguments, like flut-renamer file1 file2 file3 etc.

gudvinr avatar Apr 07 '24 11:04 gudvinr

It's possible because the dart language can accept command line parameters. While it can be a bit difficult to integrate them into the file manager's context menu. And I don't think this operation will be more easy than drag-and-drop.

sun-jiao avatar Apr 08 '24 02:04 sun-jiao

I created this issue for CLI arguments specifically. Integration into different environments would be more involved so I didn't plan to cover it here.

But for future reference, if you're interested:

However, both methods still need to be able to pass arguments to an app.

gudvinr avatar Apr 08 '24 05:04 gudvinr

OK 👌, thanks for your detailed explanation. Do you mean using flut-renamer file1 file2 file3 etc to open the app with file1 file2 file3 etc being added to the file list?

sun-jiao avatar Apr 08 '24 12:04 sun-jiao

OK 👌, thanks for your detailed explanation. Do you mean using flut-renamer file1 file2 file3 etc to open the app with file1 file2 file3 etc being added to the file list?

Basically, yes

gudvinr avatar Apr 08 '24 12:04 gudvinr