Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: version command #180

Open
Opisek opened this issue Jun 27, 2024 · 4 comments
Open

Feature: version command #180

Opisek opened this issue Jun 27, 2024 · 4 comments

Comments

@Opisek
Copy link
Contributor

Opisek commented Jun 27, 2024

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.

@nightwing
Copy link
Collaborator

we could use something like #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

@Opisek
Copy link
Contributor Author

Opisek commented Jun 28, 2024

That looks great. Perhaps it's worth going upstream to implement CodeMirror.version, too? It shouldn't be a difficuilt addition.

@nightwing
Copy link
Collaborator

It, indeed, may be useful. I'll update the version command in vim if/when CodeMirror.version is available.

@Opisek
Copy link
Contributor Author

Opisek commented Jul 1, 2024

It seems it might be unlikely to get support upstream:
codemirror/dev#1398

Your addition is already great, though, and will certainly come in helpful in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants