textual icon indicating copy to clipboard operation
textual copied to clipboard

[DataTable] Allow multiple row (or column!) to be selected

Open geekscrapy opened this issue 2 years ago • 5 comments

Holding CTRL (or CMD on Mac) to select multiple rows would be fantastic. The additional behaviour of drag clicking etc would also help with logic users have learnt with usual GUI apps 👍

geekscrapy avatar Feb 26 '23 05:02 geekscrapy

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

github-actions[bot] avatar Feb 26 '23 05:02 github-actions[bot]

I just hit this today. I wrote a browser in Textual that allows folks to query our asset management system for (you guessed it) assets and it displays the results in a DataTable. Now I want to be able to operate on selections.... this would be a great addition...

jlgerber avatar Mar 14 '23 01:03 jlgerber

Thinking about it, can you set multiple rows to the "selected" colour with CSS to fake it? Along with testing if ctrl is pressed still

geekscrapy avatar Mar 14 '23 03:03 geekscrapy

@geekscrapy did you get anywhere with this? I've been trying to implement something with Textual and I've been looking if selecting multiple rows is a thing

grahamwoodward avatar Aug 09 '24 18:08 grahamwoodward

@geekscrapy did you get anywhere with this? I've been trying to implement something with Textual and I've been looking if selecting multiple rows is a thing

Nope, sorry!

geekscrapy avatar Aug 09 '24 18:08 geekscrapy