From 574a54acdb632ced6173db7685bdfc5466c490b3 Mon Sep 17 00:00:00 2001 From: Guilherme Nandi Tiscoski Date: Sun, 26 Oct 2025 20:59:23 -0500 Subject: [PATCH] feat: enable starting text share via command line (#2661) --- .../selection/selected_sending_files_provider.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/lib/provider/selection/selected_sending_files_provider.dart b/app/lib/provider/selection/selected_sending_files_provider.dart index 27d75a50..0212814e 100644 --- a/app/lib/provider/selection/selected_sending_files_provider.dart +++ b/app/lib/provider/selection/selected_sending_files_provider.dart @@ -291,11 +291,16 @@ class LoadSelectionFromArgsAction extends AsyncReduxActionWithResult, bool)> reduce() async { bool filesAdded = false; bool nextShare = false; + bool nextText = false; for (final arg in args) { if (arg == '--share') { nextShare = true; continue; } + if (arg == '--text' || arg == '-t') { + nextText = true; + continue; + } if (nextShare) { nextShare = false; final json = jsonDecode(arg); @@ -313,6 +318,14 @@ class LoadSelectionFromArgsAction extends AsyncReduxActionWithResult