clerk

Nathan Smith 2023-11-01T16:58:55.272389Z

Is there any way to sync the scroll position of the browser and editor windows? I have them side by side and keep having to find an item in the TOC in the browser then find it again in the editor. (using VScode)

teodorlu 2023-11-07T12:57:53.038759Z

I’m also interested in a way to keep scroll in sync between editor and browser. But I hesitate to see an elegant solution to this. In general, I’m grateful for Clerk’s “let’s not do too much” attitude. Perhaps “current line” could be sent to nextjournal.clerk/show! along with the current file? That way, users can add “current line info” / “sync line info” if they want.

respatialized 2023-11-01T17:44:11.272249Z

You'd have to extend your editor to be aware of what form you're at and convey that information to Clerk somehow in order for this to work. Not impossible, but nothing close to "out of the box" and likely requires modifications to Clerk itself to work well.

Nathan Smith 2023-11-01T18:02:44.958529Z

About what I expected. The nice thing is that it’s totally possible!

mkvlr 2023-11-01T18:22:48.430949Z

I prototyped this for Emacs a while back, will dig it out later, maybe something you can adapt for VSCode

1