From 0debe7985f49caf5ca898c51a446466663c649d9 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Tue, 12 May 2026 00:19:01 +0200 Subject: [PATCH] @ed: invert gsel logic --- copyparty/__main__.py | 3 ++- copyparty/util.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 54462aae..ae82d8ce 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -1903,7 +1903,7 @@ def add_ui(ap, retry: int): THEMES = 10 ap2 = ap.add_argument_group("ui options") ap2.add_argument("--grid", action="store_true", help="show grid/thumbnails by default (volflag=grid)") - ap2.add_argument("--gsel", action="store_true", help="select files in grid by ctrl-click (volflag=gsel)") + ap2.add_argument("--no-gsel", action="store_true", help="ctrl-click in gridview will open-in-new-tab instead of select-file (volflag=-gsel)") ap2.add_argument("--localtime", action="store_true", help="default to local timezone instead of UTC") ap2.add_argument("--ui-filesz", metavar="FMT", type=u, default="6", help="default filesize format; one of these: 0, 1, 2, 2c, 3, 3c, 4, 4c, 5, 5c, 6, 6c, 7, 7c, fuzzy (see UI)") ap2.add_argument("--gauto", metavar="PERCENT", type=int, default=0, help="switch to gridview if more than \033[33mPERCENT\033[0m of files are pics/vids; 0=disabled") @@ -1966,6 +1966,7 @@ def add_ui(ap, retry: int): ap2.add_argument("--ui-noctxb", action="store_true", help="hide context-buttons in the UI (volflag=ui_noctxb)") ap2.add_argument("--ui-norepl", action="store_true", help="hide repl-button in the UI (volflag=ui_norepl)") ap2.add_argument("--have-unlistc", action="store_true", help=argparse.SUPPRESS) + ap2.add_argument("--gsel", action="store_true", default=True, help=argparse.SUPPRESS) def add_debug(ap): diff --git a/copyparty/util.py b/copyparty/util.py index 1f7b9cec..a2330291 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -450,7 +450,10 @@ if ANYWIN: IMPLICATIONS.extend([["z", "zm4"]]) -UNPLICATIONS = [["no_dav", "daw"]] +UNPLICATIONS = [ + ["no_dav", "daw"], + ["no_gsel", "gsel"], +] DAV_ALLPROP_L = [