Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbK7-0004cn-Oe for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:03:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlbK5-0006Rp-Oy for pgsql-general@arkaria.postgresql.org; Mon, 02 May 2022 19:03:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbK5-0006Rg-EC for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:03:05 +0000 Received: from p-impout001aa.msg.pkvw.co.charter.net ([47.43.26.132] helo=p-impout001.msg.pkvw.co.charter.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlbJz-0004BP-OX for pgsql-general@lists.postgresql.org; Mon, 02 May 2022 19:03:04 +0000 Received: from raker.lan ([24.163.67.44]) by cmsmtp with ESMTPA id lbJtnCEnmfEB4lbJunqkSz; Mon, 02 May 2022 19:02:55 +0000 X-Authority-Analysis: v=2.4 cv=Go9RR25C c=1 sm=1 tr=0 ts=62702adf a=DQjDuPnXzmJSQFi5SsPVwA==:117 a=DQjDuPnXzmJSQFi5SsPVwA==:17 a=IkcTkHD0fZMA:10 a=dIZw1YEVAAAA:8 a=_TcrqDAPTiR0lyT-HcEA:9 a=QEXdDO2ut3YA:10 a=8mv1LjnWkRQA:10 a=wF9tdm9iDSEA:10 a=zlcL76zVIypKD7rBcC0t:22 Message-ID: <06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com> Subject: Re: External psql editor From: Reid Thompson Reply-To: jreidthompson@nc.rr.com To: pgsql-general@lists.postgresql.org In-Reply-To: <478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com> References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> <972d9c5f4293b858a5b505e6af8debd1ca16cf3c.camel@nc.rr.com> <478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 02 May 2022 14:57:53 -0400 MIME-Version: 1.0 User-Agent: Evolution 3.45.1 Compiled: 2022-04-05 08:50:12 X-CMAE-Envelope: MS4xfNCiaBqieF3uA4JnNx3BKcg69nOZdLIEQgEE+w6GLCKWKhXI8ptVxeVVmFd42Jx+oL27lB7gGWxF3AhQvddlm1z0ehJukawfmUi/pPyBeMWXRi+W1hvR bQ/cS5/0fGeHNTGyvOrUXBt8pDn0qk+8WsWtL7jWnTRJjvxFTmlpMMpeVJu3OR13A/v0MMD7xbcz6hppKz78nvgxWcKJPyYpezg= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-04-29 at 13:21 -0700, Rich Shepard wrote: > On Fri, 29 Apr 2022, Reid Thompson wrote: >=20 > > https://linuxgazette.net/issue14/bashtip.html=C2=A0 may of of use. >=20 > Reid, >=20 > I've had no issues using joe in any v.t. running an application > (e.g., > alpine) or by itself. Apparently, psql is different. >=20 > Rich >=20 >=20 I believe that psql also uses readline, so my thought was that maybe these instructions could enable you to map the 'move' keystrokes that you're familiar with to be used while on the psql command line. A very quick test seems to indicate that you can.