Skip to content

[FR] Place Multi-Cursor before every search result #81407

Closed

Description

Hi!

It would be awesome to easily place a cursor in front of every search result. This could be done via a right click menu. A bonus would be to do this with all search results or with all search results within a file or folder. Extra bonus, if there would be a keyboard shortcut for this.

Disclaimer:
I know there is ⇧⌘L, but that requires me to switch the windows all the time when I'm done with one file.

Thanks!

Activity

  1. added
    feature-request
    search
    on Sep 26, 2019
  2. roblourens commented on Sep 26, 2019

    @roblourens
    Member

    This is like alt+enter in the find widget. Could work with the same shortcut on the search viewlet. I think it sounds useful.

  3. added
    help wanted
    on Sep 26, 2019
  4. njkevlani commented on Oct 7, 2019

    @njkevlani
    Contributor

    Dominik Ritter (@dritter)

    If your search term exists in 2 folder then do you want to put multiple cursors in both the files?

    A bonus would be to do this with all search results or with all search results within a file or folder. Extra bonus, if there would be a keyboard shortcut for this.

    If yes, is it possible to put multi cursor in different files? roblourens

  5. dritter commented on Oct 8, 2019

    @dritter
    Author

    Nilesh Kevlani (@njkevlani) I imagine that feature on multiple layers (switchable through shortcuts):

    1. Within the current file
    2. Within the current folder
    3. In all folders

    So, if the search term exists in multiple files/folders, and I press the shortcut for that, then yes, I would want to place multiple cursors in all the files.

  6. roblourens commented on Oct 8, 2019

    @roblourens
    Member

    Since you can only edit one editor at a time, I think it's not useful to add cursors to different files. The way I imagine this working is a keyboard shortcut that is only active when you have a file row selected in the search results, and when activated, it adds cursors to all results in that file.

  7. njkevlani commented on Oct 9, 2019

    @njkevlani
    Contributor

    The way I imagine this working is a keyboard shortcut that is only active when you have a file row selected in the search results, and when activated, it adds cursors to all results in that file.

    Let me know if this is enough Dominik Ritter (@dritter)

    I would be happy to implement this if we need to add this feature. Let me know if I can take it up roblourens

    And some code pointer will be really appreciated! :)

  8. roblourens commented on Oct 9, 2019

    @roblourens
    Member

    Sure, go for it :)

    You will have to add a command that can be triggered with a keyboard shortcut. Some other search commands are registered here:

    KeybindingsRegistry.registerCommandAndKeybindingRule({

    And you will have to get all the results of the selected FileMatch and add cursors to their positions after opening the editor. I'm not sure how to add multiple cursors off the top of my head. But here is where we open the editor:

    return this.editorService.openEditor({

  9. added this to the Backlog milestone on Oct 27, 2019
  10. added
    verification-needed
    on Dec 2, 2019
  11. added
    verified
    on Dec 4, 2019
  12. locked and limited conversation to collaborators on Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requesthelp wantedsearchverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions