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

Click-to-jump between rendered content and source, copy message source #212

Open
calischs opened this issue Jun 16, 2017 · 1 comment
Open

Comments

@calischs
Copy link

Another enhancement for editing long posts is to imitate the feature in TexShop that allows a user to click on the rendered content and jump to the corresponding line in source. It seems the other direction would be nice to have as well.

According to Erik, as a bonus, implementing this feature would give a method to select rendered content and copy the corresponding source code. Useful for copy-pasting to other documents.

@edemaine
Copy link
Owner

edemaine commented Mar 31, 2021

Approach to this: write a Markdown plugin (after this) that emits a secondary data structure with the source <-> rendered mapping, character by character. Include this plugin only when needed (when editing, and when doing a copy operation, and when doing a r reply #539).

Here's a related plugin that does this at the paragraph level. Another plugin, perhaps better.

Synchronizing the scroll of side-by-side rendered content to the editor cursor would be a nice bonus of this.

@edemaine edemaine changed the title Click-to-jump between rendered content and source Click-to-jump between rendered content and source, copy message source Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants