Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIgSy-00FqWV-QV for pgadmin-support@arkaria.postgresql.org; Wed, 04 Dec 2024 03:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tIgSv-00Emeh-Ir for pgadmin-support@arkaria.postgresql.org; Wed, 04 Dec 2024 03:54:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIgSv-00EmeZ-0T for pgadmin-support@lists.postgresql.org; Wed, 04 Dec 2024 03:54:18 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tIgSr-000w4V-Su for pgadmin-support@lists.postgresql.org; Wed, 04 Dec 2024 03:54:16 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f1cec20a77so2200203eaf.1 for ; Tue, 03 Dec 2024 19:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1733284453; x=1733889253; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iq6nTfylIssrbqLQDDTXn8gCeVxGGa1SkF0CeeFHffg=; b=jhSF3Csy55a/APgojUR2PYi/Rd7MWNBER/XazMpSyEwGDfGyNV+CiK4tYrT2BmoPkE 2orOWg8Ws1Q9YwYUCkErmmj3xtZWTKTdGplZ3vf0uPRj8TLUtgmct+9mAgQBjQAE+BNj wDB//VcSjhxnF6kHDPWLUIirG0smLkJxAzZeZQv8I4D0m+t3bECo5JWYE/gWKDttdytW sjIi5g9TBX7XNHdJNtMZxfj8mcByP1a2lGeuEfAvDk6npU+17R/OIzL5Nq5rwTgc1X0Q nizeqoeBHyH3hLCYJCJ8imdklQUZrV5RkYqBuDH3n7v0BrFlNAqmr8ysMsIlkBlMlBY3 YGuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733284453; x=1733889253; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iq6nTfylIssrbqLQDDTXn8gCeVxGGa1SkF0CeeFHffg=; b=Wps8uNFeJDOlWaUzYaqa8RmCRfIfeGBmDL00yM2xXoUaam3t2TziqkZQB6ymDh+k3g b0rZ8l8/FhMOeq8ErIOHW4NttWfI4SOAhDFII/satxEBwBQ3EXFehT3uFkbOH9Dko/qn k74wJrVUFo+XP5CvypmWLAbfpPEcKlst0fuuXuTH5mmfFM5Cq/WrRR/y4L/67D2GgR+R WmXw9IYXhRr+6J3slmhMHyRoCa1dIhaXt1V/8hAOdLymkGBxVxgRxi+B3+3WqHHoAgB7 YRxIvS2YqOi/FssMFZcc/2AyS7YG4cWFgh6ay1aK/UOih9VMcvN3nZf7lt42mXzc8RoW Q/gg== X-Gm-Message-State: AOJu0YwdWpXEsSLHlAkTKQseOo1goYFvfZWzQ3c/0iH8hYFS5Ug5wKLi KV65PU1eorbnInqFa5K7MYAkTRXBWX8izaEAJHJaPibGb2aJ2aUHiBDkawu4ARM3UEw1x2ApcQb 9dqztGwateVPtSAIZwhrYjz3xD5MUKcBi3Sno X-Gm-Gg: ASbGncsCPFBbH6uKEPJRImRKLqfeYEd0eeSrVIFma0d17Wtb4m8lxdxGVYTMBdd+d4f N1or3Tnqqr542o7ibwBubiRQUwevqz+HniZCz36vJ2Yv2p5RErp3T2A4XxsO1LArjIQ== X-Google-Smtp-Source: AGHT+IGBhoKWvvm9RdfuHjQYJgsO24ezuZ3Yb0Pagb+AROCQLYfA0HQ9Q3V7DSDffNGrfFkzOMCY7axEAFBm6Xv6E84= X-Received: by 2002:a05:6871:150:b0:29e:1b72:7586 with SMTP id 586e51a60fabf-29e886a8c41mr5772221fac.18.1733284452927; Tue, 03 Dec 2024 19:54:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Aditya Toshniwal Date: Wed, 4 Dec 2024 09:23:37 +0530 Message-ID: Subject: Re: Forcing autocomplete on keypress To: Zac Warham Cc: "pgadmin-support@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000001ca46c062869bca4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001ca46c062869bca4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Zac, You can use PGADMIN_PREFERENCES_JSON_FILE in https://www.pgadmin.org/docs/pgadmin4/8.13/container_deployment.html On Wed, Dec 4, 2024 at 12:45=E2=80=AFAM Zac Warham = wrote: > We have a docker setup for pgadmin and we want to force autocomplete on > keypress at launch (not through the preferences) using an environment > variable or config of some sort. I tried modifying the file at > https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/tools/sql= editor/utils/query_tool_preferences.py#L792 and > replacing False with True and this works but then breaks postgres in othe= r > ways. Is there a proper way of doing this beyond modifying this file? > > --=20 Thanks, Aditya Toshniwal pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com* "Don't Complain about Heat, Plant a TREE" --0000000000001ca46c062869bca4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Zac,

= You can use=C2=A0PGADMIN_PREFEREN= CES_JSON_FILE in=C2=A0https://www.= pgadmin.org/docs/pgadmin4/8.13/container_deployment.html

On= Wed, Dec 4, 2024 at 12:45=E2=80=AFAM Zac Warham <cazwarham@hotmail.com> wrote:
We have a docker setup for pgadmin and we want to force autoc= omplete on keypress at launch (not through the preferences) using an enviro= nment variable or config of some sort. I tried modifying the file at https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/tools/sqled= itor/utils/query_tool_preferences.py#L792=C2=A0and replacing False with= True and this works but then breaks postgres in other ways. Is there a pro= per way of doing this beyond modifying this file?



--
Thanks,
Aditya T= oshniwal
pgAdmin Hacker=C2=A0| Sr. Staff SDE II=C2=A0| enterprisedb.com=
"Don't Complain about Heat, Plant a TREE"
--0000000000001ca46c062869bca4--