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

[ENHANCEMENT]: Variable view with search and copy to clipboard functionality in VSCode #354

Open
andrascsoltko opened this issue Nov 20, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@andrascsoltko
Copy link

Hi there!

When importing a variable file/class hovering over the imported item brings up this window showing the available variables:

image

Honestly, this view is annoying if one has to copy values out of it. In my scenario the variable class is not a static one, it queries localization data from a service depending on the arguments provided to it.

Would be great to have a view such as the keyword documentation one, which opens a web view with in VSCode. I don't have any preferences as long as the view containing these variables have a search functionality like ctrl+f in most editors/browrsers. Maybe even a grid like view with copy to clipboard functionality when clicking on the variable's name.

The opening of this view could be an option for the Source Action right click context menu item. Or could exist as a exapndable option in the Explorer view next to the KEYWORDS one.

@andrascsoltko andrascsoltko added the enhancement New feature or request label Nov 20, 2024
@d-biehl
Copy link
Member

d-biehl commented Nov 20, 2024

How about the normal code completion. When you define a variable usage, the search does not start at the beginning. You can enter some letters and every variable containing these letters/words will be displayed and can be selected, like in this video:

Aufzeichnung.2024-11-20.131717.mp4

Is that not enough?

Or do you mean something like the Keywords view on the Explorer tab on the left-hand side?

image

@andrascsoltko
Copy link
Author

While autocompletion works fine when you know the specific variable name, in my case I find what I need much faster by searching for the value of the variable. (By looking at the UI and seeing the value)
It could be that my scenario is a bit "special", the data loaded by the variable file is UI element localized names, and the keys are usually parsed by their automation paths.

Now that I look at it again, and re thought my requirement, the view like Keywords on the explorer tab would not be sufficient as it might not be possible to execute filtering (might be wrong here though).

@d-biehl
Copy link
Member

d-biehl commented Nov 20, 2024

The value of a variable is really a bit special ;-), because I can't get a value for all variables, only for scalar variables and environment variables. But a tree of variables defined in a suite could be helpful.

And of course you can also filter in the keyword view by selecting the view and then pressing F3, whereupon a filter box appears.

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

No branches or pull requests

2 participants