[freqtbl-] add commands to delete rows on source sheet#2961
[freqtbl-] add commands to delete rows on source sheet#2961midichef wants to merge 1 commit intosaulpw:developfrom
Conversation
|
I proposed a workflow in #2950 that has a couple more steps, but doesn't require additional commands or override existing bindings. Do you think we need/want specialized commands to do this? |
|
@saulpw as a everyday regular user of vd, I have been using these commands from a few days now and honestly while the other flows still work(i was using the same earlier ) this approach is just blazing fast (i.e less commands to remember and navigate through). Mentally its just super easy zd and thats it , no inverse selection , no select and delete. The problem with such select flows is that if you end up selecting wrong you will have to undo or carefully unselect , basically chances of having more operations. Unless adding commands is not an overhead or can create an issue , I really thing having this as default would definitely help. |
|
Thanks for working on this! The inverse-filter use case from #2950 is a good one. This has been addressed differently on develop — instead of deletion (which is destructive and has tricky undo semantics from a derived sheet), Closing in favor of that approach. Thanks again for the motivation! [this comment written by Claude Opus 4.6 and approved by @saulpw] |
This was a feature request in #2950 by @Ankit-Kulkarni.
For deleting rows I used
self.deleteBy(lambda r: self.rowid(r) == rid). Can I replace it with the slightly fasterself.deleteBy(lambda r, freqtbl_row=freqtbl_row: r is freqtblq_row)? I'm not sure.