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

add option to display syntax tree path in status line or enably sticky scroll #10672

Closed
calbaker opened this issue May 3, 2024 · 2 comments
Closed
Labels
R-duplicate Duplicated issue: please refer to the linked issue

Comments

@calbaker
Copy link

calbaker commented May 3, 2024

Make it so that the [editor.statusline] section of config.toml could have something like center = ["file-name", "syntax-tree-path"] where the presence of "syntax-tree-path" would tell helix to display something like crate::mymod::MyStruct::my_method if my cursor is inside the function signature or body of my_method. This would have a similar effect to VS Code's sticky scroll. Another option would be to just implement VSCode's sticky scroll because it seems doable in Helix.

@calbaker calbaker changed the title add option to display syntax tree path in status line add option to display syntax tree path in status line or enably sticky scroll May 3, 2024
@calbaker
Copy link
Author

calbaker commented May 3, 2024

Note that maybe syntax-tree-path is not the semantically correct name, and it's ok to change that to something more appropriate. I'm a mechanical engineer pretending to be a computer scientist.

@kirawi
Copy link
Member

kirawi commented May 4, 2024

Duplicate of #396

@kirawi kirawi marked this as a duplicate of #396 May 4, 2024
@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants