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

Accept file paths from CLI arguments #10

Open
gudvinr opened this issue Apr 7, 2024 · 4 comments
Open

Accept file paths from CLI arguments #10

gudvinr opened this issue Apr 7, 2024 · 4 comments
Assignees

Comments

@gudvinr
Copy link

gudvinr commented Apr 7, 2024

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 sun-jiao self-assigned this Apr 7, 2024
@sun-jiao
Copy link
Owner

sun-jiao commented Apr 8, 2024

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
Copy link
Author

gudvinr commented Apr 8, 2024

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
Copy link
Owner

sun-jiao commented Apr 8, 2024

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
Copy link
Author

gudvinr commented Apr 8, 2024

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

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