gchq / stroom

Stroom is a highly scalable data storage, processing and analysis platform.
https://gchq.github.io/stroom-docs/
Apache License 2.0
424 stars 58 forks source link

Expose ace editor splits option to the users #2597

Open at055612 opened 2 years ago

at055612 commented 2 years ago

The ace editor has a horizontal and vertical split mode. This may be a useful thing to expose to the users as it can make working on large files easier when you want to see two parts of the same file at once. Would need shortcuts for navigating between splits, e.g. ctrl-h/j/k/l, as long as they don't conflict with browser standard shortcuts. Possibly also have key binds to enable the splits.

This would be exposed in the existing editor context menu.

See https://ace.c9.io/build/kitchen-sink.html for an example.

at055612 commented 8 months ago

Believe we need to include this extra script to make it work ace/ext-split.js

See how it is implemented in the kitchen sink https://github.com/ajaxorg/ace/blob/c2c8c23a0b83adcae928840da6cdf5c921e3ba39/demo/kitchen-sink/util.js#L37