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 1nkWHx-0000FY-J3 for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 19:28:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkWHw-0004cD-Dt for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 19:28:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkWHw-0004bz-1i for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 19:28:24 +0000 Received: from p-impout008aa.msg.pkvw.co.charter.net ([47.43.26.139] helo=p-impout008.msg.pkvw.co.charter.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkWHr-0002so-9I for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 19:28:22 +0000 Received: from raker.lan ([24.163.67.44]) by cmsmtp with ESMTPA id kWHonvfuybW1QkWHpnuc4J; Fri, 29 Apr 2022 19:28:17 +0000 X-Authority-Analysis: v=2.4 cv=BoOOfKb5 c=1 sm=1 tr=0 ts=626c3c51 a=DQjDuPnXzmJSQFi5SsPVwA==:117 a=DQjDuPnXzmJSQFi5SsPVwA==:17 a=IkcTkHD0fZMA:10 a=dIZw1YEVAAAA:8 a=BlT33fbdrAuTSNe6HhAA:9 a=QEXdDO2ut3YA:10 a=8mv1LjnWkRQA:10 a=wF9tdm9iDSEA:10 a=zlcL76zVIypKD7rBcC0t:22 Message-ID: <972d9c5f4293b858a5b505e6af8debd1ca16cf3c.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: References: <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Apr 2022 15:27:08 -0400 MIME-Version: 1.0 User-Agent: Evolution 3.45.1 Compiled: 2022-04-05 08:50:12 X-CMAE-Envelope: MS4xfEAxhn39A91MPKwlx+7w5C30q3vT+fe+DtL2TFQkUrHrdWUiHSs+Zar1/ZHWHxOgP5WywqJf398k7Bn+bP9vG0PSgueKiRGOC2SThRJaxJ59qFbDtszV rHuAAPPH7HdPDwFr/PFZYvC+GLNqNpv9V2inpwDchFA/0NNEwuiGFgXE7oKDbKLJBI184gTv8Md0kh65EhxXfqYZFFAHEEPB+WE= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-04-29 at 11:10 -0700, Rich Shepard wrote: > On Fri, 29 Apr 2022, Jan Wieck wrote: >=20 > > Not that I know of. \e starts the external editor and you have to > > save and > > exit that editor to get back to psql in order to execute it. IMHO > > the > > whole construct has very limited usability. >=20 > Jan, >=20 > I tried, unsuccessily, to use \e. Entering it while a command is > displayed > does nothing. So I'm doing something wrong. >=20 > I'll continue using character-by-character movement. >=20 > Thanks again, >=20 > Rich >=20 >=20 https://linuxgazette.net/issue14/bashtip.html may of of use.