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

Add Insertion Point to All Selections #1562

Open
justinnoel opened this issue Dec 15, 2023 · 3 comments
Open

Add Insertion Point to All Selections #1562

justinnoel opened this issue Dec 15, 2023 · 3 comments
Assignees
Labels
request feature requests from users
Milestone

Comments

@justinnoel
Copy link

Is your feature request related to a problem? Please describe.
The current "Select Rectangular Area" and "Edit Multiple Points" works well for a few lines of text. However, dozens or hundreds of lines, it is slow and tedious.

Other editors allow a single key combination to insert a cursor at the same column on each selected row. For example, Visual Studio Code has "Add Cursors to Line Ends ⌥⇧I".

Describe the solution you'd like
Add A keyboard shortcut and menu item to add multiple insertion points to an entire selection at once.

@justinnoel justinnoel added the request feature requests from users label Dec 15, 2023
@1024jp
Copy link
Member

1024jp commented Dec 18, 2023

However, dozens or hundreds of lines, it is slow and tedious.

Humm, this year, CotEditor changed the implementation to hold multiple insertion points to support the new insertion point feature on macOS 14. Due to it, I can imagine it is now hard to have a large number of insertion points. However, I suppose, there is no way to detour it. Sorry.
I personally recommend to utilize regex to insert the same text at a bunch of points at once.

Add A keyboard shortcut and menu item to add multiple insertion points to an entire selection at once.

Could you elaborate a bit more on your request?
Is the “Add Cursors to Line Ends” command fulfill it straightforwardly?

By the way, CotEditor accepts the most of emacs key bindings.
In addition, CotEditor has a command to add an insertion point above/below the current one by pressing Control-Shift-/ keys? Does it work for you?

Screenshot 2023-12-18 at 18 29 02

@1024jp
Copy link
Member

1024jp commented Dec 18, 2023

Note: I also found the “Split Selection by Lines” command in Xcode.

Screenshot 2023-12-18 at 19 00 26

@justinnoel
Copy link
Author

 Thanks so much for getting back to me. Here's a link to a short video to show the comparison between CotEditor and VS Code.
 
 https://customer-2haawx7cuvbfttcn.cloudflarestream.com/f1234ddb514abcedf46e4828952ad92d/watch

@1024jp 1024jp added this to the 4.8.0 milestone Dec 20, 2023
@1024jp 1024jp self-assigned this Dec 20, 2023
@1024jp 1024jp modified the milestones: 4.8.0, To Do Mar 28, 2024
@1024jp 1024jp modified the milestones: To Do, 4.9.0 May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request feature requests from users
Development

No branches or pull requests

2 participants