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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow inserting new source at the position of cursor #1014

Closed
glopesdev opened this issue Aug 24, 2022 · 1 comment · Fixed by #1324
Closed

Allow inserting new source at the position of cursor #1014

glopesdev opened this issue Aug 24, 2022 · 1 comment · Fixed by #1324
Labels
proposal Request for a new feature
Milestone

Comments

@glopesdev
Copy link
Member

glopesdev commented Aug 24, 2022

Currently new sources are always created at the end of the workflow, in a new connected component. Given that subscription order to independent observable branches is determined by top-to-bottom ordering of components, it can often be important to control where exactly new sources get created.

One approach to this is to simply use the current position of the cursor. Similar to how new operators are inserted following the currently selected node, new sources could be inserted in the connected component immediately following the cursor position (or preceding, if shift key is used). Potentially this can be extended for all operators when they are inserted in the workflow without any node being selected, which will be helpful to connect locally proximal nodes in case of accidental insertion.

@glopesdev glopesdev added the proposal Request for a new feature label Aug 24, 2022
@glopesdev
Copy link
Member Author

glopesdev commented Dec 1, 2022

Also related to #1129 where ungrouping is simply interpreted as inserting a node at the same position of the original one.

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

Successfully merging a pull request may close this issue.

1 participant