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 request: AceJump + multiple caret #221

Closed
saroff opened this issue Mar 13, 2018 · 4 comments
Closed

Feature request: AceJump + multiple caret #221

saroff opened this issue Mar 13, 2018 · 4 comments
Labels

Comments

@saroff
Copy link

saroff commented Mar 13, 2018

Multiple caret feature in idea really bad when it can't be selected automatically via alt+j or by cloning caret above/below. You have to ctrl + shift + alt + manually click needed places. It would be great to AceJump to needed word + clone caret.

Suppose i have class like that:

import java.util.Collection;
import java.util.List;

public class scratch {
    protected Collection getInputTest() {
        //some code
        return null;
    }
    public List getOutputTest() {
        //some code
        return null;
    }
}

I want to add methods like getInputTestById(String id). Really handy will be to copy-paste them, clone caret, and change sigs. With proposed feature it will be really simple. Copy-paste methods, AceJump to "Test", AceJump cloning caret to another test, done. No need to take hands off keyboard. This example is somewhat artificial, but in my daily job there is cases where multiple carets feature will be helpfull, but i can't clone caret using shortcuts.

It can be implemented just by keeping caret, so if you want to place 3 carets, you will need to press AceJump clone caret two times. Or like shortcut + search for a word + type tag + search persists, you can type another tag or backspace to search for another word + hit Enter to place caret in all these places.

@saroff
Copy link
Author

saroff commented Mar 13, 2018

By the way, right now if i use AceJump having multiple carets, last placed caret will affected.

@breandan
Copy link
Collaborator

Hmm, this might be a useful addition. We could call it "Multicaret mode", where a new caret is added in addition to the current one(s). However, this could easily be added as a Find-based feature to the IntelliJ Platform. You could also try adding this as a feature request on YouTrack.

@breandan
Copy link
Collaborator

Addendum: IdeaVim does not support multiple carets, although this feature is currently on the radar.

@breandan
Copy link
Collaborator

breandan commented Apr 4, 2021

I noticed that IdeaVim's multi-caret selection mode has recently improved. As discussed here, I am a little hesitant to add features that overlap with IdeaVim functionality, although it may be possible to offer a smoother multi-caret integration. In any case, let's merge this discussion with #350. Thank you for the suggestion!

@breandan breandan closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants