Replies: 13 comments
-
Related: #75 |
Beta Was this translation helpful? Give feedback.
-
UX ideas here. |
Beta Was this translation helpful? Give feedback.
-
Wow, that looks amazing. I wonder if we could throw this together with the lsp support (#213) we were talking about? The point here is Also I don‘t know if the language server protocol has a concept of focused file and scroll position. |
Beta Was this translation helpful? Give feedback.
-
Hm, if we don't have the scroll position from the editor we can always focus the last change made. |
Beta Was this translation helpful? Give feedback.
-
@maralorn Better yet we could focus on the current cursor position (which LSP supports). |
Beta Was this translation helpful? Give feedback.
-
Uh, I didn‘t know. How great. |
Beta Was this translation helpful? Give feedback.
-
A basic version of this can be implemented using the
We basically have to replace rib's server with this one. Later, once LSP support is in, we can do cool stuff like auto-scrolling to current cursor position (discussed above). |
Beta Was this translation helpful? Give feedback.
-
In my opinion this is unnecessary and a distraction. |
Beta Was this translation helpful? Give feedback.
-
@fiatjaf As a prototype, I'd like to see something like this but possibly as a separate tool (outside of neuron). What I'd like is a browser "mirror" for my neovim session. If I have 3 split windows, for example, the browser mirror (a chrome tab) should also display 3 split windows in exact split configuration. If I scroll the neovim buffer, I'd like the browser window to scroll too (commonmark-hs's sourcepos can be used for it). The idea is to always have a rendered snapshot of your neovim view to the side. |
Beta Was this translation helpful? Give feedback.
-
Demo here (it doesn't do split mirroring): https://github.com/iamcco/markdown-preview.nvim#introduction |
Beta Was this translation helpful? Give feedback.
-
cf. #496 (comment) |
Beta Was this translation helpful? Give feedback.
-
Using parcel,
gives you a reloading static html server. |
Beta Was this translation helpful? Give feedback.
-
Swapping out neuron's server with ema will give us live reload for free. |
Beta Was this translation helpful? Give feedback.
-
When you iterate over your zettels in an editor and use "rib -wS" it might be nice to have the browser live reload changes.
I use https://livejs.com/ in a similar project and that works quite nicely and simple. Of course this should be strictly optionial. The only question is where exactly to add the flag as for this to work we need to change the compilation output of the zettels.
Beta Was this translation helpful? Give feedback.
All reactions