bluetuith icon indicating copy to clipboard operation
bluetuith copied to clipboard

Quit Menu

Open arghyadipchak opened this issue 3 years ago • 4 comments

Wouldn't it much easier if it would quit as soon as I pressed 'y' instead of having to type 'y' and then press enter?

arghyadipchak avatar Oct 07 '22 00:10 arghyadipchak

I suppose, and it can be implemented, but I've designed it that way to prevent accidentally quitting the application. I think pressing y+Enter provides a somewhat more (granular?) control over the quitting process, compared to just pressing y. I'm open to changing this though.

darkhz avatar Oct 07 '22 07:10 darkhz

I think just y would be fine as the person is already pressing q because he wishes to quit. To prevent accidental quitting maybe you can make the prompt like Quit (y/N) ? so if the person presses anything other than y, N is taken as default so it doesn't quit and it only quits if y is pressed.

arghyadipchak avatar Oct 07 '22 23:10 arghyadipchak

I'll consider implementing this

darkhz avatar Oct 08 '22 08:10 darkhz

+1, I'd be fine with disabling the quit confirmation altogether

carsin avatar Oct 23 '22 07:10 carsin

I think just y would be fine as the person is already pressing q because he wishes to quit. To prevent accidental quitting maybe you can make the prompt like Quit (y/N) ? so if the person presses anything other than y, N is taken as default so it doesn't quit and it only quits if y is pressed.

Ok, this will be implemented in the next release.

+1, I'd be fine with disabling the quit confirmation altogether

Disabling the quit confirmation is somewhat "dangerous" in my opinion. For example, if you are running a send/receive file transfer, and you accidentally press Q, the file will be corrupted, various crashes/errors will occur either on bluez, or the bluetooth stack on the other device where you initiated the transfer, since the bluetooth agent wasn't properly terminated.

darkhz avatar Jan 21 '23 03:01 darkhz

How about adding Shift+Q i.e. big Q as instant quit option? This is easy to type but hardly happens accidentally.

xeruf avatar Jan 26 '23 13:01 xeruf

@xeruf interesting opinion. @arghyadipchak will this suffice? I think this suggestion is good, since pressing Shift+Q would be slightly faster and less tedious than typing q+y.

darkhz avatar Jan 26 '23 14:01 darkhz

Faster quitting is definitely a feature I would greatly appreciate. I think shift+q is a valid choice.

For example, if you are running a send/receive file transfer, and you accidentally press Q

Just to give some context, personally, I use bluetuith as comfortable interface to scan, pair and connect devices. It opens when I click on the bluetooth icon in my waybar (and I would love to be able to quit quickly after connecting). I hadn't a use case for the transfer feature yet. Thanks for developing such a great tool. :+1:

katexochen avatar Jun 21 '23 21:06 katexochen