Blueprint: Enable header cell copy with cmd+c

Created on 27 Feb 2017  路  6Comments  路  Source: palantir/blueprint

Only works for body cells at the moment

table enhancement

Most helpful comment

It copies the text content, just like a body cell would. Our columns aren't just indexes (1, 2, 3 -- A, B, C...), they contain useful text, and folks want the ability to copy

All 6 comments

what does cmd+c do on a header cell? it makes sense to copy a group of body cells but i don't see an analog for headers.

It copies the text content, just like a body cell would. Our columns aren't just indexes (1, 2, 3 -- A, B, C...), they contain useful text, and folks want the ability to copy

It does get tricky when there is more in the header cell (like a column type editor) but it looks silly when you can grab a basic column title

We definitely need some way to copy column headers. This is often the expected behavior when a user is referencing a table's column name, for example, in their pipeline code.

For our users, this can force users to have to open the same table in a different product to get a copy-able column name.

FWIW, I don't think Cmd + C is discoverable enough alone. Can we select the text when people right click or something as well?

@ethanbond there's already a context menu showing when you right click, and in there you can find the copy action 馃憤

Edit: that's just for body cells now, but same will happen to header cells once we tackle this issue

we could just have it maybe intelligently check for the column name or for the renderColumnHeader().props.name.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adidahiya picture adidahiya  路  3Comments

vinz243 picture vinz243  路  3Comments

ernestofreyreg picture ernestofreyreg  路  3Comments

vilav picture vilav  路  3Comments

sunabozu picture sunabozu  路  3Comments