djsutherland / html-talk

Base for my talks using reveal.js, with bonus nice features (including browser/editor sync!)
9 stars 3 forks source link

synctex-alike #9

Closed djsutherland closed 6 years ago

djsutherland commented 6 years ago

Probably way more work than it's worth, but would be pretty cool to have SyncTeX-like searches between the source and the website.

Either direction probably requires putting pug line numbers (or similar) on html entities; not sure if this is possible without lots of changes to the pug engine, but might be.

Once that's there, would probably need bin/serve to run another livereload-like channel listening for messages to either have the server process run subl/whatever command for reverse search, or have the client run Reveal.sync for forward search....

djsutherland commented 6 years ago

pug-plugin-debug-line already outputs data-pug-file, data-pug-line, data-pug-column for each HTML entity, so that's solved.

Now need the thing in bin/serve. (Should probably write that as a separate package....)

djsutherland commented 6 years ago

Merged. 🎆