Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTMvi-0002dK-Nh for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Jun 2018 07:44:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTMvh-0006Yi-36 for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Jun 2018 07:44:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTMvg-0006YY-Pz for pgadmin-hackers@lists.postgresql.org; Thu, 14 Jun 2018 07:44:24 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTMve-0006jO-BN for pgadmin-hackers@postgresql.org; Thu, 14 Jun 2018 07:44:24 +0000 Received: by mail-wm0-x236.google.com with SMTP id v131-v6so10000897wma.1 for ; Thu, 14 Jun 2018 00:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=c2ze2xbSuDQtm9mKXjCa/HOheg+Wzs+v0fqGxwVQLEU=; b=BTJd8+fWsoqCNSVK3n2QhYLTj3FLkI6HQFom6CGNX8ZSKtksEsEpJfAoT1V0RXo6z9 hH+eou4T7dZ2RuVXwJEk6E7hVyEgNKR+IZhYyrQOIjfSL8Ew60E+DbEyAzxZN11Y0B3r NG5PbWvw/RdrA7wI4eGguyfcQ5NolLQkPk6i5IlJaaQapZmUivfmbVNJG9xHVomjkggn x7hKLEY0w76E15GEhJ7FY0/S1ZlPOYoFntSImoSzQmYmfSMU0INuRzkBBNF6I9JkVjhA Mt7NbuBDV1Rb+2+HVnggs7dHT2Nb8CWDT4Ngrre1lhPsY2CSVVq62CmGDDWHlNw8qqJK wPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=c2ze2xbSuDQtm9mKXjCa/HOheg+Wzs+v0fqGxwVQLEU=; b=PVKYLxwrUW/sulfRfhSgeACFGjkxPwwjRWZ3LK9lXjLpyXlTTDOKHgAVQfwAR0Ubcj Bn1ljymncpMOWMQ/WCr/kdmKY1wMc/spTMqvirvNMEgDguSSZ0GaXXp950x7sEfIEWeu Tr3UVJy2T2oRzLJbVSiViJHNECbFQjTPOl7Ab1BKGqZshY1wAlXwq/uXZ0DN7HsGl/fN +Prvd5OPTpC8nGc/Lcl6uXuX+RJ46E1OBYHmIO3UobwzUnI/v4mgWERwYLqnD14+rRMV FGA5X7HceNKt9CvYXtJDAjsalhvIxkib+++nzBmcqAVh3PdwhRv1PnuGnijZVYkXPAJm 4ZDA== X-Gm-Message-State: APt69E375qEXYVg1VG9scHEoMCDAMW3oYlmFgXrnoNLH/PORzGjuR9QT MSRM+2haLQVLfnzhM4PoN/L3OII9L1WyBECwO1DcuQ== X-Google-Smtp-Source: ADUXVKKawstKCRvHtfkYYiejSVo5rv2gILXtYm/XBuEigviHQi2mcSaI++zljTWbf9WZHJI6YB2wJ69rmgJXgezeVMU= X-Received: by 2002:a1c:3ac6:: with SMTP id h189-v6mr1036257wma.64.1528962260034; Thu, 14 Jun 2018 00:44:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:2907:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 00:44:18 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Thu, 14 Jun 2018 08:44:18 +0100 Message-ID: Subject: Re: [pgadmin4][Patch]: Feature #2686 Property to switch lower/upper case auto completion To: Akshay Joshi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000627a5e056e9544c1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000627a5e056e9544c1 Content-Type: text/plain; charset="UTF-8" Hi On Thu, Jun 14, 2018 at 8:41 AM, Akshay Joshi wrote: > Hi Hackers, > > Attached is the patch for the Feature #2686 Property to switch lower/upper > case auto completion. I have added new preferences settings "Keywords in > uppercase" if it is set to True then all the keywords are shown in upper > case in auto completion. > > I have also implemented the second request in the RM to change the > selected text to upper/lower case. For that I have added new keyboard > shortcut "Toggle case of selected text" in preferences dialog. Default > key is "Ctrl + Shift + u". > > Please review it. > I don't see any doc updates in the patch - seems like that was forgotten? Any opportunities to re-factor the code in that area into more testable functions? -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --000000000000627a5e056e9544c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Thu, Jun 14, 2018 at 8:41 AM, Akshay Joshi <<= a href=3D"mailto:akshay.joshi@enterprisedb.com" target=3D"_blank">akshay.jo= shi@enterprisedb.com> wrote:
Hi Hackers,

Attached is the patch for= the Feature=C2=A0#2686 Property to switch lower/upper case auto completion= . I have added new preferences settings "Keywords in uppercase" i= f it is set to True then all the keywords are shown in upper case in auto c= ompletion.

I have also implemented the second requ= est in the RM to change the selected text to upper/lower case. For that I h= ave added new keyboard shortcut "Toggle case of selected text" in= preferences dialog. Defaul= t key is "Ctrl + Shift= + u".

Please review it.=C2=A0

I don't see any doc updates in the patch = - seems like that was forgotten?

Any opportunities= to re-factor the code in that area into more testable functions?=C2=A0

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake=

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Compan= y
--000000000000627a5e056e9544c1--