Qalculate / qalculate-qt

GNU General Public License v2.0
339 stars 38 forks source link

Surround selection when typing an open parenthesis #148

Open seritools opened 4 days ago

seritools commented 4 days ago

It would be nice if Qalculate surrounded the selected part of the expression with a pair of parantheses instead of replacing the selected part, similar to what code editors do.

Example:

5 + 4 * 3
^^^^^ select this, then type (

Expected:

(5 + 4) * 3

Current:

( × 3
hanna-kn commented 4 days ago

I will consider it. Currently Ctrl + ( is used for this behaviour (although in this case it is enough to place the cursor after "4" and press the key combination).