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

FR: navigate to tag page on Alt+Enter #117

Open
mvaaltola opened this issue Oct 13, 2023 · 2 comments · May be fixed by #118
Open

FR: navigate to tag page on Alt+Enter #117

mvaaltola opened this issue Oct 13, 2023 · 2 comments · May be fixed by #118

Comments

@mvaaltola
Copy link

Thanks for the great plugin! I enjoy the tag pages feature but don't really want to use the mouse to navigate to the tag page. Would it be possible to open the tag page on Alt+Enter? Even better, use whatever the defined keybinding for "follow link under cursor" happens to be.

If you agree this would be beneficial I would be happy to contribute with a PR. I don't have any experience of the Obsidian API though so would appreciate your thoughts on what the best way to implement this would be.

@pjeby
Copy link
Owner

pjeby commented Oct 13, 2023

It would need to be a new command with its own hotkey, or else it would need to monkeypatch the existing command -- but then there'd need to be a setting to turn it off. Writing the new command is also not something I'd suggest as a beginner because even that will require use of currently-undocumented APIs in Obsidian (like clickableTokenAt) to extract the tag.

May I suggest in the meantime that you use the menu key? You can hit that, arrow up a few times and hit enter to perform the "open tag page" operation.

mvaaltola added a commit to mvaaltola/tag-wrangler that referenced this issue Oct 16, 2023
mvaaltola added a commit to mvaaltola/tag-wrangler that referenced this issue Oct 16, 2023
mvaaltola added a commit to mvaaltola/tag-wrangler that referenced this issue Oct 16, 2023
@mvaaltola
Copy link
Author

I wasn't completely satisfied with the menu key workaround as unfortunately on my KB the menu key is placed very inconveniently over the numpad. Thanks for pointing to getClickableTokenAt, I was able to add a simple command to open or create a tagpage and made a small PR in case you want to include it in your plugin.

@mvaaltola mvaaltola linked a pull request Oct 16, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants