Skip to content

searching wrapping text? #604

Open

Description

@zenspider

Maybe I'm just TOO used to having M-x shell be a text buffer. But afaict this works properly in mac's terminal.app as well. If I run something and then search for text I expect all of them to be highlighted. In ghostel only the fully matching strings w/o wraparound are highlighted.

Activity

  1. dakra commented on Aug 7, 2026

    @dakra
    Owner

    How do you search? isearch?

    The problem is that to solve that cleanly without hacks would require a bigger re-write to not write hard newlines that libghostty gives us, but let Emacs do the wrapping. This comes with a few negatives as well.

    PR #608 implements a kludge for isearch, occur and evil-search. But so far nobody had this problem so
    if you do NOT use isearch, maybe I'm not even merging it as it fixes only a part of an edge case (searching over line-wrapped lines).

  2. dakra commented on Aug 11, 2026

    @dakra
    Owner
  3. zenspider commented on Aug 12, 2026

    @zenspider
    ContributorAuthor

    I use isearch. I get that there's a conflict with "the emacs way" and "the libghostty way"... this might just be out of scope... but these kludges you've added are just that: kludges. They're evidence of the conflict.

    I figure I should keep reporting the friction I'm experiencing. Some will get kludges. Some with get closed. But maaaaybe at some point we'll find some middle ground where there's a unification of the kludge over the whole conflict that allows for all the regular tools to start to work a little better.

  4. zenspider commented on Aug 18, 2026

    @zenspider
    ContributorAuthor

    I'm kinda wanting some sort of (with-ghostel-buffer &rest body) macro that would for the duration make the buffer an "emacs buffer" (rather than a libghostty owned/responsible buffer) and temporarily restore emacs' notion of a buffer, soft line wrapping, etc... That would make it easier to advise-wrap things like isearch, occur, and all the other nonsense I've been filing issues on. :P

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions