Open Opisek opened 6 days ago
we could use something like https://github.com/replit/codemirror-vim/pull/181, but sadly codemirror 6 does not have an equivalent of https://codemirror.net/5/doc/manual.html#version, so we can display only version of codemirror-vim itself
That looks great. Perhaps it's worth going upstream to implement CodeMirror.version
, too? It shouldn't be a difficuilt addition.
It, indeed, may be useful. I'll update the version command in vim if/when CodeMirror.version
is available.
It seems it might be unlikely to get support upstream: https://github.com/codemirror/dev/issues/1398
Your addition is already great, though, and will certainly come in helpful in the future.
Given how CodeMirror is used in many different applications, including closed-source ones, I believe adding a
:version
command would simplify hunting down bugs in the wild. Currently, there is no way to tell the version of CodeMirror-Wim running on some given application.I can look into implementing that, though it must be discussed what the approach for getting the current version makes the most sense. I would like to avoid hard-coding the value.