Foam: Idea: keyboard shortcut as Cmd+Click alternative

Created on 29 Jun 2020  路  5Comments  路  Source: foambubble/foam

I think it would be really cool to have a keyboard shortcut to open links instead of Cmd+Click. Like many VSCode users, I don't leave my keyboard that much (vim compatibility) so the 'click' interaction in the middle of typing is awkward.

For now I can use the normal file jump commands but if I have many files named similarly, a keyboard shortcut would be slicker.

enhancement good first issue

Most helpful comment

@Georift wow, cool! If you could add the hotkey (and the steps to customise revealDefinition since F-keys are a little inaccesible for touch bar mac users) to https://github.com/foambubble/foam/blob/master/wiki-links.md, that would be amazing! 馃ぉ

All 5 comments

I had a similar thought when first using foam. After some digging I found this blog post by the creator of Markdown Notes discussing how they had setup their VSCode.

VSCodeVim users can use gf to navigate to the link under the cursor.

@coffenbacher yup! This is definitely a high priority improvement. Like @Georift discovered, this is not implemented in Markdown Notes yet and is not a priority for the author since they're using vim mode.

If anyone wants to contribute this either to Markdown Notes, or finds a way to include it in foam-vscode, I'd love to have this!

@coffenbacher @jevakallio so it looks like this already exists for us today! 馃槃 Try pressing F12 when your cursor is on the link.

Markdown Notes is providing definition support for this wiki link syntax to VSCode so you want you can remap the command: editor.action.revealDefinition if F12 doesn't suit.

Should we document this anywhere before closing this issue?

@Georift wow, cool! If you could add the hotkey (and the steps to customise revealDefinition since F-keys are a little inaccesible for touch bar mac users) to https://github.com/foambubble/foam/blob/master/wiki-links.md, that would be amazing! 馃ぉ

Btw for future reference, gf doesn't work with pages that don't exist yet, but Go To Definition does :heavy_check_mark: Loving Foam now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsjoeio picture jsjoeio  路  5Comments

clementoriol picture clementoriol  路  4Comments

SpaceForever picture SpaceForever  路  6Comments

doodlewhale picture doodlewhale  路  4Comments

midopooler picture midopooler  路  3Comments