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

Path based on cursor position of code files #7

Open
isupersid opened this issue Oct 24, 2017 · 0 comments
Open

Path based on cursor position of code files #7

isupersid opened this issue Oct 24, 2017 · 0 comments

Comments

@isupersid
Copy link

Very useful but it would be great if based on the current cursor position, when summoned, it could attempt to make sense of the current structure, looking for valid matching brackets and then creating a path.

Often in code we have JSON objects inside ts / js files that are like
let constants = {
module1:{
feature1: {
panel1: {}
panel2: {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
panel3: {}
}
},
module2:{},
module3:{}
moduleN:{}
};

Now imagine if I wanted to add key4 to constants.module18.panel15, it would be extermely useful if I can find the current path based on the cursor position.

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