Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row context menu cannot copy-paste multiple rows #2

Open
DaloLorn opened this issue Nov 3, 2022 · 3 comments
Open

Row context menu cannot copy-paste multiple rows #2

DaloLorn opened this issue Nov 3, 2022 · 3 comments

Comments

@DaloLorn
Copy link

DaloLorn commented Nov 3, 2022

This one feels more like a bug report than a feature request. It almost did end up being a feature request on behalf of another BGTSCC dev (a new convert! 馃槀), but I did some tests to make sure it wasn't a feature that already existed. (They may be satisfied with my findings on that front, but still, it seemed worth reporting.)

It turns out that if you select a row for cutting, copying or pasting via the context menu, you can only cut/copy/paste one row at a time. Even if you work around this by using Ctrl-Shift-C, subsequently using the context menu options to insert the contents of the clipboard above/below the selected row will only insert the topmost row from the clipboard. Ctrl-Shift-V would instead insert all the copied rows above the selected row. Overwriting multiple rows at a time is therefore impossible, and inserting multiple rows below another row is only possible by Ctrl-Shift-Ving onto the next row.

I don't think there's any urgent need for a solution, though. Just thought you should know.

@kevL
Copy link
Owner

kevL commented Nov 4, 2022

hi D,

It turns out that if you select a row for cutting, copying or pasting via the context menu, you can only cut/copy/paste one row at a time.

yes it's a known anomaly ... if you want to do multi-row ops (cut,copy,paste,delete) use the Rows menu (or Ctrl+Shift+ )

Yata originally had only single-row editing. The contextmenu for rows was designed to select a row and do an operation for that row (only). The Rows menu at the top was added later (along with Ctrl+Shift+ ) to handle multi-row edits

but i never implemented multi-row Paste on that contextmenu ...

Even if you work around this by using Ctrl-Shift-C, subsequently using the context menu options to insert the contents of the clipboard above/below the selected row will only insert the topmost row from the clipboard.

yep. I don't really want to change that because RMB selects that row and (see below)

Ctrl-Shift-V would instead insert all the copied rows above the selected row.

think of it as pasting AT the row-id that's selected (the currently selected row therefore gets shoved down). Multi-row pasting (via the Rows menu or Ctrl+Shift+ ) without a row selected should paste copied rows at the bottom of the table. The reason im not keen on implementing multi-row paste with the contextmenu is that RMB (at present) needs to actively select a row ... (which makes it impossible to do a multi-row paste at the bottom of the table with the contextmenu)*

Overwriting multiple rows at a time is therefore impossible,

That's the bug (or rather lack of feature) -- Yata can't (at present) overwrite multiple rows (I'd want that as a special command on the Rows menu, i guess) (ie. after the paste you have to delete the rows that are no longer needed)

and inserting multiple rows below another row is only possible by Ctrl-Shift-Ving onto the next row.

yep. Remember, paste/insert is done AT the currently selected row, pushing that row down. To paste at the bottom, use the Rows menu or Ctrl+Shift+ without any row(s) selected.

(same behavior for Column ops)

ps. Looks like i found and fixed a bug when cutting multiple cells ... I played around with the multi-row ops and forgot to hold [Shift] ... if you find something that throws an exception, or something that you can't do (other than overwriting multiple rows) pls let me know eh? I don't get much time to find broken stuff on my own ...

pps. Am working on the next release build but other stuff keeps getting thrown at me :)

  • sort of -- i could hijack the PasteBelow op

@DaloLorn
Copy link
Author

... Did this ever actually get fixed in newer versions? I randomly noticed the issue was still open. 馃槀

(Still no pressure if it's not! Just thought maybe it's a bookkeeping error instead of a genuine lack of resolution.)

@kevL
Copy link
Owner

kevL commented Apr 23, 2024

hey D.
"Rows" on the mainmenu should have Paste-replace as well as Paste-insert now. But i think the rightclick contextmenu will remain single-row-only operations. (Shift+click selects multiple rows to be overwritten)

Basically, if you want to do multirow operations, use either "Rows" on the mainmenu or [Shift] with the usual [Ctrl]+c/x/v keys.

I keep the ticket open because multirow ops could be added to the contextmenu ... but honestly, doing so wouldn't be fixing a bug but adding a feature.

unless there's something I'm missing,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants