Feature - Implemented Improve copy from Internal Database

Bale

Minion
The Internal Database is a great feature of KoLmafia, particularly since the shunning of fuzzy matching for constants. Unfortunately it has one notable failing. If I highlight an item in the database and try to copy it to clipboard (so that I can paste it elsewhere), I get something like this:

Code:
modeling claymore (6669)	modeling claymore (6669)	modeling claymore (6669)

I'd really like it if an attempt to copy it would produce the much more usable "modeling claymore" so that I can just copy it into $item[modeling claymore] without needing to edit.

For extra credit, add a "copy" button. Or maybe it would be easier to do if there was a button that would copy it to clipboard?
 
The same thing happens when copying from the General section (and others) of the Item Manager. I usually happen to want the quantity when copying from there, but not 3 or 4 (depending on column count) copies, not that I do it often enough to mind deleting the extra.
 
r12486 reduces it to one copy. I could take off the parenthetical number, but it means different things in different contexts (item id in debug database, quantity in item manager...) so I didn't touch it. Could be convinced otherwise if there are strong feelings.

(sidenote: Java's API for working with "transferables" like this one is miserable)
 
This is definitely an improvement! Thank you.

How about adding a button to the Internal Database frame, "Copy Name" which will copy it to clipboard without the number? It really will make my life better.

What would make my life best is a button, "Copy Constant" that will put $item[modeling claymore] into the clipboard so I can use it just like that. And similarly useful things for familiar, skills and effects.
 
Last edited:
I won't be adding any buttons.

I might add a context-menu choice. I like the idea of "copy constant".
 
Back
Top