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

Enhance hover support and fix link open #898

Merged
merged 12 commits into from
Jun 13, 2024

Conversation

H3mul
Copy link
Contributor

@H3mul H3mul commented Jun 5, 2024

A quick little adjustment I was missing: using hover preview to quickly go through notes in Board view.

I also took the opportunity adjust the hover treatment of Table view to a more preferred setup: instead of handling the meta keys in projects, we should register a new hover view source, that way the meta key treatment can be toggled inside Page Preview settings:

image

Tested and made sure this works with both core Page Preview and the Hover Editor plugin.

@Acylation
Copy link
Collaborator

Nice catch!

@Acylation Acylation added kind/feature New feature request area/views Issues related to views. labels Jun 5, 2024
@Acylation Acylation added this to the 1.17.4 milestone Jun 5, 2024
@Acylation Acylation changed the title Add note hover support to Board view Enhance hover support Jun 13, 2024
@H3mul
Copy link
Contributor Author

H3mul commented Jun 13, 2024

Since InternalLink is moving to obsidian-projects, perhaps take a look at my PR to obsidian-svelte:
marcusolsson/obsidian-svelte#9

I think we can include it here painlessly

Edit: nvm, youre already on it :)

@Acylation
Copy link
Collaborator

Acylation commented Jun 13, 2024

Hi I just saw marcusolsson/obsidian-svelte#9. Thanks for pointing out the problem and the fix! Since we gonna use a mocked InternalLink component in this PR (59d87b6), here I also include your fix as a temporary solution. I will contribute this component back after some refactoring (decouple dom-event handler and the hover-trigger).

Closes #780.

@Acylation Acylation merged commit 49b76d7 into marcusolsson:main Jun 13, 2024
1 check passed
@Acylation Acylation changed the title Enhance hover support Enhance hover support and fix link open Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/views Issues related to views. kind/feature New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants