Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Idea: plug in VSCode "Quick Open" #38

Open
paoloantinori opened this issue Feb 3, 2020 · 1 comment
Open

Idea: plug in VSCode "Quick Open" #38

paoloantinori opened this issue Feb 3, 2020 · 1 comment

Comments

@paoloantinori
Copy link
Contributor

I don't know if this capability is retained by any pre-existing Markdown extension, but it could be cool being able to jump between named Didact anchors quickly, integrating with ctrl+p

@bfitzpat
Copy link
Collaborator

bfitzpat commented Feb 5, 2020

It appears that Ctrl+P is currently associated with the Go to File... command as well as the workbench.action.quickOpenNavigateNextInFilePicker command. It does seem to integrate with headings in raw Markdown files, but not in the Mardkown preview or Didact windows.

I suspect that we may be able to provide this functionality if we hook into the Outline view in our Didact window, but am not sure at this time.

That said, I was happy to see that defining anchors does work in the Didact window. So you can do:

## My First Heading {#first-id}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida neque convallis a cras semper auctor neque. In nisl nisi scelerisque eu ultrices. Enim blandit volutpat maecenas volutpat. Mi quis hendrerit dolor magna eget est lorem. Duis convallis convallis tellus id interdum velit. Libero volutpat sed cras ornare arcu dui vivamus. Libero justo laoreet sit amet cursus. Et egestas quis ipsum suspendisse. Risus viverra adipiscing at in tellus. Netus et malesuada fames ac turpis egestas sed. In mollis nunc sed id semper risus in. Libero id faucibus nisl tincidunt eget nullam. Quis viverra nibh cras pulvinar mattis nunc. Auctor augue mauris augue neque gravida. Enim praesent elementum facilisis leo vel fringilla. In hendrerit gravida rutrum quisque.

And then refer to it earlier or later in the document in a link: [My First Heading](#first-id)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants