Use workspace selection as insertion point
If you have selected a folder or a request in the workspace view, then importing from curl or creating a new request should end up in this folder. If a folder is selected, it should be inserted as the last item in that folder. If a request is selected, it should be inserted right after that entry.
You could argue that if a folder is selected, the request should be inserted right after the folder entry too. I think that’s a valid choice too. But right now, the placement is unpredictable.
For instance, let’s say no request is open. Select a directory in the tree. Import from curl.
The request is imported somewhere seemingly at random (maybe wherever the last request now closed was).
I have the same kind of issue when duplicating a request. I expect it to be inserted right after, but most of the time it’s not.