js-hyperclick icon indicating copy to clipboard operation
js-hyperclick copied to clipboard

String is clickable

Open Hativ opened this issue 7 years ago • 1 comments

A string of the name like a variable is clickable.

Example:

var foo;
 
var obj = {
    "foo": "bar"
};

"foo" in the object obj will be clickable and jump to var foo;

Hativ avatar Apr 13 '17 15:04 Hativ

I don't think this is something I want to address with the current design. When you over over "foo" in the object hyperclick provides the string and the physical location. js-hyperclick just looks up the known variables to see if there is a match.

I guess to solve this I would need to locate every place a variable is used and store those locations. I don't think the current behavior causes a problem, so this is a low priority.

AsaAyers avatar Apr 27 '17 00:04 AsaAyers