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

Ability to "pin" a selection to make it persistent #32

Open
cdmihai opened this issue Feb 25, 2021 · 0 comments
Open

Ability to "pin" a selection to make it persistent #32

cdmihai opened this issue Feb 25, 2021 · 0 comments

Comments

@cdmihai
Copy link

cdmihai commented Feb 25, 2021

Sometimes I want to track multiple selections, each selection with a different color. It would be awesome if:

  • Like today, I do a selection which colors all the instances.
  • I right click on a selection and choose "Pin selection". This has the effect that if I cancel the current selection (click somewhere else, or select make a new selection), the pinned instances remain colored.
  • Given multiple existing pinned selections, when I pin a new selection it chooses a background color different from the existing pinned colors. This ensures each new pinned selection has a different color. I don't think people would pin more than 2-4 selections, so the space of easily distinguishable colors won't get exhausted.
  • Removing a pinned selection: right click and select "Unpin".
  • Removing all selections: either refresh the page or right click any pinned selection and select "Unpin all"

Detailed use case: I often feel the need to do this when reading code. I have a symbol of interest (variable, method call, etc) and I either want to see how it correlates with another entity (when does this variable get passed to this method?) or I want to quickly understand something else, like a nested understanding session where I pause my current search and do another one: I want to keep my initial selection to return back to it. Both of these tasks can be made way easier if I could pin two or more selections.

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

No branches or pull requests

1 participant