sun-jiao / flut-renamer

Flut Renamer - A bulk file renamer written in flutter (dart). Available on Linux, Windows, Android, iOS and macOS.
GNU General Public License v3.0
508 stars 10 forks source link

Accept file paths from CLI arguments #10

Closed gudvinr closed 6 months ago

gudvinr commented 7 months ago

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.

sun-jiao commented 7 months ago

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.

gudvinr commented 7 months ago

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.

sun-jiao commented 7 months ago

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?

gudvinr commented 7 months ago

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