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

Terminal editor should prefer to open files in a different group #131552

Closed
sbatten opened this issue Aug 24, 2021 · 4 comments
Closed

Terminal editor should prefer to open files in a different group #131552

sbatten opened this issue Aug 24, 2021 · 4 comments
Assignees
Labels
*as-designed Described behavior is as designed terminal-editors under-discussion Issue is under discussion for relevance, priority, approach

Comments

@sbatten
Copy link
Member

sbatten commented Aug 24, 2021

Testing #131196

Sorry if this has already been discussed at length in the recent UX call and I know this is as-designed behaviour. However, the steps I follow here lead me to unexpected behaviour:

  1. Set the experimental locked group setting to always open terminal editors locked.
  2. Open a new terminal editor as the only open editor in the only opened group
  3. In the opened terminal, code-insiders file.txt

This opens the file over the terminal. The most intuitive behaviour here for me would be to open all files to the right of the terminal. I have told you I want terminals to be locked with settings so I find it strange that I have manually create the second group before operating with it.

Feel free to close if this thought has already been considered.

@bpasero bpasero assigned Tyriar and meganrogge and unassigned bpasero Aug 25, 2021
@bpasero bpasero changed the title Single group behaviour not what I expect Terminal editor should prefer to open files in a different group Aug 25, 2021
@bpasero
Copy link
Member

bpasero commented Aug 25, 2021

Yes, we did have long discussions around this but only in a smaller group. Our main intent is to reduce friction so that when you go back to 1 group, you don't have to deal with locked groups anymore.

However, this particular scenario I think we can improve: if the result of opening an editor originates from within a terminal editor, I would argue it should signal to the editor service to open in a different group and not the same group.

I had this idea before: what if we had a OTHER_GROUP constant that you can use in openEditor similar to SIDE_GROUP which would act exactly as if the current group was locked. It would serve as a hint that the editor should open in any of the other groups or open a new group if that is not possible.

Would like to hear from terminal folks if that is reasonable and then I could add such a property.

@Tyriar
Copy link
Member

Tyriar commented Aug 27, 2021

I think the current behavior of opening the file over the terminal seems fine, adding another special case to the existing special case of single editor groups seems a little convoluted. Locked groups to me are only useful/enabled when there are 2+ editor groups.

@Tyriar Tyriar added the under-discussion Issue is under discussion for relevance, priority, approach label Aug 27, 2021
@bpasero bpasero added the *as-designed Described behavior is as designed label Aug 27, 2021
@sbatten
Copy link
Member Author

sbatten commented Aug 27, 2021

I think the current behavior of opening the file over the terminal seems fine, adding another special case to the existing special case of single editor groups seems a little convoluted. Locked groups to me are only useful/enabled when there are 2+ editor groups.

I don't know if I agree here. I think the setting is the useful part about locked groups, otherwise it's a lot of manual management. However, waiting to get user feedback makes sense.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed terminal-editors under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

5 participants
@bpasero @Tyriar @sbatten @meganrogge and others