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

Feature request: Show more context in inline reference hover window #9

Open
danrthompson opened this issue Oct 5, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@danrthompson
Copy link

I love the new window that shows the text of each line containing a reference to the current block. It adds so much more context vs just the file name and line that appeared before.

I think a couple of small changes could add even more context.

  1. (Perhaps optionally?) Reduce the text size (and possibly enlarge the hover window). Right now you cannot see much info at a time because the text is so large and the window is relatively small.
  2. Add more context than just the line itself. I think you could do that by:
    1. Most simple: Adding a few surrounding lines for each link
    2. More advanced: Add a button that enables you to "see more context". When clicked, it would add maybe 5 surrounding lines for each link. This would operate like the add more context button in the backlinks pane. Ideally, this would be a global button, and if you wanted to add more, you could add one for each link. But I think the global button is a higher priority because the goal here is to be able to get more info while scanning through the links, not necessarily to read more for one link at a time.
    3. Even more advanced: Just like the backlinks pane, add the ability to click a button above and below each link to add one more line in that direction. That way you can add as much context as you want for a given link. To be clear though, I think this is pretty low priority and should only be done after the add more context button is implemented. I don't think this feature is really necessary at all because you can always click on the link if you want to read more on that page. Whereas if you're trying to scan for info, clicking on each link defeats the purpose. But, while unnecessary, this feature would be somewhat nice.

Sidenote: I wonder if it's possible to somehow use the Obsidain backlinks pane object to render these links? It would be perfect, so it would be unfortunate if you had to reinvent the wheel.

@TfTHacker TfTHacker added the enhancement New feature or request label Oct 6, 2022
@tim-hilde
Copy link

I second this! I really like the way https://github.com/shabegom/obsidian-reference-count has done it. I find the small hover window quite irritating. Apart from that, really like the plugin!

@kazdonkai
Copy link

I would like you to consider adopting the hover editor plugin display method.

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

No branches or pull requests

4 participants