tomara-x / quartz

visual programming and dsp playground
https://codeberg.org/tomara-x/quartz
Apache License 2.0
90 stars 3 forks source link

drag properties #21

Closed tomara-x closed 9 months ago

tomara-x commented 10 months ago

drag from an entity into another to set the value of the sink to the index of the source. this should work on all entities, connection circles or ordinary ones. would make working with #20 easy (sets the receiving target entity)

tomara-x commented 10 months ago

D vim commands style! press d, press key specifying source property, then another of target property, then drag and drop :3

d{nrxyzhsla}{nrxyzhsla}

need a resource for this (to keep track of the drag mode, updated by the commands)

i and g? you can hold an entity id and dragging it would be fine, but you can't use numbers to change it.. should be fine, you can also add a command to set the entity :set entity 4v2

tomara-x commented 9 months ago

no, something better is possible. i like the idea of dragging values to duplicate them, but that's doable with a connection. so maybe i need connect/disconnect commands (that take link type args); clear connections command (which brings up delete again); and think separately about communicating with entities based on id