martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

Listen on content change. #1069

Open royapardaz opened 1 year ago

royapardaz commented 1 year ago

Hi, Is there any way to register a listener on file changes? I know about vis.events.win_highlight, but vis emits this event on any key press and not just content changes. Also there is no way to find what parts of the file is actually changed.

erf commented 1 year ago

No there is not at the moment. There is a similar issue here https://github.com/martanne/vis/issues/694

Disonantemus commented 4 months ago

694 is very old (2018)

This can help to sync same file with different instances.