Skip to content

Activating word highlighting across cells in VScode notebooks #184259

Closed

Description

@Himbeereis

When I load an .ipynb file and I highlight a word in an individual cell, then VS Code highlights all occurrences of the word in this cell.
But it does not highlights the word across cells. Is there a way to configure it to do so?

Activity

  1. added
    feature-request
    notebook-cell-editor
    on Jun 5, 2023
  2. added this to the Backlog milestone on Jun 5, 2023
  3. rebornix commented on Jun 29, 2023

    @rebornix
    Contributor

    Duplicate issue #91808

    and it might be possible now with #185351

  4. removed their assignment
    on Oct 5, 2023
  5. Yoyokrazy commented on Oct 12, 2023

    @Yoyokrazy
    Collaborator

    Talked with Joh re: some editor work that was working to solve a similar issue. He solved (#30014) for inline chat via linking wordHighlighters, but it was a somewhat limited fix, as the models had to be identical.

    Current thoughts are to create a MultiDocumentHighlightProvider and then refactor a bit of the work within wordHighlighter such that computeOccurences returns a Map<URI, DocumentHighlights[]>. This would create a solution that would solve highlighting across all open editors, fixing split view highlighting, notebooks, inline chat, etc etc.

    Part of the issue lies in not having a position when you are computing highlights for the non-primary model aka the non-active editor(s). A pure textual search would work but isn't the most performant. Food for thought.

  6. added
    editor-highlight
    and removed on Nov 7, 2023
  7. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Nov 22, 2023
  8. locked and limited conversation to collaborators on Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-highlightfeature-requestinsiders-releasednotebook-cell-editoron-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions