diff --git a/src/list_view.rs b/src/list_view.rs index d093c0b..9417b5e 100644 --- a/src/list_view.rs +++ b/src/list_view.rs @@ -119,8 +119,10 @@ fn setup_factory(factory: &SignalListItemFactory, list: &MultiSelection) { let row = CenterBox::default(); let drag_source = create_drag_source(&row, &list); - let gesture_click = create_gesture_click(&row); - row.add_controller(gesture_click); + if !ARGS.get().unwrap().no_click { + let gesture_click = create_gesture_click(&row); + row.add_controller(gesture_click); + } row.add_controller(drag_source); list_item diff --git a/src/main.rs b/src/main.rs index c371ab5..16de516 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,6 +71,10 @@ struct Cli { #[arg(short = 'A', long)] all_compact: bool, + /// Show only the number of items and drag them together + #[arg(short = 'n', long)] + no_click: bool, + /// Paths to the files you want to drag #[arg(value_name = "PATH")] paths: Vec,