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

Order Variables alphabetically #2982

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikischin
Copy link

Order variables in Variables Tab alphabetically by name

fixes #2981

Description

Working with many variables, the variables view can get messy quickly. In order to keep the variables view more structured, variables will be displayed in alphabetical order. This ensures you can easily find a variable value you are looking for.

image

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Order variables in Variables Tab alphabetically by name
@berlingoqc
Copy link

Would it be possible to have the same sorting icons that they have in Collections. Instead of having to have them alphabetically

Screenshot 2024-08-30 at 11 39 47 AM

@nikischin
Copy link
Author

Would it be possible to have the same sorting icons that they have in Collections. Instead of having to have them alphabetically

Screenshot 2024-08-30 at 11 39 47 AM

Technically this would be possible although I can't see any benefit.

Current behavior is that the variables should have the order in which they were first set. This can get pretty random when working with large collections.

Having a button for the order actually would be a drawback because it requires one click more by the user and adds the complexity of the code without any real benefit.

@berlingoqc
Copy link

berlingoqc commented Aug 30, 2024

Ok personally coming from postman , I arrange my variables in the order that I edit the most because you can order them yourself and i like to see them in the same order

So i created them in this order when migrating to bruno. Would be a draw back to be forced alphabetically.

but it's ok too

@nikischin
Copy link
Author

Ok personally coming from postman , I arrange my variables in the order that I edit the most because you can order them yourself and i like to see them in the same order

So i created them in this order when migrating to bruno. Would be a draw back to be forced alphabetically.

but it's ok too

You are talking about environment variables I guess? Because for runtime variables I guess there is no way to influence their order except by the order you call them.

Generally speaking though I would recommend to open a Feature Request for this: Modify Order of Variables (Custom Order)

Same also for the collection order, as currently there's no way to really modify the default order I guess, though #2554 could be addressing this maybe?

@nikischin
Copy link
Author

@helloanoop what do you think?

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

Successfully merging this pull request may close these issues.

Display Variables in alphabetical order
2 participants