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

Multi-line selection/editing #6433

Open
kphunter opened this issue Jun 5, 2024 · 3 comments
Open

Multi-line selection/editing #6433

kphunter opened this issue Jun 5, 2024 · 3 comments

Comments

@kphunter
Copy link

kphunter commented Jun 5, 2024


name: Multi-line selection/editing
about: Adding code editor capabilities to a co-authoring environment
title: 'Multi-line selection/editing'
labels: enhancement
assignees:


Is your feature request related to a problem? Please describe.
We would like to use Etherpads for co-authoring markdown meeting minutes. Etherpad has the co-authoring covered. We're interested in making it easier to author markdown-styled documents by using multi-line selection/editing capabilities commonly found in code editors.

Describe the solution you'd like
It would be nice to add functionality that enables multi-line editing and multi-selection. For example a keyboard shortcut that enables "select next", "insert on multiple lines", and "duplicate line".

Describe alternatives you've considered

  • VS Code has plugins that enable co-authoring but they are heavy
  • Word has co-authoring capability but it doesn't have multi-line selection or editing

Additional context
This is essentially a mashup of the multi-line editing/selection commonly found in IDE's and the co-authoring capabilities of a word processing interface

Plugin?
Very possibly ;)

@heldersepu
Copy link
Contributor

Interesting suggestion ...
VS Code if I'm not mistaken uses monaco, I worked on a PR integrating that into Swagger-UI:
swagger-api/swagger-ui#9728

Here is the package
https://www.npmjs.com/package/@monaco-editor/react
That could be used for collaborating in more code like projects

@heldersepu
Copy link
Contributor

heldersepu commented Jun 8, 2024

@kphunter Can you try: https://monaco-react.surenatoyan.com/ see if that has all you need, ... something we can integrate

  • I see the multi-line selection and edit (Alt+Click) working fine
  • Ctrl+C on a line without selection copies the entire line an easy to duplicate a line
  • Also the regex replace seem to be working fine

@kphunter
Copy link
Author

@kphunter Can you try: https://monaco-react.surenatoyan.com/ see if that has all you need, ... something we can integrate

* I see the multi-line selection and edit (Alt+Click) working fine

* Ctrl+C on a line without selection copies the entire line an easy to duplicate a line

* Also the regex replace seem to be working fine

Fantastic - all the functionality that we would need is indeed there :). For reference on a Mac, I found these keyboard shortcuts work:

  • copy entire line (⌘ + c)
  • move entire line up/down (⌘ + ↑/↓)
  • toggle comment (⌘ + /)
  • multi-line cursor (⌥ + "click" OR ⌥ ⌘)
  • select next identical item (^d)

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

No branches or pull requests

2 participants