Hi!
There should be a "copy TOTP" button like there are "copy username" and "copy password" buttons. It's not very convenient to right click on the entry and select "time-based one-time password" and then click on "copy TOTP".
We added a TOTP column in 2.4 that displays "Yes" if an entry has TOTP and can be double clicked to copy the current code to clipboard. I use this in the snapshot builds and is very convienent. At this time we do not want to add any more toolbar icons.
I think, however, there should be a button in the preview panel. The TOTP column isn't so discoverable I would guess. Maybe make the displayed code there clickable.
The preview panel has a little stopwatch icon next to the close icon if TOTP exists. It is a little hidden though
I agree that the mouse UX is arduous.
I usually select the entry (keyboard or mouse) then _use the keyboard shortcut Cmd+T_ to copy a TOTP to clipboard.
We added a TOTP column in 2.4 that displays "Yes" if an entry has TOTP and can be double clicked to copy the current code to clipboard.
Whaou, this saved my day ! Thanks, quite hidden but very useful!
Why not adding a small icon copy to clipboard next to the yes? (icon only) So it's more obvious there is an action possible in this cell.
Adding an action to a cell is non-trivial (this is a technical Qt/C++ response). I am investigating a floating action bar for the selected row as an alternative. That is also non-trivial but more robust then each column getting an icon shoved in it.
Wow I just learned something new about KeePassXC. I normally have it in a half window. Never realized that there were more columns. I figured out you can just drag the TOTP column to the left so it is one of the visible columns when not full screen. The username and password fields can also be double clicked to copy their contents.
Is this information in the documentation? If it isn't then it is more of an EasterEgg than a hidden feature.
For the record, Ctrl+T does copy the TOTP.
Also for the record, when you update to 2.6.0 the attachment column and totp column will be the first two in the view making it far easier to discover this feature.
Most helpful comment
We added a TOTP column in 2.4 that displays "Yes" if an entry has TOTP and can be double clicked to copy the current code to clipboard. I use this in the snapshot builds and is very convienent. At this time we do not want to add any more toolbar icons.