pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

quitting less is also closing pgcli

Open Notaduck opened this issue 5 years ago • 5 comments

Description

As the title of the issue states quitting less is also closing pgcli.

A simple query like this opens up less

select G.d_ID, avg(G.g_Price) as g_AvgPrice
 from gGarments G
 group by G.d_ID

When q is pressed to close less pgcli is also closed and there is nor foreground jobs running

Your environment

  • [ ] 5.3.15-1-MANJARO
  • [ ] pgcli Version: 2.2.0
  • [ ] (pip freeze](https://termbin.com/egx5)
  • [ ] zsh 5.7.1 (x86_64-pc-linux-gnu)

Notaduck avatar Dec 10 '19 10:12 Notaduck

Seems like this has been fixed v.2.2.0

Notaduck avatar Dec 13 '19 10:12 Notaduck

The issue is still there, I was mistaken. The odd thing is that this only happens for this single query, every other query which displays the results in less does not close down the entire application.

Notaduck avatar Dec 16 '19 13:12 Notaduck

Though I don't have your particular table, I can't duplicate this in pgcli 3.0.0.

catherinedevlin avatar Jul 26 '20 22:07 catherinedevlin

I think we can close this issue for now, I can't replicate it anymore either :)

Notaduck avatar Jul 27 '20 10:07 Notaduck

I am still getting this with pgcli 3.2.0 on FreeBSD 13. If I use "q" to quit less before scrolling to the bottom of the pagnated display it also quits pgcli before I have a chance to do anything else.

mattadams avatar Apr 03 '22 11:04 mattadams

I cannot reproduce this with the latest version of pgcli (4.0.1), with less 633 under Fedora 38. Here is a screencast:

asciicast

Can anyone reproduce with the latest pgcli? If so, what is your operating system and version of less?

dbaty avatar Nov 15 '23 20:11 dbaty

Also, what's your LESS env var set to?

j-bennet avatar Nov 18 '23 06:11 j-bennet

I don't believe this is happening anymore for me. Also using 4.0.1 (now). My LESS env is LESS=-SRXF.

mattadams avatar Feb 03 '24 22:02 mattadams