sqlitebrowser / sqlitebrowser

Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at:
https://sqlitebrowser.org
Other
21.35k stars 2.14k forks source link

[Feature]: Comment Line Shortcut key for "Execute SQL" tab and Shortcut Key selection screen #3622

Open kalpha2 opened 6 months ago

kalpha2 commented 6 months ago

Describe the new feature

Apologies if these are present somewhere or in a newer version than I use with Debian 11 currently but I have not found from quick search of doco and wiki for a shortcut key that allows current line or selected range to be commented or uncommented in the Exexute SQL tab contents. Also a page to edit the preferred uses of shortcut keys would be great, as everyone has their preferred key combinations for such things.

Does this feature exist in another product or project? Please provide a link

No response

Do you have a screenshot? Please add screenshots to help explain your idea.

No response

chrisjlocke commented 6 months ago

If you hover your mouse over the button, a tooltip appears.

image

In this tooltip, it says pressing Ctrl+/ will perform the action of the button.

Have you tried pressing Ctrl+/ ?

You mention a 'newer version' but not what version you're currently using.

image

If you click 'Help' and 'About', your path will be enlightened.

kalpha2 commented 6 months ago

Thank you Chris, Apologies, don't know how I missed that, I do see it now. fyi the current version in Deb11 is v3.12.1 Is there an option to change the shortcut key somewhere?

chrisjlocke commented 6 months ago

You should be able to use the latest version of 3.13.rc1. That won't address your issue, but 3.12.1 is so old, it probably creaks when you open it... ;)

No, there is no way to change shortcut keys. The way Qt has been implemented, all the shortcut keys are hard-coded in files which are then compiled into the application. They can't easily be changed. Writing a custom shortcut-key map would involve a fair bit of work. :(