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

Can I add sidelines at or near particular lines in my file? #12

Closed
CarlQLange opened this issue Apr 13, 2023 · 4 comments
Closed

Can I add sidelines at or near particular lines in my file? #12

CarlQLange opened this issue Apr 13, 2023 · 4 comments

Comments

@CarlQLange
Copy link

I would like to constantly display my sidelines on several lines in my buffer, not just on the current cursor location. Is there a way to do this?

In any case, thanks a lot for this package, really helpful!

@CarlQLange CarlQLange changed the title Can I add sidelines at particular lines in my file? Can I add sidelines at or near particular lines in my file? Apr 13, 2023
@jcs090218
Copy link
Member

Unfortunately, there is no way to do this. What is your use case? sideline is designed to display information based on your cursor position. Like company-mode is based on what you have typed.

Thank you for using this package! 😊 I hope the above information makes sense to you!

@CarlQLange
Copy link
Author

Yes, I guess I am looking for sidelines to be always visible in the whole buffer regardless of cursor position.

You can see an example of what I'm thinking of in this screenshot from VSCode:

image

The "You, 2 months ago" sections are visible even though my cursor is on line 16.

I think this could be accomplished by modifying sideline--find-line to take an optional line-number argument, and extending it to find a space near that line-number if it's given. What do you think?

@jcs090218
Copy link
Member

This looks like it has to be made with other plugin, like https://github.com/jcs-elpa/codemetrics. Here is another example, see emacs-vs/codemetrics#1 (comment). I don't think using the sideline is a good idea since the feel and look will be different. 🤔

@CarlQLange
Copy link
Author

Ah, thanks so much for the pointer to that library, that's exactly the UX I was looking for! Appreciate it, and nice job on Two great packages!

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

2 participants