slaclab / trace

Live and Archived data plotting tool
https://slaclab.github.io/trace/
3 stars 4 forks source link

ENH: Copy Paste Multiple PV Functionality #51

Closed aksharsarvesh closed 1 month ago

aksharsarvesh commented 2 months ago

Users can paste in a list of pvs separated by any white space (space, newline, tab, etc) or commas, and we will detect that there are multiple curves being inserted, split them up, and insert them separately.

Uses a simple regex to split, so our exact split delimiters can change but currently set to '[\s,]+' to detect white space and commas.

Potential issue: sometimes formulae have spaces i.e. f://{A} + {B} and this will split on those spaces.

This uses the same functionality as dragAndDropPV to insert multiple PVs at a time, and any curves with typos will be treated as if they were typed one at a time by the user, meaning a new row will form, we will attempt to connect and we wont be able to on a misspelled PV